Opened 11 years ago
Closed 11 years ago
#568 closed defect (invalid)
NullPointerException when axis does not exist in CRS definition
Reported by: | Dimitar Misev | Owned by: | Piero Campalani |
---|---|---|---|
Priority: | major | Milestone: | 9.0 |
Component: | petascope | Version: | development |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
This case should return a proper exception. E.g. using x/y instead of Lat/Long in
for c in (mean_summer_airtemp) return encode(crsTransform(c, { x:"http://www.opengis.net/def/crs/EPSG/0/54030", y:"http://www.opengis.net/def/crs/EPSG/0/54030"}, {}), "tiff")
results in
TRACE [13:06:11] DimensionIntervalElement@74: axis TRACE [13:06:11] DynamicMetadataSource@104: Reading metadata for dynamic coverage: mean_summer_airtemp TRACE [13:06:11] DynamicMetadataSource@110: coverages: [rgb, mean_summer_airtemp, mr, irr_cube_1, eobstest] DEBUG [13:06:11] DbMetadataSource@851: Reading metadata for coverage 'mean_summer_airtemp' TRACE [13:06:11] DbMetadataSource@860: Returning cached coverage metadata. TRACE [13:06:11] AxisName@43: axis TRACE [13:06:11] AxisName@46: axis name: x TRACE [13:06:11] Crs@60: srsName TRACE [13:06:11] Crs@68: Found CRS: http://www.opengis.net/def/crs/EPSG/0/54030 TRACE [13:06:11] AxisName@43: axis TRACE [13:06:11] AxisName@46: axis name: y TRACE [13:06:11] Crs@60: srsName TRACE [13:06:11] Crs@68: Found CRS: http://www.opengis.net/def/crs/EPSG/0/54030 ERROR [13:06:44] WcpsServlet@263: WCPS: error ERROR [13:06:44] WcpsServlet@264: WCPS: setting response mimetype to text/html; charset=utf-8 ERROR [13:06:44] WcpsServlet@266: WCPS: returning the following error message java.lang.NullPointerException at petascope.wcps.server.core.DimensionIntervalElement.stars2bounds(DimensionIntervalElement.java:329) at petascope.wcps.server.core.DimensionIntervalElement.<init>(DimensionIntervalElement.java:164) at petascope.wcps.server.core.CrsTransformCoverageExpr.<init>(CrsTransformCoverageExpr.java:76) at petascope.wcps.server.core.CoverageExpr.<init>(CoverageExpr.java:90) at petascope.wcps.server.core.EncodeDataExpr.<init>(EncodeDataExpr.java:77) at petascope.wcps.server.core.XmlQuery.startParsing(XmlQuery.java:120) at petascope.wcps.server.core.ProcessCoveragesRequest.<init>(ProcessCoveragesRequest.java:102) at petascope.wcps.server.core.Wcps.pcPrepare(Wcps.java:118) at petascope.wcps.server.core.Wcps.pcPrepare(Wcps.java:112) at petascope.wcps.server.servlet.WcpsServlet.doPost(WcpsServlet.java:181)
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Here I get:
WCPS Error: crsTransform expression not implemented.
which is the good answer.
Dimitar probably you you on r'e where the crsTransform
operation is available: close this as invalid in that case, thx.
comment:3 by , 11 years ago
Yeah I was thinking of a community equivalent query.. maybe scale instead of crsTransform?
comment:4 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Actually it seems like http://www.opengis.net/def/crs/EPSG/0/54030 does not exist..
But it should exist: http://spatialreference.org/ref/esri/54030/gml/