I currently have a geoserver instance with a working wms time dimension layer. I am able to ask for the raster geotiff for a specific day (2016-1-14) with the following request and geoserver responds correctly.


Now I want to get the same functionality from wcs but geoserver always returns the raster geotiff for the last available date which is currently the 24th instead of the date that I pass in via the time param which is the 14th. My wcs request looks like this (again I want the 14th, but geoserver responds with the 24th):


If I have the coverage described via


I do see the different days listed:

<wcsgs:TimeDomain default="2016-01-24T00:00:00.000Z">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_0">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_1">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_2">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_3">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_4">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_5">
<gml:TimeInstant gml:id="gdd__agdd_anomaly_td_6">
</gml:TimeInstant> ... up to 2016-01-24T00:00:00.000Z

I've also tried setting &TIME=2016-01-14T00:00:00.000Z but still no dice.

  • what does the log file say? – Ian Turton Jan 19 '16 at 11:41
  • Did you try this as a SUBSET request like: http://myserver/geoserver/gdd/wcs?service=WCS&version=2.0.1&request=GetCoverage&CoverageId=mycoverage&format=image/geotiff&SUBSET=time=("2016-01-14T00:00:00.000Z")& – nmtoken Jan 19 '16 at 11:59
  • @mmtoken I did in fact and it worked. Post it up as an answer and I'll accept. Do you know if you can have subset for params other than time, elevation, lat and long? Those are the one's I've gotten to work so far, but it'd be nice to be able to specify like SUBSET=dayofyear=(235) or something similar. – apricity Jan 19 '16 at 16:56

The correct date format (in this instance) is I think as advertised in your DescribeCoverage response like 2016-01-14T00:00:00.000‌​Z.

To get at a date in your coverage you need to apply a 'Slice' along the Time Dimension. In WCS 2.0 this slicing is carried out by means of a domain subsetting operation.

With GET/KVP requests the parameter name is SUBSET so your request would be in the format:


For a POST/XML request it would be something like:

<?xml version="1.0" encoding="UTF-8"?>
<wcs:GetCoverage xmlns:wcs="http://www.opengis.net/wcs/2.0"
    service="WCS" version="2.0.1">

You can apply domain subsetting on any of the axes defined in DescribeCoverage response for your coverage, in any combination. A subset parameter may only act on one dimension (so if you want to subset on two dimensions you need to supply two subset=value& parameters) and there can only be one subset parameter per axis (so if you want to get values between two dates you need to specify this in a single parameter for the time dimension ~ a trimming operation).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.