0

I have a JEE project (Java, JBoss) and I'm looking for a library that allows x,y coordinates reprojection.

I know about Proj4. Do you have any other option?

Is it possible to find on the net a reprojection algorithm that I could use?

The reprojection I'm interest in is the French NTF Lambert II Etendu to RGF Lambert 93.

6
  • Have a look at Geotools and deegree. They both support projection transformations in native java.
    – user30184
    Commented May 26, 2014 at 15:24
  • Thanks @user30184 Geotools is too heavy installing 200Mo for just one function is not very appealing! I'll check out deegree
    – yo_haha
    Commented May 26, 2014 at 15:41
  • 1
    I remember that deegree2 was used in desktop GIS "deejump" and jar was about 8 MB.
    – user30184
    Commented May 26, 2014 at 15:49
  • 1
    OpenJUMP Coordinate transformation plugin is using Geotools and filesize seems to be about 3.5 MB as zipped. It looks like you do not need to take all the 200 MB for one function. Check the references sourceforge.net/apps/mediawiki/jump-pilot/… sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/…
    – user30184
    Commented May 26, 2014 at 18:57
  • 1
    you don't need all of GeoTools for the conversion code - just referencing and one of the epsg modules
    – Ian Turton
    Commented May 27, 2014 at 7:23

1 Answer 1

1

There is a lightweight library written fully in Java.

Coordinate Transformation Suite (abridged CTS) is a library developed to perform coordinate transformations using well known geodetic algorithms and parameter sets.

CTS handles 4257 coordinate reference systems (3910 EPSG).

The source code of this project is located at:

https://github.com/irstv/CTS

3
  • Do you've got an example using cts?
    – yo_haha
    Commented May 28, 2014 at 9:12
  • I don't see where CTS is used in OrbisGIS either.
    – yo_haha
    Commented May 28, 2014 at 14:00
  • 1
    CTS is used in H2GIS for the ST_TRANSFORM SQL function. You have Java sample in the wiki
    – nicolas-f
    Commented May 28, 2014 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.