Hello,
Until recently, I could use LOCUS MAP with display of the few essential WMTS layers from IGN Geoportal (authorized by the license, always in use, that I have), with "User-agent" type security. The following type code was added in a "providers.xml" file.
<provider id="10830" type="0" visible="true" background="-1"> <name>Geoportail</name> <mode>Carte géographique</mode> <url><![CDATA[https://wxs.ign.fr/my_key_here/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg]]></url> <zoomPart>{z}-8</zoomPart> <zoomMin>8</zoomMin> <zoomMax>26</zoomMax> <tileSize>256</tileSize> <countries>France</countries> <extraHeader><![CDATA[User-Agent#*GIS*]]></extraHeader> <usage>road,city</usage> </provider>
However, I now have an "access denied".
Stranger still : I just installed LOCUS GIS (which I just discovered). And by installing THE SAME "Providers.xml" file, the display of the SAME layers of the Geoportal is OK without any problem, at the same time when this remains impossible in LOCUS MAP Pro ...
What is happening ? And how to solve this problem?
Hi,
could I ask you if you use a custom online map source, please?
Anyway, please use an official subscription for IGN Topo maps? Menu > Maps > IGN Topo.
Thanks, Petr
Hi,
could I ask you if you use a custom online map source, please?
Anyway, please use an official subscription for IGN Topo maps? Menu > Maps > IGN Topo.
Thanks, Petr
Hi,
I use online maps for 2 reasons:
- the choice of cards in particular for the overlay
- access is free and legal
Best
Hi,
I use online maps for 2 reasons:
- the choice of cards in particular for the overlay
- access is free and legal
Best
Hi,
I'm not sure (from your answer) if you use custom online maps. If you use a custom online map, please send me your definition .xml file. I guess that you defined a custom user-agent. This option is no more available.
Thanks, Petr
Hi,
I'm not sure (from your answer) if you use custom online maps. If you use a custom online map, please send me your definition .xml file. I guess that you defined a custom user-agent. This option is no more available.
Thanks, Petr
Hi,
See two examples of custom online map.
Working
Not workingHi,
See two examples of custom online map.
Working
Not workingHi,
thank you for the definition.
From the 3.50.0 version it's not possible to set a custom user-agent. I don't know the details in IGN service but I guess that issue is caused due to a custom user-agent that's used in your XML.
I'm sorry but I can't offer any solution. Please check if IGN offers the same layer as WMS or TMS service.
Thanks, Petr
Hi,
thank you for the definition.
From the 3.50.0 version it's not possible to set a custom user-agent. I don't know the details in IGN service but I guess that issue is caused due to a custom user-agent that's used in your XML.
I'm sorry but I can't offer any solution. Please check if IGN offers the same layer as WMS or TMS service.
Thanks, Petr
Hi,
Thank for assistance but i don't know why since 3.5 version LOCUS MAP have changed the parameters in providers.xml and that only impact IGN while the same XML scheme continue to work with other software... MOB in example.
LOCUS MAP would he not have taken a commercial position on the sale of maps?
Hi,
Thank for assistance but i don't know why since 3.5 version LOCUS MAP have changed the parameters in providers.xml and that only impact IGN while the same XML scheme continue to work with other software... MOB in example.
LOCUS MAP would he not have taken a commercial position on the sale of maps?
... and after many testing with proxy log i discovered that URLs starting with https://wxs.ign.fr/ are blocked by LOCUS MAP since version 3.50.0
Whoo it's bad news and this could confirm that LOCUS MAP has made a business decision that goes against users?
... and after many testing with proxy log i discovered that URLs starting with https://wxs.ign.fr/ are blocked by LOCUS MAP since version 3.50.0
Whoo it's bad news and this could confirm that LOCUS MAP has made a business decision that goes against users?
Hello NewVar,
as the main app developer, I'll try to give you a help here.
Locus Map does not block IGN.fr servers. I'm trying your custom map definitions and the response from the server is "403 Forbidden".
I'm trying the same definition with enabled custom user-agent and the map does not work as well. Even in Insomnia (Postman), the result is the same.
So to me, it looks like really invalid parameters. I'm surprised that free service require exactly defined referer and user-agent values. Are there any public docs?
Hello NewVar,
as the main app developer, I'll try to give you a help here.
Locus Map does not block IGN.fr servers. I'm trying your custom map definitions and the response from the server is "403 Forbidden".
I'm trying the same definition with enabled custom user-agent and the map does not work as well. Even in Insomnia (Postman), the result is the same.
So to me, it looks like really invalid parameters. I'm surprised that free service require exactly defined referer and user-agent values. Are there any public docs?
I confirm that I had the same problem with Locus Map 3.50 (see "Merged objects" in the initial post at the top of the page). Me too (seeing THIS discussion) reinstalled Locus Maps 3.49.1, and everything is working fine. There is therefore no syntax error in the code of our file "providers.xml", but there is a bug in Locus Map 3.50.
I do not understand why this topic is classified "Not a problem"
I confirm that I had the same problem with Locus Map 3.50 (see "Merged objects" in the initial post at the top of the page). Me too (seeing THIS discussion) reinstalled Locus Maps 3.49.1, and everything is working fine. There is therefore no syntax error in the code of our file "providers.xml", but there is a bug in Locus Map 3.50.
I do not understand why this topic is classified "Not a problem"
Hello Menion,
I apologize for my inappropriate response. I don't read English very fluently, and this explains it.
I was unaware of the discussion you provided the link to:
https://help.locusmap.eu/topic/23059-blocking-user-agents-in-3-50
I enjoyed WITHOUT RESTRICTIONS (until recently) Locus Map which has become my essential field companion (I am an amateur naturalist photographer). Also, my intention is ABSOLUTELY NOT to argue in a sterile manner or in bad faith.
I did not understand much in this discussion around "User-agent". Also, I will place myself as a user facing FACTS.
IGN, with its Geoportal API, is a Public Service which, globally, markets its data and which, therefore, protects it. However, he has chosen a commercial policy (which is in the process of change), aimed at offering FREE use to non-professional and non-commercial users. This is done by offering a possibility of free use with a limitation of the NUMBER OF TRANSACTIONS. It is up to the users to take their responsibility.
This explains why, even for free use, it is necessary to contract with IGN for precise use of the service (choice of WMTS layers, etc.), and supposes the granting of a key (limited in time and renewable), and a control device (name and password, or user-agent).
I have such a contract and I am therefore PERFECTLY IN THE LEGALITY with respect to IGN. Also, until LOCUS version 3.49, I was a fully satisfied user. Since version 3.50, I am still as legal as regards IGN and LOCUS, but I can no longer display my dear cards outdoors (except to remain stuck on LOCUS 3.49 which I have yet paid), and therefore I am no longer satisfied.
I had imagined it was a bug. Sorry about the misunderstanding. I have now understood that this is a deliberate choice of the designers of Locus. Like other users, I regret this choice of which WE highlight inappropriate consequences.
Also, my question, ultimately, is simple: Do you plan, yes or no, to allow us to find the use of our dear IGN maps on LOCUS, and how? Otherwise, I am thinking of migrating to another product, in desperation.
Best regards
Yves Durivault
Le 04/02/2021 à 19:20, Locus Map a écrit :
Hello Menion,
I apologize for my inappropriate response. I don't read English very fluently, and this explains it.
I was unaware of the discussion you provided the link to:
https://help.locusmap.eu/topic/23059-blocking-user-agents-in-3-50
I enjoyed WITHOUT RESTRICTIONS (until recently) Locus Map which has become my essential field companion (I am an amateur naturalist photographer). Also, my intention is ABSOLUTELY NOT to argue in a sterile manner or in bad faith.
I did not understand much in this discussion around "User-agent". Also, I will place myself as a user facing FACTS.
IGN, with its Geoportal API, is a Public Service which, globally, markets its data and which, therefore, protects it. However, he has chosen a commercial policy (which is in the process of change), aimed at offering FREE use to non-professional and non-commercial users. This is done by offering a possibility of free use with a limitation of the NUMBER OF TRANSACTIONS. It is up to the users to take their responsibility.
This explains why, even for free use, it is necessary to contract with IGN for precise use of the service (choice of WMTS layers, etc.), and supposes the granting of a key (limited in time and renewable), and a control device (name and password, or user-agent).
I have such a contract and I am therefore PERFECTLY IN THE LEGALITY with respect to IGN. Also, until LOCUS version 3.49, I was a fully satisfied user. Since version 3.50, I am still as legal as regards IGN and LOCUS, but I can no longer display my dear cards outdoors (except to remain stuck on LOCUS 3.49 which I have yet paid), and therefore I am no longer satisfied.
I had imagined it was a bug. Sorry about the misunderstanding. I have now understood that this is a deliberate choice of the designers of Locus. Like other users, I regret this choice of which WE highlight inappropriate consequences.
Also, my question, ultimately, is simple: Do you plan, yes or no, to allow us to find the use of our dear IGN maps on LOCUS, and how? Otherwise, I am thinking of migrating to another product, in desperation.
Best regards
Yves Durivault
Le 04/02/2021 à 19:20, Locus Map a écrit :
Yes it is, Peter.
YD
Le 05/02/2021 à 16:05, Locus Map a écrit :
Yes it is, Peter.
YD
Le 05/02/2021 à 16:05, Locus Map a écrit :
I contacted IGN via a specialized forum, and I got the following answer:
Hello,The source of all your problems is securing the geoservices key you use:
In order to modify the security of your key, I advise you to contact this email address: contact.geoservices@ign.fr to add for example : LOCUS-MAP
... in the list of authorized user-agents with your key.
Indeed, if it is not more complicated than that !
I want to try this solution if you provide me with the EXACT SYNTAX of the user-agent you defined for Locus Maps. 😁
YD
Le 05/02/2021 à 16:05, Locus Map a écrit :
I contacted IGN via a specialized forum, and I got the following answer:
Hello,The source of all your problems is securing the geoservices key you use:
In order to modify the security of your key, I advise you to contact this email address: contact.geoservices@ign.fr to add for example : LOCUS-MAP
... in the list of authorized user-agents with your key.
Indeed, if it is not more complicated than that !
I want to try this solution if you provide me with the EXACT SYNTAX of the user-agent you defined for Locus Maps. 😁
YD
Le 05/02/2021 à 16:05, Locus Map a écrit :
Especially for the interlocutor "NewVar" :
I just made a test with another contract with IGN, whose security mode is : login + password.
It works perfectly on locus 3.49! (I will check with 3.50 free as a temporary installation on my girlfriend's smartphone ).
I suggest you also test and let us know the result of your test, preferably on Locus 3.50.
... and also tell me what you think of this resolution !
YD
The syntax for the file providers.xml is :
<provider id="xxxxx" type="0" visible="true" background="-1">
<name>Geoportail</name>
<mode>Carte Scan25 touristique</mode>
<url><![CDATA[https://wxs.ign.fr/the_key_here/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>26</zoomMax>
<tileSize>256</tileSize>
<countries>France</countries>
<extraHeader><![CDATA[login#your_login]]></extraHeader>
<extraHeader><![CDATA[password#your_password]]></extraHeader>
<usage>road,city</usage>
</provider>
Le 05/02/2021 à 22:00, Locus Map a écrit :
Especially for the interlocutor "NewVar" :
I just made a test with another contract with IGN, whose security mode is : login + password.
It works perfectly on locus 3.49! (I will check with 3.50 free as a temporary installation on my girlfriend's smartphone ).
I suggest you also test and let us know the result of your test, preferably on Locus 3.50.
... and also tell me what you think of this resolution !
YD
The syntax for the file providers.xml is :
<provider id="xxxxx" type="0" visible="true" background="-1">
<name>Geoportail</name>
<mode>Carte Scan25 touristique</mode>
<url><![CDATA[https://wxs.ign.fr/the_key_here/geoportail/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>26</zoomMax>
<tileSize>256</tileSize>
<countries>France</countries>
<extraHeader><![CDATA[login#your_login]]></extraHeader>
<extraHeader><![CDATA[password#your_password]]></extraHeader>
<usage>road,city</usage>
</provider>
Le 05/02/2021 à 22:00, Locus Map a écrit :
Hello NewVar
No, in fact my "trick" is not working. I believed it during a (too) quick test but it was the cache that displayed the map!
After emptying the cache, nothing!
I asked the IGN, for my key used with LOCUS, to add "Locus" in the chains authorized in User-agent and I am waiting for the answer.
More news from Menion on NewVar's remark ???
YD
Le 09/02/2021 à 11:50, Locus Map a écrit :
Hello NewVar
No, in fact my "trick" is not working. I believed it during a (too) quick test but it was the cache that displayed the map!
After emptying the cache, nothing!
I asked the IGN, for my key used with LOCUS, to add "Locus" in the chains authorized in User-agent and I am waiting for the answer.
More news from Menion on NewVar's remark ???
YD
Le 09/02/2021 à 11:50, Locus Map a écrit :
Latest news :IGN made the change I requested for my geoservices user key.
So, the User-agent security is now: * gis *, Locus, Locus-map.
(Note that they have provided for this adaptability, precisely, among others, for applications of the "Locus" type).
Well ... it still doesn't work with LOCUS 3.50.... and it's seriously starting to tire me.
I urge Menion to clarify one last time what can be done at LOCUS to find a solution to our problem.
YD
Le 10/02/2021 à 17:27, Yves Durivault a écrit :
Hello NewVar
No, in fact my "trick" is not working. I believed it during a (too) quick test but it was the cache that displayed the map!
After emptying the cache, nothing!
I asked the IGN, for my key used with LOCUS, to add "Locus" in the chains authorized in User-agent and I am waiting for the answer.
More news from Menion on NewVar's remark ???
YD
Le 09/02/2021 à 11:50, Locus Map a écrit :
Latest news :IGN made the change I requested for my geoservices user key.
So, the User-agent security is now: * gis *, Locus, Locus-map.
(Note that they have provided for this adaptability, precisely, among others, for applications of the "Locus" type).
Well ... it still doesn't work with LOCUS 3.50.... and it's seriously starting to tire me.
I urge Menion to clarify one last time what can be done at LOCUS to find a solution to our problem.
YD
Le 10/02/2021 à 17:27, Yves Durivault a écrit :
Hello NewVar
No, in fact my "trick" is not working. I believed it during a (too) quick test but it was the cache that displayed the map!
After emptying the cache, nothing!
I asked the IGN, for my key used with LOCUS, to add "Locus" in the chains authorized in User-agent and I am waiting for the answer.
More news from Menion on NewVar's remark ???
YD
Le 09/02/2021 à 11:50, Locus Map a écrit :
Hello Yves, NewVar,
to be true, I do not understand why we should deal with problems on the IGN side. Access to service is granted based on your own API key and some kind of user-agent does not make sense at all. Yves, you've already wrote about the option to use name/pass in requests so where is a problem? You confirmed that this solution works correctly.
User-agent is usually used to identify the application that is responsible for communication with the opposite side so I'm sure we all will agree, that it does not make sense to fake Locus Map as a Firefox browser.
In the worst case, I may hardcode faking of user-agent just for IGN servers just because of this problem, but because the name/pass system works, I believe it won't be necessary.
Hello Yves, NewVar,
to be true, I do not understand why we should deal with problems on the IGN side. Access to service is granted based on your own API key and some kind of user-agent does not make sense at all. Yves, you've already wrote about the option to use name/pass in requests so where is a problem? You confirmed that this solution works correctly.
User-agent is usually used to identify the application that is responsible for communication with the opposite side so I'm sure we all will agree, that it does not make sense to fake Locus Map as a Firefox browser.
In the worst case, I may hardcode faking of user-agent just for IGN servers just because of this problem, but because the name/pass system works, I believe it won't be necessary.
Hello Menion,
I am responding to your last email:
I don't want to take sides on the first paragraph of your answer, and I agree with the second: "it does not make sense to fake Locus Map as a Firefox browser".
First, update: My attempt to use the request with username and password does not work, contrary to what I had indicated previously (it was the cache that temporarily delivered the tiles. .., sorry for the confusion).
It is a fact that certain providers of geographic data, including IGN, use user-agent as a means of securing the use of the data delivered.
In the case of use for portable mapping application type Locus or equivalent, it is THE ONLY one intended for.
However, IGN does not require LOCUS to hide like a Firefox browser. It is only necessary that LOCUS be recognized by a specific user-agent, and that the users contract with the IGN for a key with use of this user-agent.
For example, for my QGIS Geographic information system, I use user-agent * GIS * .
Okay, I see NewVar responded too ... I join him for "Thank for your perseverance Menion ! 😁
YD
Le 12/02/2021 à 09:40, Locus Map a écrit :
Hello Menion,
I am responding to your last email:
I don't want to take sides on the first paragraph of your answer, and I agree with the second: "it does not make sense to fake Locus Map as a Firefox browser".
First, update: My attempt to use the request with username and password does not work, contrary to what I had indicated previously (it was the cache that temporarily delivered the tiles. .., sorry for the confusion).
It is a fact that certain providers of geographic data, including IGN, use user-agent as a means of securing the use of the data delivered.
In the case of use for portable mapping application type Locus or equivalent, it is THE ONLY one intended for.
However, IGN does not require LOCUS to hide like a Firefox browser. It is only necessary that LOCUS be recognized by a specific user-agent, and that the users contract with the IGN for a key with use of this user-agent.
For example, for my QGIS Geographic information system, I use user-agent * GIS * .
Okay, I see NewVar responded too ... I join him for "Thank for your perseverance Menion ! 😁
YD
Le 12/02/2021 à 09:40, Locus Map a écrit :
Hmm, this is a really stupid situation ...
I do not like this solution, but since the next version, the app will automatically use Firefox, Locus-Map as a user agent for maps with Url starting with https://wxs.ign.fr/ . I've tested it and this UA works correctly. It is "faked" but also contains "Locus Map". Seems that "Firefox" is the keyword.
Usable for all?
Hmm, this is a really stupid situation ...
I do not like this solution, but since the next version, the app will automatically use Firefox, Locus-Map as a user agent for maps with Url starting with https://wxs.ign.fr/ . I've tested it and this UA works correctly. It is "faked" but also contains "Locus Map". Seems that "Firefox" is the keyword.
Usable for all?
I want to thank you very much, Menion!
I think the solution you have implemented, if you are not completely satisfied with it, is the BEST SOLUTION: Locus is identified, and the users of IGN services are satisfied!
Thank you for your perseverance and for your willingness to fix this problem.
Thanks to this, I will be able to continue my naturalist outings in the field with the excellent maps from IGN, on my favorite application, LOCUS, which is like a third hand for me!...
and I will continue to promote LOCUS to my amateur naturalist friends!
Thank you also to NewVar for participating by providing relevant information to the settlement of the problem!
(Sorry for my somewhat broken English, which owes a lot to Google's automatic translator 😉)
Yves DURIVAULT
https://garsyves.fr
Le 16/02/2021 à 09:40, Locus Map a écrit :
I want to thank you very much, Menion!
I think the solution you have implemented, if you are not completely satisfied with it, is the BEST SOLUTION: Locus is identified, and the users of IGN services are satisfied!
Thank you for your perseverance and for your willingness to fix this problem.
Thanks to this, I will be able to continue my naturalist outings in the field with the excellent maps from IGN, on my favorite application, LOCUS, which is like a third hand for me!...
and I will continue to promote LOCUS to my amateur naturalist friends!
Thank you also to NewVar for participating by providing relevant information to the settlement of the problem!
(Sorry for my somewhat broken English, which owes a lot to Google's automatic translator 😉)
Yves DURIVAULT
https://garsyves.fr
Le 16/02/2021 à 09:40, Locus Map a écrit :
At the attention of NewVar
(sorry, Menion, that's the only way to reach him)
Everything works fine for me EXCEPT the layer "Plan IGN v2" (which I contracted as a free key with the good User-agent value). The layer "orthophoto" works well with thesame key (???).
Here is my xml code:
<provider id="11000" type="0" visible="true" background="-1">
<name>Geoportail</name>
<mode>PLAN ign v2</mode>
<url><![CDATA[https://wxs.ign.fr/(my key)/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>26</zoomMax>
<tileSize>256</tileSize>
<countries>France</countries>
<extraHeader><![CDATA[User-Agent#Firefox, Locus-Map]]></extraHeader>
<usage>road,city</usage>
</provider>
Can you compare with yours ? Thanks
My direct mail : yves.durivault@gmail.com
Le 16/02/2021 à 09:35, Locus Map a écrit :
At the attention of NewVar
(sorry, Menion, that's the only way to reach him)
Everything works fine for me EXCEPT the layer "Plan IGN v2" (which I contracted as a free key with the good User-agent value). The layer "orthophoto" works well with thesame key (???).
Here is my xml code:
<provider id="11000" type="0" visible="true" background="-1">
<name>Geoportail</name>
<mode>PLAN ign v2</mode>
<url><![CDATA[https://wxs.ign.fr/(my key)/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>26</zoomMax>
<tileSize>256</tileSize>
<countries>France</countries>
<extraHeader><![CDATA[User-Agent#Firefox, Locus-Map]]></extraHeader>
<usage>road,city</usage>
</provider>
Can you compare with yours ? Thanks
My direct mail : yves.durivault@gmail.com
Le 16/02/2021 à 09:35, Locus Map a écrit :
NewVar, thank you!
Yes, it works fine ! I'm sorry, I could still have had this idea ...😅
Well, as long i win, I play :
...Watching your little video, I saw that you manage to view France's nautical charts (not the littoral map from IGN, but nautical) ...
If you could help a poor old man like me to do that, I would appreciate it vey much ... but I may be asking a lot, there.
...Waiting and hoping ! 😂😂😂
YD
Le 19/02/2021 à 18:05, Locus Map a écrit :
NewVar, thank you!
Yes, it works fine ! I'm sorry, I could still have had this idea ...😅
Well, as long i win, I play :
...Watching your little video, I saw that you manage to view France's nautical charts (not the littoral map from IGN, but nautical) ...
If you could help a poor old man like me to do that, I would appreciate it vey much ... but I may be asking a lot, there.
...Waiting and hoping ! 😂😂😂
YD
Le 19/02/2021 à 18:05, Locus Map a écrit :
Replies have been locked on this page!