[GRASS-user] Any freely available topographical maps for (South-) Germany ?

Hamish hamish_b at yahoo.com
Thu Jun 12 10:49:29 EDT 2008


Hamish:
> > you can access WMS servers with the r.in.wms module.
> > this will give you a raster map. If you want data not
> > just a pretty picture make sure the server supports the GeoTiff
> > format. (???)
> >
> > SERVER="http://www.geodaten.bayern.de/ogc/getogc.cgi?"
> > r.in.wms mapserver="$SERVER" -l
> >  # adding --verbose to that will show you a working
> >    URL for firefox
> > 
> > r.in.wms mapserver="$SERVER" layer=TK50 out=TK50_Bavaria ....

Nikos:
> Is it correct to have downloaded files with the
> ".geotiff" extension ?

I think if you look in them you will see an error message not an image.
?

> And the error (below)? 

> >r.in.wms mapserver="$SERVER" layer=TK50 out=TK50_Bavaria
> [...]
> Downloading data
> 15:33:55 URL:http://www.geodaten.bayern.de/ogc/getogc.cgi?
> [378] ->
> "/home/nik/grassdb/rlp_fgaps/wms_download/TK50_Bavaria__0.geotiff" [1]
> All tiles downloaded successfully
> #################################
> <?xml version='1.0'
> encoding="ISO-8859-1" standalone="no"
> ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException code="InvalidFormat">
> msWMSLoadGetMapParams(): Image handling error. Unsupported
> output format (image/geotiff).
> </ServiceException>
> </ServiceExceptionReport>


"Unsupported output format (image/geotiff)."

downloading the capabilities file by hand it shows:

<!-- MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=W
MS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -
->
....
    <GetMap>
      <Format>image/jpg</Format>
      <Format>image/gif</Format>
      <Format>image/png</Format>
      <Format>image/png; mode=24bit</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>image/tiff</Format>
      <Format>image/svg+xml</Format>


no geotiff support.  set format= to one of the above.

I tried in a WGS84 lat/lon loc:

g.region n=50:30N s=47:15N w=9E e=13:45E res=0:00:30
r.in.wms mapserver="$SERVER" layer=TK50 out=TK50_Bavaria format=png -g

it seemed to work, but I only got a blank map. Maybe you will have better luck. Using "-g" I got a "(c) Bayerische ..." in the image, without "-g" I didn't. shrug.

maybe you can get something from v.in.wfs?
or try QGIS's or GDAL 1.5+'s WMS import tools?


Hamish


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the grass-user mailing list