|
The gt-epsg-hsql module is not found (and causes a runtime error as below) if it is linked in via the POM file. It is found if the jar file is present in the runtime target directory. Appears to have broken at the change from 12.4 to 12.5.
{{10:20:36 FATAL GUI: Global.java 72 - No code "EPSG:2193" from authority "EPSG" found for object of type "EngineeringCRS". org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:2193" from authority "EPSG" found for object of type "EngineeringCRS". at org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.noSuchAuthorityException(CartesianAuthorityFactory.java:136) at org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.createEngineeringCRS(CartesianAuthorityFactory.java:130) at org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.createCoordinateReferenceSystem(CartesianAuthorityFactory.java:121) at org.geotools.referencing.factory.AbstractAuthorityFactory.createProjectedCRS(AbstractAuthorityFactory.java:716) at org.geotools.referencing.factory.AuthorityFactoryAdapter.createProjectedCRS(AuthorityFactoryAdapter.java:878) at org.geotools.referencing.factory.ThreadedAuthorityFactory.createProjectedCRS(ThreadedAuthorityFactory.java:864) at maps.Global.<clinit>(Global.java:70)}}
public static GeometryFactory geometryFactory; public static ProjectedCRS internalCRS;
static { PrecisionModel pm = new PrecisionModel(PrecisionModel.FIXED); // fixed decimal point geometryFactory = new GeometryFactory(pm); try { CRSAuthorityFactory authorityFactory = CRS.getAuthorityFactory(true); internalCRS = authorityFactory.createProjectedCRS("EPSG:2193"); // NZGD2000 NZTM }
catch (NoSuchAuthorityCodeException ex) { log.fatal(ex.getMessage(), ex); } catch (FactoryException ex) { log.fatal(ex.getMessage(), ex); }
}
|