simone giannecchini a écrit :
I am using Geotool2 2.2. from trunk, with hsql db.
I am doing as follows:
CRS.decode("EPSG:9801");
and I get an error message like "Unabled to locate code".
Any ideas?
Try "EPSG:9810" (the EPSG code for "Polar Stereographic" is 9810. "9801"
sound like a typo). If it still doesn't work, try the following:
FactoryFinder.getOperationAuthorityFactory("EPSG",
null).createObject("9801");
Note 1: the real method name should be 'createOperationMethod' instead
of 'createObject', but the 'createOperationMethod' method has not yet
been added to GeoAPI.
Note 2: EPSG:9810 is an operation method, not an actual coordinate
operation (CoordinateOperation = OperationMethod + the set of parameters
for a particular projection). We can't perform coordinate transformation
with EPSG:9810 (I don't know if it was yours intend).
Martin.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users