Hello people

I've switched to GeoTools 2.6-M2 recently and (almost) everything is 
nice. However, I found a problem that may be related to changed in the 
HSQL database (or referencing code somewhere)

The issue is related to using some CRS's that apparently have axis order 
issues. In particular, CRS code 4618 (South American Datum 1969) used to 
be switched (e.g., everybody uses it in longitude-first order but the 
EPSG standard states the opposite).
Up to now, things worked by setting the 
FORCE_LONGITUDE_FIRST_AXIS_ORDER, as in:

  Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, true);

However, in 2.6-M2, the following behavior happens:

- If I simply create a MapContext with EPSG:4618, as below
    map = new DefaultMapContext(CRS.decode("EPSG:4618"));

   then the map is displayed as if rotated 90 degrees (you can use any 
WGS84 shapefile to see this)

- If I set the hint to TRUE, all remains the same, still rotated (this 
used to fix the map)

- If I set the hint to FALSE, I get a NoSuchAuthorityCodeException: 
"Authority "EPSG" is unknown or doesn't match the supplied hints. Maybe 
it is defined in an unreachable JAR file?"

I haven't debugged this yet, but this last behavior is really strange. 
Does anybody have a clue about it?

Thanks
Milton


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to