Opened 12 years ago

Closed 12 years ago

#380 closed defect (invalid)

Can not subset on time axis which does not use YYYY-MM-dd

Reported by: Jeroen Dries Owned by: Piero Campalani
Priority: major Milestone:
Component: petascope Version: 8.4
Keywords: Cc:
Complexity: Medium

Description

Most of our coverages in Rasdaman have a time axis 't' with a range (0,x) where x is some positive number like 540. This is a direct cause of the fact that Rasdaman does not seem to support time axis with timestamps.
However, when doing a KVP GetCoverage request like this:
/petascope?version=2.0.0&service=WCS&request=GetCoverage&coverageid=NDVI_SPOT_VGT&subset=t(1)

I get this error:

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="InvalidParameterValue">
<ows:ExceptionText>
Timestamp "1" is not valid (pattern is YYYY-MM-DD).
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

So when I change the subset to something valid like this:
/petascope?version=2.0.0&service=WCS&request=GetCoverage&coverageid=NDVI_SPOT_VGT&subset=t(2000-01-01)

I get:

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="WcpsError">
<ows:ExceptionText>
Error converting WCPS query to rasql query: Error translating XML WCPS query to rasql - Invalid coverage Expression, next node: slice - Subsetting on axis t is outside bounds (0.0,540.0).
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

This makes it impossible to query our coverages using a subset on the time axis.

Change History (2)

comment:1 by Dimitar Misev, 12 years ago

Component: undecidedpetascope
Owner: changed from Dimitar Misev to Piero Campalani
Status: newassigned

comment:2 by Piero Campalani, 12 years ago

Resolution: invalid
Status: assignedclosed

Dear jdries,
if you want to subset with index coordinates on a temporal axis you can still use:

...subset=t,CRS:1(0,10)...

In your example with ISO date subsetting, you get that error because, as the message says, you are out of bounds.

Please carefully check this page, and let me know if the problem persists: http://rasdaman.org/wiki/PetascopeTimeHandling

I'll close the ticket as invalid.

Note: See TracTickets for help on using tickets.