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