[GRASS-SVN] r55915 - grass/branches/develbranch_6/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 19 05:39:09 PDT 2013


Author: hamish
Date: 2013-04-19 05:39:08 -0700 (Fri, 19 Apr 2013)
New Revision: 55915

Modified:
   grass/branches/develbranch_6/scripts/r.in.wms/description.html
Log:
comment out the no longer functioning NASA URLs, add the TelaScience ones. Still more to do here. (#1495)

Modified: grass/branches/develbranch_6/scripts/r.in.wms/description.html
===================================================================
--- grass/branches/develbranch_6/scripts/r.in.wms/description.html	2013-04-19 12:20:22 UTC (rev 55914)
+++ grass/branches/develbranch_6/scripts/r.in.wms/description.html	2013-04-19 12:39:08 UTC (rev 55915)
@@ -7,6 +7,7 @@
 data from, and the layer or layers to get. It downloads the data in
 tiles, reprojects it, imports it, and patches it back together.
 
+
 <h2>NOTES</h2>
 
 By default data is downloaded to <tt>$GISDBASE/wms_download</tt>. This can be changed
@@ -29,34 +30,90 @@
 If you get an error try using the <b>-g</b> flag to force <em>r.in.wms</em>
 to send an atomic GET request instead.
 
+
 <h2>EXAMPLES</h2>
 
 <h3>General Get Capabilities Request</h3>
 
 A capabilities request like
-<a href="http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities">http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities</a>
+<!-- NASA's OnEarth no longer supports arbitrary requests,
+<a href="http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities">http://wms.jpl.nasa.gov/wms.cgi?request=GetCapabilities</a> -->
+<a href="http://mapserver.flightgear.org/ms?Service=WMS&Version=1.1.1&request=GetCapabilities">http://mapserver.flightgear.org/ms?Service=WMS&Version=1.1.1&request=GetCapabilities</a>
 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.
+For example lists the layers available from <!-- NASA OnEarth -->
+TelaScience's OSGeo/FlightGear landcover server.
 
 <div class="code"><pre>
-r.in.wms mapserver=http://wms.jpl.nasa.gov/wms.cgi -l
+<!-- r.in.wms mapserver=http://wms.jpl.nasa.gov/wms.cgi -l -->
+r.in.wms mapserver="http://mapserver.flightgear.org/ms" -l
 </pre></div>
 
+
+<h3>Land Cover</h3>
+
+In a Lat/Lon location first set the region to cover the state of
+North Carolina and the resolution to 30 arc-seconds.
+
+<div class="code"><pre>
+g.region -p n=37N s=33N w=85W e=75W res=0:00:30
+r.in.wms output=nc_landcover mapserver="http://mapserver.flightgear.org/ms" \
+         layer=LANDCOVER format=png
+</pre></div>
+
+<!-- bah, not working for some reason
+Again, but this time in the North Carolina sample dataset (a LCC projection).
+Map units are in meters. We first set to the default region, which for
+this dataset is 500m resolution covering the entire state.
+
+<div class="code"><pre>
+g.region -d
+r.in.wms output=nc_landcover mapserver="http://mapserver.flightgear.org/ms" \
+         layer=LANDCOVER format=png
+</pre></div>
+
+The map is reprojected from the default source projection (EPSG:4326)
+by the module on-the-fly.
+-->
+
+<!-- bah, geotiff doesn't work? what mode to get the actual elevation in meters as data
+instead of just an image of it?
+<h3>SRTM Elevation</h3>
+
+The SRTM dataset covers 60N to 60S and provides elevation in meters.
+Maximum resolution is 3 arc-seconds worldwide (rougly 90m) and 1
+arc-second over the USA (rougly 30m). Limited projections are available,
+demonstrated is for Lat/Long WGS84 (aka EPSG:4326).
+
+First set the region to cover the state of North Carolina and the
+resolution to 30 arc-seconds.
+
+<div class="code"><pre>
+g.region -p n=37N s=33N w=85W e=75W res=0:00:30
+r.in.wms -o output=elevation_meters mapserver="http://mapserver.flightgear.org/ms" \
+         layer=srtm_elevation format=png
+</pre></div>
+
+Uses the <b>-o</b> ignore-opaque flag for a smaller download.
+-->
+
+
+<!--
 <h3>US NED Elevation from OnEarth server download (metric units)</h3>
 
 Set the resolution to 30 (assuming you're in metric units):
 <div class="code"><pre>
 g.region res=30 -ap
-r.in.wms -o output=elevation_meters mapserver=http://wms.jpl.nasa.gov/wms.cgi \
+r.in.wms -o output=elevation_meters mapserver="http://wms.jpl.nasa.gov/wms.cgi" \
          layers=us_ned styles=real
 </pre></div>
 
 Downloads real number meter elevation from OnEarth to cover the current
 region. Uses <b>-o</b> for opaque to get smaller download.
 
+
 <h3>US NED Elevation from OnEarth server download (feet units)</h3>
 
 Set the resolution to 90 (assuming you're in feet units) a save this
@@ -67,7 +124,7 @@
 g.region res=90 -ap
 g.region save=panhandle-90ft
 
-r.in.wms -o output=elevation_feet mapserver=http://wms.jpl.nasa.gov/wms.cgi \
+r.in.wms -o output=elevation_feet mapserver="http://wms.jpl.nasa.gov/wms.cgi" \
          layers=us_ned styles=feet_real region=panhandle-90ft
 </pre></div>
 
@@ -76,27 +133,29 @@
 region lets us resume later easily.
 
 <div class="code"><pre>
-r.in.wms -d output=elevation_feet mapserver=http://wms.jpl.nasa.gov/wms.cgi \
+r.in.wms -d output=elevation_feet mapserver="http://wms.jpl.nasa.gov/wms.cgi" \
          layers=us_ned styles=feet_real -o region=panhandle-90ft method=cubic
 </pre></div>
 
-Use flag <b>-d</b> to skip ahead to downloading. This could be used to try
+Use the <b>-d</b> flag to skip ahead to downloading. This could be used to try
 downloading 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.
+-->
 
+<!--
 <h3>LANDSAT from OnEarth server download</h3>
 
 Set the resolution to 30 meters for LANDSAT:
 <div class="code"><pre>
 g.region res=30 -ap
-r.in.wms layers=global_mosaic mapserver=http://wms.jpl.nasa.gov/wms.cgi \
+r.in.wms layers=global_mosaic mapserver="http://wms.jpl.nasa.gov/wms.cgi" \
          output=wms_global_mosaic
 </pre></div>
 Downloads LANDSAT color scene.
+-->
 
-
 <h3>DRG from Terraserver server download</h3>
 
 Set the resolution to 1.2 meters for DRGs. Their native resolution is
@@ -106,7 +165,7 @@
 g.region res=1.2 -ap
 g.region save=drg-resolution
 
-r.in.wms output=terraserver-drg mapserver=http://terraserver.microsoft.com/ogcmap6.ashx \
+r.in.wms output=terraserver-drg mapserver="http://terraserver.microsoft.com/ogcmap6.ashx" \
          layers=DRG region=drg-resolution format=jpeg srs=EPSG:26910
 </pre></div>
 
@@ -141,6 +200,7 @@
 <a href="v.in.wfs.html">v.in.wfs</a>
 </em>
 
+
 <h2>AUTHORS</h2>
 
 Soeren Gebbert, Jachym Cepicky, and Cedric Shock



More information about the grass-commit mailing list