Hi Jody,
Yeah, I know. Axis order has been quite messed up, especially for 4326.
However note that I'm not using 4326 but 4258. There are no special
considerations (at least to my knowledge) that need to take place here, and
as such, I don't believe there is any reason for GeoServer to use a version
of the CRS where the axis order is forced to east-north.
S.
On Tue, Apr 22, 2014 at 10:41 AM, Jody Garnett <[email protected]>wrote:
> We are kind of doomed[1] with axis order issue due to the changes between
> different OGC specifications over time.
>
> Basically EPSG:4326 = I don't know it depends how each application is
> configured. To be more sure please use one of the longer URN formats for
> spatial reference system.
> --
> Jody
>
> [1]
> http://docs.geotools.org/latest/userguide/library/referencing/order.html
>
>
> Jody Garnett
>
>
> On Tue, Apr 22, 2014 at 5:12 PM, Sampo Savolainen <
> [email protected]> wrote:
>
>> Hi,
>>
>> There might be a bug in WFS-NG relating to axis order of coordinates
>> returned by layers created by WFS-NG.
>>
>> I created a dummy feature type on one geoserver serving content in
>> EPSG:4258 (northing-easting), then created a feature type in another
>> geoserver by cascading the first server using WFS-NG (WFS 1.1.0). The
>> WFS-NG feature type uses the same CRS.
>>
>> When accessing the first geoserver directly (GetFeature), I get the
>> coordinates in the correct order. But when accessing the cascading feature
>> on the second server (GetFeature again), the coordinates have flipped.
>>
>> While debugging this, I found that the problem is connected to SRS
>> handling in the layer. If "force declared" is chosen, the axis order of the
>> returned features if flipped. Both "keep native" and "reproject native to
>> declared" work fine.
>>
>> In GeoServerFeatureSource.reprojectFilter(), declaredCRS has the wrong
>> axis order (east-north) while nativeCRS has the correct one (north-east).
>> Why is the axis order wrong in declaredCRS? Is this by design / am I
>> missing something, or has WFS-NG initialized the FeatureSource wrong
>> somehow?
>>
>>
>> Sampo
>>
>> --
>> Sampo Savolainen
>> R&D Director, Spatineo Oy
>> [email protected]
>> +358-407555649
>> Linnankoskenkatu 16 A 17, 00250 Helsinki, Finland
>> www.spatineo.com, twitter.com/#!/spatineo
>> www.linkedin.com/company/spatineo-inc
>>
>> This message may contain privileged and/or confidential information. If
>> you
>> have received this e-mail in error or are not the intended recipient, you
>> may not use, copy, disseminate, or distribute it; do not open any
>> attachments, delete it immediately from your system and notify the sender
>> promptly by e-mail that you have done so.
>>
>>
>> ------------------------------------------------------------------------------
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
--
Sampo Savolainen
R&D Director, Spatineo Oy
[email protected]
+358-407555649
Linnankoskenkatu 16 A 17, 00250 Helsinki, Finland
www.spatineo.com, twitter.com/#!/spatineo
www.linkedin.com/company/spatineo-inc
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel