Earth Server Logo

Petascope WCS example queries

The petascope service currently reveals several coverages. We can use GET or POST requests for our queries. Petascope supports the following WCS profiles:

http://www.opengis.net/spec/WCS_coverage-encoding/1.0/conf/coverage-encoding</ows:Profile>
http://www.opengis.net/spec/WCS_protocol-binding_get-kvp/1.0</ows:Profile>
http://www.opengis.net/spec/WCS_protocol-binding_post-xml/1.0</ows:Profile>


Capabilities and coverage using GET queries

GetCapabilities (KVP-GET)

/rasdaman/ows?service=WCS&Request=GetCapabilities&acceptversions=2.0.1&

DescribeCoverage (KVP-GET)

We can request one or more coverages. The DescribeCoverage response returns the same information as the GetCoverage response with the exception of the RangeSet (the data itself).

/rasdaman/ows?service=WCS&Request=DescribeCoverage&version=2.0.1&CoverageId=bgs_st_uk& /rasdaman/ows?service=WCS&Request=DescribeCoverage&version=2.0.1&CoverageId=os_dtm& /rasdaman/ows?service=WCS&Request=DescribeCoverage&version=2.0.1&CoverageId=bgs_rs,bgs_st_uk&

GetCoverage (KVP-GET)

The response for the GetCoverage request can be as XML or as image.

You can run a GetCoverage operation on the whole coverage like below, for the bottom of the peat in the Glasgow area (glasgow_p_b). In this instance we do not specify the response format in the request URL so we get the default (XML) response:

/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&CoverageId=glasgow_p_b&

Alternatively, we may request that the GetCoverage response is as image (if the coverage can be represented as an image). For example we can request the Petascope (bgs_rs) example coverage as a tiff image with:

/rasdaman/ows?service=WCS&Request=GetCoverage&version=2.0.1&CoverageId=mean_summer_airtemp&format=image/tiff&

Subsetting using GET queries

Trim

We can use Petascope to apply a trim subsetting operation. For example to trim on two axes:

/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&subset=E(254750.0,265250.0)&subset=N(659824.9,670024.9)&CoverageId=glasgow_lac_b&

Slice

We can use Petascope to apply a slice subsetting operation.

Single slicing operation

Example using BGS Superficial Thickness (bgs_st_uk):

/rasdaman/ows?service=WCS&Request=GetCoverage&version=2.0.1&CoverageId=bgs_st_uk&subset=N(200000)&

Two slicing operations

Examples using BGS Superficial Thickness (bgs_st_uk):

/rasdaman/ows?service=WCS&Request=GetCoverage&version=2.0.1&CoverageId=bgs_st_uk&subset=N(200000)&subset=E(500000) /rasdaman/ows?service=WCS&Request=GetCoverage&version=2.0.1&CoverageId=bgs_st_uk&subset1=N(200000)&subset2=E(500000)

Example using one of the Glasgow model surfaces (glasgow_lac_b)

/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&subset=E(254750.0)&subset=N(670024.9)&CoverageId=glasgow_lac_b&

Trim and Slice combined

One of the Glasgow model surfaces (glasgow_bron_t)

/rasdaman/ows?service=WCS&version=2.0.1&request=GetCoverage&subset=E(254750.0,265250.0)&subset=N(659824.9)&CoverageId=glasgow_bron_t&

Subsetting by POSTing XML

Note: Click the below examples to open ... you can cut and paste your own examples into the form area. Examples use the bgs_rs LandSat coverage.

Subsetting : Trimming : Subset bgs_rs on x and y with output as XML

The XML response from this request will indicate (boundedBy > Envelope) that the trim has been applied to both x and y axes

Subsetting : Slicing : Slicing bgs_rs on x and y

The XML response from this request will ...

Example results

Example query or URL

Example results