[GeoNetwork-devel] [GeoNetwork opensource Developer website] #730: fix wrong coordinate placement for CSW DC output

#730: fix wrong coordinate placement for CSW DC output
----------------------------+-----------------------------------------------
Reporter: tomkralidis | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.6.5
Component: Catalog server | Version: v2.6.4
Keywords: |
----------------------------+-----------------------------------------------
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>
}}}

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/730&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.