Hi

I am trying to render a WFS 1.1.0 datasource using GeoTools 11.1, but have run 
into some problems, which seems to be due to axis ordering. The WFS is using 
EPSG:4326, but I'm projecting it to EPSG:32633. Things behave differently along 
the way depending on whether I use gt-epsg-wkt or gt-epsg-hsql, but in the end, 
the bbox passed in the WFS query has longitude first and latitude last, even 
though srsName is urn:x-ogc:def:crs:EPSG:4326. With gt-epsg-wkt, east is always 
first/x and no axis swapping takes place as the envelope is transformed from 
EPSG:32633 (as used in the MapContent) to EPSG:4326 and finally turned into 
XML. When I use gt-epsg-hsql, the envelope has north as x and east as y after 
it has been transformed to EPSG:4326, but is then swapped back to the wrong 
order by invertAxisInFilterIfNeeded() in WFS_1_1_0_DataStore.

Am I doing something wrong, or is axis ordering in GeoTools WFS plugin still 
broken? I know I can force specific axis order, but I will likely have to deal 
with WFS-es that aren't EPSG:4326 as well, so I'd like to hear if there are any 
other possible solutions first. It might even be that this is an unknown issue.

(Sorry if this becomes a duplicate. I think something wasn't right the first 
time I tried to send this e-mail.)

Regards

Tor Egil Riegels Strand
Developer
Direct: +47 32 11 81 61
E-mail: tor.egil.str...@kartverket.no

Switchboard: +47 32 11 83 00
www.kartverket.no



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to