Hi ,
i don't unterstand , why the Coordinate Transformation works for UTM 
(epsg:32632) and not for Gauss-Krueger.
For Gauss-Krueger x and y-axis are swapped.
So if I use shape files from different sources (UTM and GK), the Shapes 
are orthogonal.

I think it comes down to the following problem:

public static void main(String args[]) throws Exception {
        CoordinateReferenceSystem sourceCRS = CRS.decode("EPSG:4326");
        CoordinateReferenceSystem gkCRS = CRS.decode("EPSG:31467");
        CoordinateReferenceSystem utmCRS = CRS.decode("EPSG:32632");
       
        MathTransform gkTrans = CRS.findMathTransform(sourceCRS, gkCRS);
        MathTransform utmTrans = CRS.findMathTransform(sourceCRS, utmCRS);
        Coordinate pt1 = new Coordinate(48,12);
        System.out.println("GK:"+JTS.transform(pt1, null,gkTrans));
        System.out.println("UTM:"+JTS.transform(pt1, null,utmTrans));
    }
Result:
GK:(5322344.720824972, 3723943.4447664334, NaN)
UTM:(723775.9153987231, 5320655.789192752, NaN)

should be:

GK:  (3723943.4447664334, 5322344.720824972, NaN)
UTM:(  723775.9153987231, 5320655.789192752, NaN)

Thanks for any suggestions.

Greetings Rainer Suddendorf

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to