From: Erich S. <eri...@gm...> - 2008-09-10 12:51:12
|
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 |