[GRASS-user] r.in.wms and PCN webservices
Ivan Marchesini
ivan.marchesini at gmail.com
Fri May 31 06:16:21 PDT 2013
Hi pierluigi
this should work in grass7 (don't know in grass 6.4) :
r.in.wms --overwrite output=tile1 url=http://wms.pcn.minambiente.it/ogc
urlparams="map=/ms_ogc/WMS_v1.3/raster/ortofoto_colore_06.map"
layers="OI.ORTOIMMAGINI.2006." srs=32633 format=jpeg maxcols=2000
maxrows=2000 method=near wms_version=1.3.0
please use "urlparams"
ciao
ivan
On Fri, 2013-05-31 at 14:11 +0200, Ing. Pierluigi De Rosa wrote:
> Dear GRASS User
> did anyone tried to use r.in.wms to get data from pcn[1] webservices?
>
> I want to download aerial photo from this URL:
> http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/ortofoto_colore_06.map
>
> if I run
> r.in.wms -c
> url=http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/WMS_v1.3/raster/ortofoto_colore_06.map wms_version=1.3.0
>
> it retries me an error.
> below details.
>
> <b>Warning</b>: ms_newMapObj(): [MapServer Error]: msLoadMap():
> MS_DEFAULT_MAPFILE_PATTERN validation failed.
> in <b>C:\ms4w\Apache\htdocs\wms_capabilities_v130.php</b> on line
> <b>72</b><br />
> <br />
> <b>Warning</b>: ms_newMapObj(): [MapServer Error]: msEvalRegex():
> String failed expression test.
>
> in <b>C:\ms4w\Apache\htdocs\wms_capabilities_v130.php</b> on line
> <b>72</b><br />
> <br />
> <b>Fatal error</b>: Uncaught exception 'MapScriptException' with
> message 'Failed to open map file
> "/ms_ogc/WMS_v1.3/raster/ortofoto_colore_06.map?SERVICE=WMS"'
> in C:\ms4w\Apache\htdocs\wms_capabilities_v130.php:72
>
> Stack trace:
> #0 C:\ms4w\Apache\htdocs\wms_capabilities_v130.php(72):
> ms_newMapObj('/ms_ogc/WMS_v1....')
> #1 {main}
> thrown in <b>C:\ms4w\Apache\htdocs\wms_capabilities_v130.php</b> on
> line <b>72</b><br />
>
>
> [1] http://www.pcn.minambiente.it/PCNDYN/catalogowms.jsp
More information about the grass-user
mailing list