Le mardi 20 février 2007 à 17:14 +0100, Cédric Briançon a écrit :
> So the question I want to ask is : Is Geoserver parsing the 
> epsg-extension jar when the URL request is sent, as when I define my 
> coverage ?
> 
> org.vfny.geoserver.wcs.WcsException: 
> org.opengis.referencing.NoSuchAuthorityCodeException:
> Aucun code "EPSG:41001" de l'autorit "European Petroleum Survey Group" n'a t 
> trouvé pour un objet de type "CoordinateReferenceSystem".
>         at 
> org.vfny.geoserver.wcs.responses.CoverageResponse.execute(CoverageResponse.java:258)
>         at 
> org.vfny.geoserver.wcs.responses.CoverageResponse.execute(CoverageResponse.java:184)
[...snip...]
> Caused by: org.opengis.referencing.NoSuchAuthorityCodeException:
> Aucun code "EPSG:41001" de l'autorit "European Petroleum Survey Group" n'a t 
> trouvé pour un objet de type "CoordinateReferenceSystem".
>         at 
> org.geotools.referencing.factory.AbstractAuthorityFactory.noSuchAuthorityCode(AbstractAuthorityFactory.java:917)
>         at 
> org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateReferenceSystem(FactoryUsingSQL.java:1956)

The fact that the "caused by" exception stack trace starts with
FactoryUsingSQL give me the impression that Geoserver code is querying
directly the EPSG factory, instead of using the code that delegate to
all available factories. I suggest to search if some code in either
Geoserver or Geotools raster modules contain the following:

    new Hints(Hints.CRS_AUTHORITY_FACTORY, DefaultFactory.class);

This hint was maybe used at the time were "epsg-wkt" and "epsg-hsql" was
together on the classpath, in order to explicitly ask for the epsg-hsql
implementation. If "epsg-wkt" is no longer on the classpath, this hint
should be completly removed, since it may prevent the use of alternative
factories like "epsg-extension".

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

Reply via email to