Prechádzať zdrojové kódy

r.in.wms, v.in.wfs: msg cosmetics; keywords added; Sentinel-2 screenshot added; some examples updated

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74163 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 6 rokov pred
rodič
commit
0e6f0f10e0

+ 14 - 7
scripts/r.in.wms/r.in.wms.html

@@ -1,7 +1,7 @@
 <h2>DESCRIPTION</h2>
 
 <em>r.in.wms</em> handles all of downloading and importing raster data
-from an <a href="http://www.opengeospatial.org/standards/wms">OGC
+from <a href="http://www.opengeospatial.org/standards/wms">OGC
 WMS</a> and <a href="http://www.opengeospatial.org/standards/wmts">OGC
 WMTS</a> web mapping servers. It only needs be told the
 desired data to collect (bounds and resolution) via a region, the
@@ -80,10 +80,16 @@ g.region raster=elevation -p
 r.in.wms url="https://tiles.maps.eox.at/wms?" layers=s2cloudless output=sentinel2 format=png
 </pre></div>
 
+<div align="center" style="margin: 10px">
+<a href="r_in_wms_sentinel2.jpg"><img src="r_in_wms_sentinel2.jpg" width="600px" height="531px"></a><br>
+<i>Figure: Raleigh (NC, USA) seen by Sentinel-2 (10m resolution; image courtesy: EOX)</i>
+</div>
+
 <h4>OGC WMTS Example</h4>
 
 <div class="code"><pre>
-r.in.wms url="http://gpp3-wxs.ign.fr/yourAPIkey/geoportail/wmts" layers=ORTHOIMAGERY.ORTHOPHOTOS output=orthophoto srs=3857 format=jpeg driver=WMTS_GRASS style=normal password="*" username="*"
+r.in.wms url="http://gpp3-wxs.ign.fr/yourAPIkey/geoportail/wmts" layers=ORTHOIMAGERY.ORTHOPHOTOS \
+         output=orthophoto srs=3857 format=jpeg driver=WMTS_GRASS style=normal password="*" username="*"
 </pre></div>
 
 Note: username, password and API key can be obtained from <a href="http://api.ign.fr/">IGN API</a> website
@@ -95,15 +101,16 @@ r.in.wms url="http://wms.cuzk.cz/wms.asp" layers=prehledka_kraju-linie srs=4326
 </pre></div>
 
 <div class="code"><pre>
-r.in.wms url="http://geoportal.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx" layers=orto output=ortofoto srs=3857 format=jpeg driver=WMTS_GRASS style=default
+r.in.wms url="http://geoportal.cuzk.cz/WMTS_ORTOFOTO/WMTService.aspx" layers=orto output=ortofoto \
+         srs=3857 format=jpeg driver=WMTS_GRASS style=default
 </pre></div>
 
-Note: data are provided by <a href="http://cuzk.cz/Dokument.aspx?PRARESKOD=998&MENUID=10384&AKCE=DOC:10-ENGLISH">Czech office for surveying, mapping and cadastre</a>.
+Note: data are provided by
+<a href="https://cuzk.cz/en">Czech office for surveying, mapping and cadastre</a>.
 
 <h2>REQUIREMENTS</h2>
 
-<em>r.in.wms</em>
-requires the <a href="http://www.gdal.org/gdalwarp.html">gdalwarp</a>
+<em>r.in.wms</em> requires the <a href="https://www.gdal.org/gdalwarp.html">gdalwarp</a>
 utility from the GDAL/OGR library.
 
 <h2>REFERENCES</h2>
@@ -129,7 +136,7 @@ See also
 
 <h2>AUTHOR</h2>
 
-Stepan Turek, Czech Technical University in Prague, Czech Republic
+Stepan Turek, Czech Technical University in Prague, Czech Republic<br>
 (bachelor's final project 2012, mentor: Martin Landa)
 
 <p>

+ 3 - 1
scripts/r.in.wms/r.in.wms.py

@@ -13,10 +13,12 @@ This program is free software under the GNU General Public License
 """
 
 #%module
-#% description: Downloads and imports data from WMS/WMTS/NASA OnEarth server.
+#% description: Downloads and imports data from OGC WMS and OGC WMTS web mapping servers.
 #% keyword: raster
 #% keyword: import
 #% keyword: OGC web services
+#% keyword: OGC WMS
+#% keyword: OGC WMTS
 #%end
 
 #%option

BIN
scripts/r.in.wms/r_in_wms_sentinel2.jpg


+ 1 - 1
scripts/r.in.wms/wms_drv.py

@@ -30,7 +30,7 @@ try:
     from osgeo import gdal
     from osgeo import gdalconst
 except:
-    grass.fatal(_("Unable to load GDAL python bindings"))
+    grass.fatal(_("Unable to load GDAL Python bindings (requires package 'python-gdal' being installed)"))
 
 import numpy as Numeric
 Numeric.arrayrange = Numeric.arange

+ 1 - 1
scripts/r.in.wms/wms_gdal_drv.py

@@ -24,7 +24,7 @@ try:
     from osgeo import gdal
     from osgeo import gdalconst
 except:
-    grass.fatal(_("Unable to load GDAL Python bindings"))
+    grass.fatal(_("Unable to load GDAL Python bindings (requires package 'python-gdal' being installed)"))
 
 import xml.etree.ElementTree as etree
 

+ 1 - 0
scripts/v.in.wfs/v.in.wfs.py

@@ -27,6 +27,7 @@
 #% keyword: vector
 #% keyword: import
 #% keyword: OGC web services
+#% keyword: OGC WFS
 #%end
 #%option
 #% key: url