OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
849 stars 308 forks source link

[Feat] r.in.wms -c should read local files file:// #615

Open jidanni opened 4 years ago

jidanni commented 4 years ago
$ r.in.wms -c file:///home/jidanni/Downloads/Gwmts.xml
ERROR: Unable to fetch capabilities from
       <file:///home/jidanni/Downloads/Gwmts.xml>. Reason: [Errno 2] No
       such file or directory:
       '/home/jidanni/Downloads/Gwmts.xml?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1'

The only workaround is to first do the ghastly

$ ln ~/Downloads/Gwmts.xml /home/jidanni/Downloads/Gwmts.xml\
'?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1'
jidanni commented 4 years ago

(One thinks

       capfile=name
           Capabilities file to parse (input). It is relevant for WMTS_GRASS and OnEarth_GRASS drivers

might help. I can't figure out how, and alas the man page has no example of how one is supposed to use it.)