Opened 7 years ago

Closed 7 years ago

#1587 closed defect (fixed)

WCST_Import error when a CRS axisDirection has the same name for both X, Y axes

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.5
Component: wcst_import Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

For example: http://localhost:8080/def/crs/EPSG/0/3031 it has 2 X,Y axes (East, North) but same name in axisDirection for them

<gml:axisAbbrev>E</gml:axisAbbrev>
<gml:axisDirection codeSpace="EPSG">North along 90°E</gml:axisDirection>
<gml:axisAbbrev>N</gml:axisAbbrev>
<gml:axisDirection codeSpace="EPSG">North along 0°E</gml:axisDirection>

then WCST_Import will have error as it found X axis will have same axisDirection (north) as Y axis and the offset vectors output is the same:

 <gmlrgrid:offsetVector srsName="http://localhost:8080/def/crs-compound?1=http://localhost:8080/def/crs/EPSG/0/3031&amp;2=http://localhost:8080/def/crs/OGC/0/AnsiDate" axisLabels="E N ansi" uomLabels="  http://www.opengis.net/def/uom/UCUM/0/d" srsDimension="3">
                    -4712.9680893 0 0
                </gmlrgrid:offsetVector>
                <gmlrgrid:coefficients></gmlrgrid:coefficients>
                <gmlrgrid:gridAxesSpanned>None</gmlrgrid:gridAxesSpanned>
                <gmlrgrid:sequenceRule axisOrder="+1">None</gmlrgrid:sequenceRule>
            </gmlrgrid:GeneralGridAxis>
        </gmlrgrid:generalGridAxis>
         <gmlrgrid:generalGridAxis>
            <gmlrgrid:GeneralGridAxis>
                <gmlrgrid:offsetVector srsName="http://localhost:8080/def/crs-compound?1=http://localhost:8080/def/crs/EPSG/0/3031&amp;2=http://localhost:8080/def/crs/OGC/0/AnsiDate" axisLabels="E N ansi" uomLabels="  http://www.opengis.net/def/uom/UCUM/0/d" srsDimension="3">
                    -4712.9680893 0 0
                </gmlrgrid:offsetVector>
                <gmlrgrid:coefficients></gmlrgrid:coefficients>
                <gmlrgrid:gridAxesSpanned>None</gmlrgrid:gridAxesSpanned>
                <gmlrgrid:sequenceRule axisOrder="+1">None</gmlrgrid:sequenceRule>
            </gmlrgrid:GeneralGridAxis>
        </gmlrgrid:generalGridAxis>
         <gmlrgrid:generalGridAxis>
            <gmlrgrid:GeneralGridAxis>
                <gmlrgrid:offsetVector srsName="http://localhost:8080/def/crs-compound?1=http://localhost:8080/def/crs/EPSG/0/3031&amp;2=http://localhost:8080/def/crs/OGC/0/AnsiDate" axisLabels="E N ansi" uomLabels="  http://www.opengis.net/def/uom/UCUM/0/d" srsDimension="3">
                    0 0 1
                </gmlrgrid:offsetVector>

which will throw exception in Petascope because of difference between the number of dimensionalities as Petascope considers only has 2 input axes (N, ansi) instead of 3 when ingesting a 2D file with time axis is not bounded and irregular time axis.

Change History (1)

comment:1 by Bang Pham Huu, 7 years ago

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