[GRASS-user] r.in.wms and PCN webservices

Hamish hamish_b at yahoo.com
Fri May 31 17:14:14 PDT 2013


Ivan wrote:
> 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

I'm not sure about location setup and valid region bounds, but
something like this should work in 6.4 from the command line:

urlparams="map=/ms_ogc/WMS_v1.3/raster/ortofoto_colore_06.map"

# works
r.in.wms -l output=dummy mapserver="http://wms.pcn.minambiente.it/ogc" \
  wmsquery="version=1.3.0&$urlparams"

# server error, but I'm probably asking for the wrong bounds
r.in.wms output=tile1 mapserver="http://wms.pcn.minambiente.it/ogc" \
  layers="OI.ORTOIMMAGINI.2006.33" srs="EPSG:32633" format=jpeg \
  method=nearest wmsquery="version=1.3.0&$urlparams"


Hamish


More information about the grass-user mailing list