Hello everyone,
Unfortunately I could not find any clues in the public resources.

Should I try a specifc version of GeoTools java dependency ?
Any suggestion is warmly welcomed.

Thank you,
Mourad Harmim.
________________________________
De : Mourad HARMIM <mourad.har...@live.fr>
Envoyé : lundi 15 juillet 2024 09:52
À : Jody Garnett <jody.garn...@gmail.com>
Objet : RE: [Geotools-devel] Help with GeoTools : Trouble transforming 
coordinates

Hello Jody,

Thank you for your early reply.
I actually added the dependency gt-epsg-hsql where the thecoordinate references 
are supposed to be.
I also tried passing wkt definitions (which reliability are not sure) but still 
not working.

I'll lookup  the guide you provided. Let's keep in touch.

Best regards,
Mourad Harmim.
________________________________
De : Jody Garnett <jody.garn...@gmail.com>
Envoyé : lundi 15 juillet 2024 03:08
À : Mourad HARMIM <mourad.har...@live.fr>
Cc : geotools-devel@lists.sourceforge.net 
<geotools-devel@lists.sourceforge.net>; 
geotools-gt2-us...@lists.sourceforge.net 
<geotools-gt2-us...@lists.sourceforge.net>
Objet : Re: [Geotools-devel] Help with GeoTools : Trouble transforming 
coordinates

The user list is the right place to ask.

I do not work on the coordinate reference system so much myself, there is a 
handy guide for configuring here:
https://docs.geoserver.org/main/en/user/configuration/crshandling/index.html

Using this approach you can provide the transform, however I am curious why 
GeoTools does not have the required information. Are you using gt-epsg-shall 
for definitions or the wkt one?

If you look up online can you compare the information to what is included in 
GeoTools?
--
Jody Garnett


On Sun, Jul 14, 2024 at 5:31 PM Mourad HARMIM 
<mourad.har...@live.fr<mailto:mourad.har...@live.fr>> wrote:
Hello everyone,
I hope this message finds you well.

My name is Mourad Harmim, a Data Engineer consultant from France.
Still getting used to GeoTools, I’m facing an issue when I try to transform 
coordinates from Lambert 2 extended (EPSG :27572) to Lambert 93 (EPSE :2154).

Here is my current situation :

  *   When I use : this.mathTransform = 
CRS.findMathTransform(CRS.decode("EPSG:27572") , CRS.decode("EPSG:2154"), 
false) there is an error telling that Bursa Wolf parameters are missing
  *   When I use : this.mathTransform = 
CRS.findMathTransform(CRS.decode("EPSG:27572") , CRS.decode("EPSG:2154"), true) 
I get coordinates but they seem inaccurate (I guess it is about a missing grid 
shift)
  *   When I use intermediate system : Lambert 2 extended (EPSG :27572) to 
WSG84 (EPSG:4326) to Lambert 93 (EPSE :2154) I get better results but still 
inaccurate.


I would like to know what it is the correct approch to have an accurate 
transformation between these two systems.

I hope that it is not inappropriate to ask for your help through this email and 
I hope to hear from you soon.
Thank you.

Mourad Harmim.
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net<mailto:GeoTools-Devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geotools-devel
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to