orbisgis / cts

Projection library in Java
GNU Lesser General Public License v3.0
49 stars 15 forks source link

No projection for elements in the epsg register that have ellipsoid: +ellps=aust_SA #149

Closed pshepherd27 closed 9 months ago

pshepherd27 commented 1 year ago

CRSHelper:getEllipsoid parses the ellipsoid name using: ellps = Ellipsoid.ellipsoidFromName.get(ellipsoidName.replaceAll("[^a-zA-Z0-9_]", "").toLowerCase());

Consequently it does not remove the underscore.

For example, it computse the ellipsoide for EPSG:20256 as "aust_sa", which does not match the name used internally by the org.cts classes.

The solution is to use: ellps = Ellipsoid.ellipsoidFromName.get(ellipsoidName.replaceAll("[^a-zA-Z0-9]", "").toLowerCase());

ebocher commented 10 months ago

Thanks we will check

ebocher commented 9 months ago

Thanks !