Opened 11 years ago
Closed 9 years ago
#722 closed defect (duplicate)
Error on WC*S query with binary encoding and ISO temporal subsets
Reported by: | Piero Campalani | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 9.2 |
Component: | petascope | Version: | development |
Keywords: | gdal parameters time iso subsets | Cc: | Alex Dumitru |
Complexity: | Medium |
Description (last modified by )
When setting the parameters for GDAL (RasQL encode), temporal subsets are not translated to numeric coordinates.
Temporal subsets can be either numerical or ISO timestamps
(see PetascopeTimeHandling).
Usually time is sliced out in a time-series coverage, so parameters for GDAL are generally spatial coordinates.
Encoding of spatio-temporal 2D sections should be properly allowed anyway.
A related ticket is #708: GDAL will put an empty CRS in case we set a spatio-temporal compounding.
Test queries:
http://localhost:8080/rasdaman/ows/wcs2 ?service=WCS &version=2.0.1 &request=GetCoverage &coverageid=eobstest &subset=t("1950-01-01","1950-01-05") &subset=Long(50) &format=image/tiff
for c in (eobstest) return encode( (c[t("1950-01-01":"1950-01-05")]) [Long(30:35), Lat(0)] , "png")
For some reference code, refer e.g. to convertToInternalGridIndices()
method in petascope.util.CrsUtil
:
$ grep "public static.*{" ~/rasdaman/applications/petascope/src/main/java/petascope/util/TimeUtil.java public static boolean isValidTimestamp (String timestamp) { public static boolean isOrderedTimeSubset (String timestampLo, String timestampHi) throws PetascopeException { public static String minusEpsilon(String timestamp) { public static String plus(String timestamp, Double coefficient, String timeResolution) throws PetascopeException { public static String coordinate2timestamp(Double numCoordinate, String datumOrigin, String timeResolution) throws PetascopeException {
Change History (4)
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Cc: | added |
---|---|
Milestone: | 9.1 → 9.2 |
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 9 years ago
Owner: | changed from | to
---|
comment:4 by , 9 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
This ticket actually the same as in
http://rasdaman.org/ticket/1005 (which I'm doing) then I will close it here.