Wegert a écrit :
> Maybe by creating all available CRS and checking each created CRS...if it's
> equal to the CRS created by WKT.

Yeah... There is unfortunatly no API right now for fetching the EPSG code from 
a 
WKT, so looping over all possible CRS is the only way currently provided. 
However if we want to check by CRS name only, then instead of:

>> CoordinateReferenceSystem crs = 
>> crsfactory.createCoordinateReferenceSystem(str);

The following will be more lightweight, since it just fetch the name without 
creating a full CRS object:

String name = crsFactory.getDescriptionText(str);

In long term, we need to provide a way that use SQL queries in order to search 
efficiently for a CRS in the EPSG database. It would probably need to be a 
brand 
new class instead of an extension of existing classes.

        Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to