Hello all,

thanks again for all the helpful mails you wrote.

Meanwhile my application is nearly complete.
When (junit-)testing it, I again got switched values after transforming a
coordinate from WGS84 to Gauss-Kruger.
But this only happend, when I use crsFactory.createFromWKT( <wktGK> ) instead of
CRS.decode( "EPSG:31466" ).
So I investigated the WKT string and detected, that if the axises are ordered as
in EPSG (lat, lon), you have to build an WKT string like this:

...
 UNIT["m", 1.0],
 AXIS["Northing", NORTH],
 AXIS["Easting", EAST],
 AUTHORITY["EPSG","31466"]]
...

but when the axis ordering is (lon, lat) you also have to consider that:

...
 UNIT["m", 1.0],
 AXIS["Easting", EAST],
 AXIS["Northing", NORTH],
 AUTHORITY["EPSG","31466"]]
...

to get the results at the expected places: Coordinate.x / Coordinate.y .

Yes, I believe, this is yesterday's news to the cracks among you, but I was a 
bit surprised and so could other newbies, too. Therefore I wrote this short note
;-)

Cheers
Erich



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to