Closed fnorf closed 9 years ago
Hi,
You need to feed the RegistryManager with registry:
CRSFactory cRSFactory = new CRSFactory();
RegistryManager registryManager = cRSFactory.getRegistryManager();
registryManager.addRegistry(new IGNFRegistry());
registryManager.addRegistry(new EPSGRegistry());
registryManager.addRegistry(new ESRIRegistry());
registryManager.addRegistry(new Nad27Registry());
registryManager.addRegistry(new Nad83Registry());
registryManager.addRegistry(new worldRegistry());
This part is missing in first wiki sample.
Thanks! I added it to the wiki page.
I use 1.3.3 from the Maven repository. I tried creating a CoordinateReferenceSystem with CRSFactory#getCRS:
which gave me
So I tried to debug
but that gave me
CRSFactory#createFromPrj works fine.