Hi, I continue testing the library and I've got some more questions:

- After parsing an ESRI WKT, I'd like to get the equivalent EPSG
definition. Is there a way to achieve this? I've seen that there is ESRI
citations in the providers, but I don't know how to use them. I've tried
the following code:

String esri4326wkt =
"GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]]";
            crs = CRS.fromWKT(esri4326wkt);
CoordinateReferenceSystem crs = CRS.fromWKT(esri4326wkt);
CRSAuthorityFactory factory = CRS.getAuthorityFactory("EPSG");
crs = CRS.fromAuthority(crs, factory, null);

However, the resulting CRS still looks an ESRI one.

- There is a database of ESRI codes in the CRS library we are currently
using in gvSIG. If we were willing to use this database with Apache SIS, I
assume we should create a plugin which provides a new authority factory. Am
I right Is this feasible?

Thanks,

César



-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   César Martínez Izquierdo
   GIS developer
   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
   SCOLAB: http://www.scolab.es
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Reply via email to