DEV Community

Cristian Vargas
Cristian Vargas

Posted on

Answer: Impossible to get CRS with tomcat : org.opengis.referencing.NoSuchAuthorityCodeException

I found a workaround even if it doesn't solve the initial issue (related to dependencies of geotools and the deployement into Tomcat)

don't use gt-epsg-hsql which leads your app searching for the EPSG code to decode into the HSQL database.

Rather than using CRS.decode(targetCrs); with

CRS.parseWKT("PROJCS[\"WGS 84 / Plate Carree

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay