locationtech / proj4j

Java port of the Proj.4 library for coordinate reprojection
Other
186 stars 73 forks source link

UnknownAuthorityCodeException: EPSG:9054 #88

Closed imperio-wxm closed 1 year ago

imperio-wxm commented 1 year ago
val crs = new CRSFactory().createFromName("EPSG:9054")
println(crs)
EPSG:9054
org.locationtech.proj4j.UnknownAuthorityCodeException: EPSG:9054
    at org.locationtech.proj4j.CRSFactory.createFromName(CRSFactory.java:85)

9054 related configuration could not be found in https://github.com/locationtech/proj4j/blob/master/src/main/resources/proj4/nad/epsg

pomadchin commented 1 year ago

Hey @imperio-wxm, that's right, it's not here!

imperio-wxm commented 1 year ago

@pomadchin I got the PROJ.4 information from epsg.io, is it correct to add the following information to the file? image

<9054> +proj=longlat +ellps=WGS84 +no_defs +type=crs  <>
pomadchin commented 1 year ago

Yes, I think it can be shrinked even to +proj=longlat +datum=WGS84 +no_defs The only issue with it is that the proj4 string of this projection is a EPSG:4326 alias.