Hi Ian,

thanks for the reply. Found the discussion at stackexchange already, but 
it didn't help me. Maybe i didn't understand it correctly.
>> where exactly did you put it?
Do you mean in which jar-File?   gt-referencing-16.0.jar
I only have geotools in the build path, not the sources.

Benjamin



Von:    "Ian Turton" <ijtur...@gmail.com>
An:     "Benjamin Sokolowski" <benjamin.sokolow...@data-experts.de>
Kopie:  "geotools-users" <geotools-gt2-users@lists.sourceforge.net>
Datum:  07.04.2020 11:06
Betreff:        Re: [Geotools-gt2-users] Coordinate Transformation



Have a look at 
https://gis.stackexchange.com/questions/313512/specifying-epsg-transformation-method-in-geotools/313523#313523
 for an example.  

When you say you added the .gsb to 
'org.geotools.referencing.factory.gridshift' where exactly did you put it?

Ian

On Tue, 7 Apr 2020 at 09:33, Benjamin Sokolowski <
benjamin.sokolow...@data-experts.de> wrote:
Hello, 

first time posting. Hope you guys can help. 
I want to transform coordinates (point geometry) from Gauß Krueger Zone 3 
to ETRS:89 UTM32 using geotools and a grid file, which i already have. How 
exactly do i do this? 

I already got the codelines: 
    CoordinateReferenceSystem sourceCRS = CRS.decode( "EPSG:31467" ); 
    CoordinateReferenceSystem targetCRS = CRS.decode( "EPSG:4647" ); 
    MathTransform transformation = CRS.findMathTransform( sourceCRS, 
targetCRS ); 
    Geometry result = JTS.transform( geometry, transformation ); 

and put the .gsb to 'org.geotools.referencing.factory.gridshift', but that 
doesn't seem to work. Geotools is still using the default Transformation, 
not the more precise with the grid file. 

Best regards 
Benjamin Sokolowski_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


-- 
Ian Turton

_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to