Opened 7 days ago

Closed 6 days ago

#2839 closed defect (invalid)

FIX - embedded SECORE URL is not resolved properly in WCPS subsettingCRS

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone:
Component: petascope Version: 10.4
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

WCPS query:

'service=WCPS&version=1.0.0&request=ProcessCoverages&query=for $el in (INSPIRE_EL), $lc in (INSPIRE_LC), $ir in (INSPIRE_OI_IR), $oi in (INSPIRE_OI_RGB) let $sub := [ E(480000:482000), N(4649750:4650750) ], $scale := $oi[ $sub ] return encode( (unsigned char) $oi [ $sub ] overlay crsTransform( ( scale( (unsigned char) switch case $lc[ $sub ] = 111 return { red:230; green:0; blue:77 } default                return { red:0; green:0; blue:0} , { imageCrsDomain( $oi[ $sub ] ) } )  ), { E:"http://localhost:8080/def/crs/EPSG/0/4326", N:"http://localhost:8080/def/crs/EPSG/0/4326"}, {}), "image/png", "nodata=0") )' 

returns error

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ows:ExceptionReport version="2.0.1"
    xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"
    xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
    <ows:Exception exceptionCode="InvalidRequest" >
        <ows:ExceptionText>Axes of coverages 'INSPIRE_OI_RGB' and 'INSPIRE_LC' are not compatible. Reason: Axis type is different, given first coverage's axis with name 'E', type 'x' and second coverage's axis with name 'lat', type 'y'.</ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>

because http://localhost:8080/def/crs/EPSG/0/4326 is not resolvable, but http://localhost:8080/rasdaman/def/crs/EPSG/0/4326 works for secore_urls=internal.

Change History (1)

comment:1 by Bang Pham Huu, 6 days ago

Resolution: invalid
Status: assignedclosed

it is actually wrong WCPS query to combine: $oi in EPSG:25831 with a transformed coverage to EPSG:4326.

Note: See TracTickets for help on using tickets.