Hi all,

I recently needed to use the UPS (universal polar stereographic) CRS, 
and when I tried to create one using the EPSG factory, it thrown the 
following FactoryException:  "South along 180 deg" is unknow in this 
context.

All the UTM CRS (zones 1 to 60, North and South hemispheres) can be 
created without problems, so I think it is not a configuration problem.

I tested the command line utility to check and it gave me exactly the 
same error:

C:\Program Files\Java\APIs\GeoTools\gt2-2.2.0>java -Duser.language=en 
-cp 
gt2-referencing-2.2.0.jar;gt2-epsg-hsql-2.2.0.jar;geoapi-2.0.jar;hsqldb-1.8.0.1.jar;vecmath-1.3.1.jar;jsr108-0.01.jar
 
org.geotools.referencing.factory.epsg.DefaultFactory EPSG:32661
EPSG version:    6.8
Database engine: HSQL Database Engine version 1.8.0
Database URL:    
jdbc:hsqldb:file:/C:/DOCUME~1/HERV~1/LOCALS~1/Temp/Geotools/Databases/HSQL/EPSG

org.opengis.referencing.FactoryException: Type "South along 180 deg" is 
unknow in this context.
        at 
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateSystemAxis(FactoryUsingSQL.java:1582)
        at 
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateSystem(FactoryUsingSQL.java:1636)
        at 
org.geotools.referencing.factory.AbstractAuthorityFactory.createCartesianCS(AbstractAuthorityFactory.java:377)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.createCartesianCS(BufferedAuthorityFactory.java:512)
        at 
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateReferenceSystem(FactoryUsingSQL.java:1790)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:674)
        at 
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createObject(FactoryUsingSQL.java:1011)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.createObject(BufferedAuthorityFactory.java:314)
        at 
org.geotools.referencing.factory.epsg.DefaultFactory.main(DefaultFactory.java:471)
Caused by: java.util.NoSuchElementException: Unknow axis direction: 
"South along 180 deg".
        at 
org.geotools.referencing.cs.DefaultCoordinateSystemAxis.getDirection(DefaultCoordinateSystemAxis.java:677)
        at 
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateSystemAxis(FactoryUsingSQL.java:1573)
        ... 8 more

Am I doing something wrong (like not using the correct EPSG code, though 
I am sure it is 32661 for North and 32761 for South), or is there a bug 
somewhere?

Thanks,

    Hervé


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to