I'm using geotools.version = 20.0.
After debugging the set reference system functionality, the following is executed but the codes list is empty:
CRSAuthorityFactory fac =ReferencingFactoryFinder.getCRSAuthorityFactory("EPSG", null); Set<String> codes = fac.getAuthorityCodes(CoordinateReferenceSystem.class);
If I pass "CRS" to the getCRSAuthorityFactory instead, the codes list is not empty.
I've included the gt-epsg-hsql dependency and the org.apache.maven.plugins.shade.resource.ServicesResourceTransformer transformer in my pom.xml file.
I tried adding the gt-eqsg-hsql JAR file in the CLASSPATH as well as the folder extracted from the jar containing the database (the EPSG directory containing EPSG.data, EPSG.properties, and EPSG.script).
Am I still missing something or is this functionality broken?