Opened 4 years ago

Closed 4 years ago

#568 closed defect (invalid)

NullPointerException when axis does not exist in CRS definition

Reported by: dmisev Owned by: pcampalani
Priority: major Milestone: 9.0
Component: petascope Version: development
Keywords: Cc:
Complexity: Medium


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:"", y:""}, {}), "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:
 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:
 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
	at petascope.wcps.server.core.DimensionIntervalElement.stars2bounds(
	at petascope.wcps.server.core.DimensionIntervalElement.<init>(
	at petascope.wcps.server.core.CrsTransformCoverageExpr.<init>(
	at petascope.wcps.server.core.CoverageExpr.<init>(
	at petascope.wcps.server.core.EncodeDataExpr.<init>(
	at petascope.wcps.server.core.XmlQuery.startParsing(
	at petascope.wcps.server.core.ProcessCoveragesRequest.<init>(
	at petascope.wcps.server.core.Wcps.pcPrepare(
	at petascope.wcps.server.core.Wcps.pcPrepare(
	at petascope.wcps.server.servlet.WcpsServlet.doPost(

Change History (4)

comment:1 Changed 4 years ago by dmisev

Actually it seems like does not exist..

<ows:ExceptionReport version="2.0.0" xsd:schemaLocation="" xmlns:ows="" xmlns:xsd="" xmlns:xlink="">
  <ows:Exception exceptionCode="NoSuchDefinition">
    <ows:ExceptionText>Failed resolving</ows:ExceptionText>

But it should exist:

comment:2 Changed 4 years ago by pcampalani

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 Changed 4 years ago by dmisev

Yeah I was thinking of a community equivalent query.. maybe scale instead of crsTransform?

comment:4 Changed 4 years ago by dmisev

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.