WCS: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
m (remove hardcoded version specific urls, use latest version)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__TOC__
__TOC__


This page is about support of OGC web coverage services (WCS) in GRASS GIS.
This page OGC Web Coverage Services (WCS) support in GRASS GIS.


== Metasites and collections of WCS servers ==
== Metasites and collections of WCS servers ==


* ...
* [http://184.73.174.89/gi-cat-StP/services/cswisogeo?service=CSW&request=GetRecordById&id=urn:geoss:csr:resource:urn:uuid:b4ff75f1-28de-37ff-086a-52cff996df5e&outputschema=http://www.isotc211.org/2005/gmi&elementSetName=full US Daily NDVI WCS 2011]
* [http://184.73.174.89/gi-cat-StP/services/cswisogeo?service=CSW&request=GetRecordById&id=urn:geoss:csr:resource:urn:uuid:d00fdccf-a1b3-431e-9d94-b0afbcf038a3&outputschema=http://www.isotc211.org/2005/gmi&elementSetName=full Global Drought WCS]
* More WCS endpoints can be obtained by searching the [http://www.eurogeoss-broker.eu/ EuroGEOSS Broker] and by specifying ''Web Coverage Service'' in the Keyword section.  


== Using WCS in GRASS GIS ==
== Using WCS in GRASS GIS ==


One option is to register the WCS service via {{cmd|r.external|version=70}}.
One option is to register the WCS service via {{cmd|r.external}}.


First create ASCII file with this content, named e.g. "wcs_geoserver_LL.wcs":
First create ASCII file with this content, named e.g. "wcs_geoserver_LL.wcs":

Latest revision as of 10:08, 4 December 2018

This page OGC Web Coverage Services (WCS) support in GRASS GIS.

Metasites and collections of WCS servers

Using WCS in GRASS GIS

One option is to register the WCS service via r.external.

First create ASCII file with this content, named e.g. "wcs_geoserver_LL.wcs":

 
<WCS_GDAL>
  <ServiceURL>http://demo.opengeo.org/geoserver/wcs?</ServiceURL>
  <CoverageName>Img_Sample</CoverageName>
</WCS_GDAL>

or simply download this file from here.

Start GRASS in a latlong location (EPSG 4326), then register the WCS file:

 
r.external input=wcs_geoserver_LL.wcs output=wcs_data

Then you can look at the map in the wxGUI map display:

Import of WCS via r.external, display with RGB viewer

In order to limit the WCS to a bounding box (e.g. from current region) a GDAL vrt file can be created from the WCS ASCII file using gdalbuildvrt:

 
gdalbuildvrt wcs_geoserver_LL_BB.vrt wcs_geoserver_LL.wcs -te xmin ymin xmax ymax

See also