Downloading WMS from French geoportal
falqn
Global Mapper UserTrusted User
Hi,
I'm trying to connect to French geoportal WMS service at http://gpp3-wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/v/wms?
Below is an example of valid request (made by web browser), how can I force GM to send valid request's like this. I have tried a lot of combinations of parameters... I give up...
http://gpp3-wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/v/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=COMMUNES_BDD-POI_WLD_WM&STYLES=&CRS=EPSG:3857&BBOX=1021458.817722547,5178689.616949145,1071793.377435141,5215849.896514211&WIDTH=1257&HEIGHT=928&FORMAT=image/png&TRANSPARENT=TRUE&EXCEPTIONS=XML&TILED=false&extParamId=aHR0cDovL3d3dy5nZW9wb3J0YWlsLmdvdXYuZnIvYWNjdWVpbA==
I'm using the GM v14.1.2.
Best regards
Wojtek from Poland
I'm trying to connect to French geoportal WMS service at http://gpp3-wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/v/wms?
Below is an example of valid request (made by web browser), how can I force GM to send valid request's like this. I have tried a lot of combinations of parameters... I give up...
http://gpp3-wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/v/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=COMMUNES_BDD-POI_WLD_WM&STYLES=&CRS=EPSG:3857&BBOX=1021458.817722547,5178689.616949145,1071793.377435141,5215849.896514211&WIDTH=1257&HEIGHT=928&FORMAT=image/png&TRANSPARENT=TRUE&EXCEPTIONS=XML&TILED=false&extParamId=aHR0cDovL3d3dy5nZW9wb3J0YWlsLmdvdXYuZnIvYWNjdWVpbA==
I'm using the GM v14.1.2.
Best regards
Wojtek from Poland
Comments
-
Wojtek,
Can you first get the latest installers for v14.1.5 from http://www.bluemarblegeo.com/products/global-mapper-download.php and see if that works. Very recently some fixes for WMS 1.3.0 servers were made that might fix this.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
Mike,
It's the same with new version. I'm trying Server URL: http://gpp3-wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/v/wms and Service Name: WMS&VERSION=1.3.0, the list of Data Layers is showing but after that GM is sending not valid requests.
For example instead "wms?" in request GM is putting "ows?". Mayby something is wrong with server, but under web browser this WMS service is working fine. You can use this link: http://www.geoportail.gouv.fr/accueil?c=8.915759782262207,42.0031360148939&z=0.0005558529343119601&l=ADMINISTRATIVEUNITS.CITYCOUNCILS.3D::GEOPORTAIL:KML3D(1)&permalink=yes
and look at valid requests sending by web browser.
Best regards
Wojtek from Poland -
Wojtek,
Does this source work as a WMS anywhere else? I can't tell how the web page is accessing the source. The 'ows?' comes from the GetCapabilities.xml document for the server so that is correct (at least according to the server) to use for fetching the data tiles.
I did find one more issue relating to WMS 1.3.0 and the crazy problems it has caused with the axis order (i.e. lat/lon or lon/lat) being dependent on the SRS/CRS used. However fixing that still didn't allow me to get any data from this server even though the requests are now for what should be the proper lat/lon bounds, at least assuming this server is compliant with the standard and not one of them that had it wrong to start with and hasn't been upgraded.
I have placed a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.bluemarblegeo.com/downloads/global-mapper/global_mapper14_64bit.zip .
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.bluemarblegeo.com/ -
Mike,
I think that this source is not working as WMS excluding French Geoportal web viewer (http://www.geoportail.gouv.fr). I saw that the web browser requests are typical for WMS services and because of that I have tried to connect GM to this service. But mayby this service is not able to properly connect with WMS client such as GM. Let's forget about this server, thank you for your help Mike!
Best regards
Wojtek from Poland -
falqn, I have no issue downloading from the links in your first message, provided the http-referer is correctly set (for example as "http://www.geoportail.gouv.fr/accueil?blahblah"). The error message you get when opening the url in any browser is explicit: "wrong referer". This restriction is a very basic and highly inefficient security measure in place at many wms servers, to make downloading/unauthorized reuse by third-parties more difficult.
Many browsers, http downloaders and WMS clients allow to set an arbitrary http referer in order to bypass this restriction. Note that such a bypassing may infringe the Geoportail's terms of use. -
geologis, I'm not sure I understand you correctly - you have NO problems with downloading data with GM using links from my first post? What "Server URL" and "Service Name" parameters are you using?
Wojtek from Poland -
Hi,
Mike, how is it possible that this request/url: http://wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&FORMAT=image/jpeg&LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS&TILEMATRIXSET=PM&TILEMATRIX=6&TILEROW=24&TILECOL=35&STYLE=normal&extParamId=aHR0cDovL3d3dy5nZW9wb3J0YWlsLmdvdXYuZnIvYWNjdWVpbA==
is giving valid answer in web browser (ex Chrome), but the same request asked by GM is invalid?
Server "knows" that this is web browser ant that is GM - software with "no access"?
Best regards
Wojtek from Poland -
Hi Falqn,
I am not sure how Chrome is reading the link. It looks like you are not able to connect to these services in Global Mapper because you would need to provide authentication in order to use them. I am able to connect to the WMTS server at: http://wxs.ign.fr/tyujsdxmzox31ituc2uw0qwl/geoportail/wmts in Global Mapper, but when I try and access the data, I get an 'access forbidden' error. From information at this website: IGN - API Geoportail, it appears that you would need to obtain a key and enter a username and password to use French Geoportal services in GIS software. There is currently an enhancement request to add the ability to connect to web services that require a password. If you would like to be notified of any changes in this request, please send an email to geohelp@bluemarblegeo.com, and we can make sure you are notified.
Regards,
Thea Youngs
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website