table of contents
other versions
- wheezy 6.4.2-2
- jessie 6.4.4-1
- testing 7.2.0-2
- unstable 7.2.0-2
- experimental 7.2.1-1~exp1
r.in.wms(1grass) | Grass User's Manual | r.in.wms(1grass) |
NAME¶
r.in.wms - Downloads and imports data from WMS servers.KEYWORDS¶
wmsSYNOPSIS¶
r.in.wmsFlags:¶
- -l
-
- -d
-
- -o
-
- -c
-
- -k
-
- -p
-
- -g
-
- --overwrite
-
- --verbose
-
- --quiet
-
Parameters:¶
- output=string
-
- mapserver=string
-
- layers=string[,string,...]
-
- styles=string[,string,...]
-
- srs=string
-
- format=string
-
- wmsquery=string
-
- maxcols=integer
-
- maxrows=integer
-
- tileoptions=string
-
- region=string
-
- folder=string
-
- wgetoptions=string
-
- curloptions=string
-
- method=string
-
- cap_file=string
-
- v=integer
-
DESCRIPTION¶
r.in.wms handles all of downloading and importing raster data from an OGC WMS web mapping server. It need only be told the desired data to collect (bounds and resolution) via a region, the server to get the data from, and the layer or layers to get. It downloads the data in tiles, reprojects it, imports it, and patches it back together.NOTES¶
By default data is downloaded to $GISDBASE/wms_download. This can be changed by setting the folder option when using r.in.wms. To understand the data you are getting it is necessary to look at the capabilities of the WMS server. This should be available via a capabilities request. This is an example capabilities request to NASA's OnEarth server. Other brain-dead servers will not accept queries in the form of POST data. If you get an error try using the -g flag to force r.in.wms to send an atomic GET request instead.EXAMPLES¶
General Get Capabilities Request¶
A capabilities request like http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities is where you should start. It tells you what data is offered, the projections it is in, where to find meta data, resolutions, scales, and bounds for data, etc. E.g. lists the layers available from the NASA OnEarth server.US NED Elevation from OnEarth server download (metric units)¶
Set the resolution to 30 (assuming you're in metric units):layers=us_ned styles=real
US NED Elevation from OnEarth server download (feet units)¶
Set the resolution to 90 (assuming you're in feet units) a save this region with a name; this makes resuming downloads possible or rather easier:layers=us_ned styles=feet_real region=panhandle-90ft
layers=us_ned styles=feet_real -o region=panhandle-90ft method=cubic
LANDSAT from OnEarth server download¶
Set the resolution to 30 meters for LANDSAT:output=wms_global_mosaic
DRG from Terraserver server download¶
Set the resolution to 1.2 meters for DRGs. Their native resolution is 2.4 meters, so this is some pretty hefty oversampling:layers=DRG region=drg-resolution format=jpeg srs=EPSG:26910
REQUIRED PROGRAMS¶
r.in.wms requires the following programs to work:- wget: An http download program, or
- curl: Alternate http download program
- bc: A calculator program
- sed, grep: Unix string processing and search programs
- gdalwarp: A reprojection tool, needed only if data is projected into this location.
- xml2: An xml parser. Enables more accurate listing of layers on the server.
SEE ALSO¶
r.tileset, r.in.gdal, r.patch, r.colors, r.compositeAUTHORS¶
Soeren Gebbert, Jachym Cepicky, and Cedric Shock Last changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $ Full index © 2003-2011 GRASS Development TeamGRASS 6.4.2 |