Opened 13 years ago

Last modified 13 years ago

#730 new defect

fix wrong coordinate placement for CSW DC output

Reported by: tomkralidis Owned by: josegar74
Priority: major Milestone: v2.6.5
Component: Catalog server Version: v2.6.4
Keywords: Cc:

Description

Using svn trunk, when I publish an ISO metadata document, the following snippet represents the bounding box (when invoking a GetRecordById request http://localhost:8080/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=e72e75df-9ef7-4872-89d7-5146ce3ec3a7&outputschema=http://www.isotc211.org/2005/gmd:

          <gmd:EX_Extent>
            <gmd:geographicElement>
              <gmd:EX_GeographicBoundingBox>
                <gmd:westBoundLongitude>
                  <gco:Decimal>-106.875</gco:Decimal>
                </gmd:westBoundLongitude>
                <gmd:southBoundLatitude>
                  <gco:Decimal>21.796875</gco:Decimal>
                </gmd:southBoundLatitude>
                <gmd:eastBoundLongitude>
                  <gco:Decimal>-52.03125</gco:Decimal>
                </gmd:eastBoundLongitude>
                <gmd:northBoundLatitude>
                  <gco:Decimal>54.140625</gco:Decimal>
                </gmd:northBoundLatitude>
              </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>
          </gmd:EX_Extent>
        </gmd:extent>

When invoking a GetRecordById request against the same document with http://localhost:8080/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&id=e72e75df-9ef7-4872-89d7-5146ce3ec3a7&elementsetname=full, the following snippet represents the bounding box:

    <ows:BoundingBox crs="urn:ogc:def:crs:::WGS 1984">
      <ows:LowerCorner>-52.03125 21.796875</ows:LowerCorner>
      <ows:UpperCorner>-106.875 54.140625</ows:UpperCorner>
    </ows:BoundingBox>

The x coordinates have been swapped here incorrectly. The correct output should be:

    <ows:BoundingBox crs="urn:ogc:def:crs:::WGS 1984">
      <ows:LowerCorner>-106.875 21.796875</ows:LowerCorner>
      <ows:UpperCorner>-52.03125 54.140625</ows:UpperCorner>
    </ows:BoundingBox>

Change History (1)

comment:1 by josegar74, 13 years ago

Owner: changed from geonetwork-devel@… to josegar74
Note: See TracTickets for help on using tickets.