Milton Jonathan wrote:
> Hello again
> 
> I found problems when doing a very simple WFS query using the GeoTools 
> WFSDataStore (and GeoServer). When I try to retrieve features, I get a 
> nice exception of the kind "Authority 'URN' is unknown or doesn't match 
> the supplied hints."
> 
> I looked around on JIRA and found the following (scary) issue, where the 
> problem was related to using the forcexy hint.
>   http://jira.codehaus.org/browse/GEOT-1659
> 
> Indeed, over here we need to always use FORCE_LONGITUDE_FIRST_AXIS_ORDER 
> as default both in GeoTools and GeoServer, since our data always comes 
> that way even though the CRS sometimes states otherwise.
> 
> I admit, we have a very unorthodox solution here: we added a static code 
> "GLOBAL.put(FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE)" in our 
> version of Hints.java.

In GeoServer we don't set the hints for that because we found it did
not work in a few cases, and we set a system variable instead (we did
not find a way to fix it in any reasonable time, so fell back on
the workaround):

System.setProperty("org.geotools.referencing.forceXY", "true");

that seems to work fine. Or... not? (I admin I don't use WFS
cascading much, just too inefficient by nature)

Cheers
Andrea

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to