SRS info aren't updated after CRS reprojection in property data store
---------------------------------------------------------------------

                 Key: GEOT-2707
                 URL: http://jira.codehaus.org/browse/GEOT-2707
             Project: GeoTools
          Issue Type: Sub-task
          Components: core main
    Affects Versions: 2.6-M2
            Reporter: Rini Angreani
            Assignee: Jody Garnett
             Fix For: 2.6-RC1
         Attachments: GeometryCoordinateSequenceTransformer.patch

Specify srid in property file:

_=GEOM:Geometry:srid=4283,NESTED_GEOM_ID:String
1=POLYGON((-1.2 52.5,-1.2 52.6,-1.1 52.6,-1.1 52.5,-1.2 52.5))|2
2=POINT(42.58 31.29)|1

Run getFeature query, srs information are correct:

<ex:geomContainer gml:id="1">
            <ex:geom>
                <gml:Polygon
                    axisLabels="Geodetic latitude Geodetic longitude"
                    srsDimension="2"
                    srsName="urn:x-ogc:def:crs:EPSG:4283" 
uomLabels="degree_angle degree_angle">
                    <gml:exterior>
                        <gml:LinearRing>
                            <gml:posList>-1.2 52.5 -1.2 52.6 -1.1 52.6 -1.1 
52.5 -1.2 52.5</gml:posList>
                        </gml:LinearRing>
                    </gml:exterior>
                </gml:Polygon>
            </ex:geom>

Run a reprojection query to EPSG:4326:
"wfs?request=GetFeature&typename=ex:geomContainer&srsname=urn:x-ogc:def:crs:EPSG::4326"

The coordinates values are correctly reprojected, but the srs information 
didn't change:
<ex:geomContainer gml:id="1">
            <ex:geom>
                <gml:Polygon
                    axisLabels="Geodetic latitude Geodetic longitude"
                    srsDimension="2"
                    srsName="urn:x-ogc:def:crs:EPSG:4283" 
uomLabels="degree_angle degree_angle">
                    <gml:exterior>
                        <gml:LinearRing>
                            <gml:posList>-1.1999999999634965 52.5 
-1.1999999999634965 52.6 -1.099999999966089 52.59999999999999 
-1.099999999966089 52.5 -1.1999999999634965 52.5</gml:posList>
                        </gml:LinearRing>
                    </gml:exterior>
                </gml:Polygon>
            </ex:geom>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to