Opened 8 years ago

Closed 7 years ago

#1319 closed enhancement (duplicate)

WCPS_crsTransform() throw correct exception in case of GDAL error with projection.

Reported by: Bang Pham Huu Owned by:
Priority: minor Milestone: 9.3
Component: petascope Version: development
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

WCPS with crsTransform UTM 32633 which is not possible in GDAL

for c in (mean_summer_airtemp)  return encode(crsTransform(c, { 
Lat:"http://www.opengis.net/def/crs/EPSG/0/32633", 
Long:"http://www.opengis.net/def/crs/EPSG/0/32633"}, {})
, "tiff", "nodata=0")

should return error as from Rasql

Executing retrieval query...rasdaman error 0: Exception: CRS Reprojection failed at runtime. Check that the CRSes are fully supported.

instead of

<ows:ExceptionReport 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="SemanticError">
        <ows:ExceptionText>Error evaluating rasdaman query: 'select encode(project( c, "111.975,-44.525,156.275,-8.975", "EPSG:4326", "EPSG:32633" ), "GTiff", "nodata=0;xmin=111.975;xmax=156.275;ymin=-44.525;ymax=-8.975;crs=EPSG:4326") from mean_summer_airtemp AS c where oid(c)=2049</ows:ExceptionText>
    </ows:Exception>
    <ows:Exception exceptionCode="RasdamanRequestFailed">
        <ows:ExceptionText>Error evaluating rasdaman query: 'select encode(project( c, "111.975,-44.525,156.275,-8.975", "EPSG:4326", "EPSG:32633" ), "GTiff", "nodata=0;xmin=111.975;xmax=156.275;ymin=-44.525;ymax=-8.975;crs=EPSG:4326") from mean_summer_airtemp AS c where oid(c)=2049</ows:ExceptionText>
    </ows:Exception>
    <ows:Exception exceptionCode="RuntimeError">
        <ows:ExceptionText>org.odmg.QueryException : Unexpected internal server error.</ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>

Change History (1)

comment:1 by Bang Pham Huu, 7 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.