By default data is downloaded to $GISDBASE/wms_download. This can be changed by setting the folder= option when using r.in.wms. By default r.in.wms will make locations named things like wms_EPSG4326 to import data. This can be changed by setting up the source location yourself and using the location= option.
This program needs r.tileset, wms.request, wms.download, and r.in.gdalwarp to work. They all must be executable and in PATH. You can download all of them as a bundle.
g.region res=30
r.in.wms output=elevation_meters mapserver=http://wms.jpl.nasa.gov/wms.cgi layers=us_ned styles=real -o
Download real number meter elevation from OnEarth to cover the current region. Uses -o for opaque to get smaller download.
g.region res=90
g.region save=panhandle-90ft
Save this region with a name; this makes resuming downloads possible or rather easier.
r.in.wms output=elevation_feet mapserver=http://wms.jpl.nasa.gov/wms.cgi layers=us_ned styles=feet_real -o region=panhandle-90ft
Download real number feet elevation from OnEarth to cover the current region. Uses -o for opaque to get smaller download. Using a named region lets us resume later easily.
r.in.wms output=elevation_feet mapserver=http://wms.jpl.nasa.gov/wms.cgi layers=us_ned styles=feet_real -o region=panhandle-90ft -d method=cubic
-d skips ahead to downloading. This could be used to try downlading again (if some files failed last time) or to import the data differently. Since downloaded files are remembered those already received successfully are not re-requested. In this case we are reimporting the data using the cubic interpolation method instead of nearest neighbor.
g.region res=1.2
g.region save=drg-resolution
r.in.wms output=terraserver-drg mapserver=http://terraserver.microsoft.com/ogcmap6.ashx layers=DRG region=drg-resolution format=jpeg srs=EPSG:26910
Note that srs will need to be changed to a projection that is appropriate for your region.
r.tileset sourceproj=+init=epsg:4326 maxrows=1024 maxcols=2048
Generates tiles in latitude longitude that cover the current region, each tile less than 1024 pixels high and 2048 pixels across. The bounds and sizes of tiles in the output are seperated by |
r.tileset sourceproj=`g.proj -j location=IrishGrid` maxrows=400 maxcols=300 overlap=3 -g
Generates tiles in the projection of the location, "IrishGrid", each tile less than 300x400 with 3 pixels of overlap added to the top and right sides of each tile. The output is in a format where each line is in shell script style.
r.tileset sourceproj=+init=epsg:4326 overlap=2 -w region=ne-rio
Generates tiles in lat long projection that cover the named region "ne-rio". The tiles will have 2 pixels of overlap. The output format will be strings like the bbox requests for WMS servers.
A batch gdal import tool. Requires gdalwarp. Warps all of the files listed with gdalwarp, imports them into the current location, and patches them together.
v.group input=messylanduse output=landuse columns=jurisdiction,owner,manager
Reclassifies a land use map with a separate category for each feature to a
category for each combination of jurisdiction, owner, and manging agency.