Andrea, thank you! It works partly. I don't get a
NoSuchAuthorityCodeException anymore. But I get a new exception. I hope you
or someone else can help me again?

Thank you.
Regards, Thomas

org.opengis.referencing.NoSuchIdentifierException: Can't set a value to the
parameter "Scale factor on initial line".
        at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.fillParameterValues(FactoryUsingSQL.java:2091)
        at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateOperation(FactoryUsingSQL.java:2394)
        at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateOperation(BufferedAuthorityFactory.java:896)
        at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateReferenceSystem(FactoryUsingSQL.java:1818)
        at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:674)
        at 
GeoToolsTest.testCreatingCoordinateReferenceSystem(GeoToolsTest.java:63)




aaime wrote:
> 
> Thomas Zuberbühler ha scritto:
>> Dear Mailinglist
>> 
>> I get everytime a NoSuchAuthorityCodeException. I don't know why because
>> I
>> use an official EPSG Code. In the following I put the Exception and a 
>> http://www.nabble.com/file/6701/GeoToolsTest.java JUnit test file .
> 
> Hum, I do believe you should provide "EPSG:21781" and not simply 
> "21781". If you're doing lots of transformations, I'd suggest
> to use the CRS class, that uses a caching authority (so if you
> request more than once then same CRS you'll hit the db only once).
> It's also easier to use.
> 
> Cheers
> Andrea
> 
> -------------------------------------------------------------------------
> 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-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NoSuchAuthorityCodeException-tf3272556.html#a9100304
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to