Hi all (Hi Martin),
in Geoserver trunk I'm using espg-extensions to allow users add
their own private wkt, besides having hsql too.

Now, there is some code in geoserver that lists all the known
projection, and generates wkt for them by first asking all codes
for the EPSG authority, then deconding them and converting to WKT.

The decode and conversions loop is guarded against exceptions, and
I'm getting a ton of them, I think as a result of codes that are
registered against the ESRI and EPSG extension factories.
Stack traces look like:

Issues converting EPSG:66616413
org.geotools.referencing.wkt.UnformattableObjectException: Invalid WKT 
format.
        at org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:184)
        at org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:147)
        at org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:126)
        at org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:108)
        at 
org.vfny.geoserver.action.SrsHelpAction.execute(SrsHelpAction.java:83)


AVVERTENZA: Issues converting EPSG:104727
org.opengis.referencing.NoSuchAuthorityCodeException: No code 
"EPSG:104727" from authority "ESRI" found for object of type 
"IdentifiedObject".
        at 
org.geotools.referencing.factory.AbstractAuthorityFactory.noSuchAuthorityCode(AbstractAuthorityFactory.java:917)
        at 
org.geotools.referencing.factory.PropertyAuthorityFactory.getWKT(PropertyAuthorityFactory.java:278)
        at 
org.geotools.referencing.factory.PropertyAuthorityFactory.createCoordinateReferenceSystem(PropertyAuthorityFactory.java:350)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:686)
        at 
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:530)
        at 
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:530)
        at 
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:530)
        at 
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:530)
        at 
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:560)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:686)
        at org.geotools.referencing.CRS.decode(CRS.java:343)
        at org.geotools.referencing.CRS.decode(CRS.java:279)
        at 
org.vfny.geoserver.action.SrsHelpAction.execute(SrsHelpAction.java:82)

These are only two samples, I have a ton more.
It would be nice if all codes did show up in the list without these 
errors. Inability to decode codes prevents utilization in geoserver,
whilst wkt issues prevent config pages from working properly.

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-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to