[geotk] Finding a CRS code/URN from a CoordinateReferenceSystem
object
Martin Desruisseaux
martin.desruisseaux at geomatys.fr
Wed Jun 17 15:25:19 EDT 2009
Hello Jon
Jon Blower a écrit :
> Is there any way in which I can find out the corresponding CRS code
> (e.g. the EPSG code), or better still, an OGC URN, from a
> CoordinateReferenceSystem object? That is, I want to do the reverse
> of CRS.decode(String crsCode).
Yes, the following method is there exactly for that. You need an EPSG database
however, either the embedded JavaDB or a database on PostgreSQL, at your choice.
http://www.geotoolkit.org/apidocs/org/geotoolkit/referencing/CRS.html#lookupIdentifier(org.opengis.referencing.IdentifiedObject,%20boolean)
Please let me know if you have any issue.
Regards,
Martin
More information about the Geotoolkit
mailing list