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
sampo.savolainen@anonymised.com
+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.