Martin Desruisseaux ha scritto:
> 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);
The only place were I can find that code like that in FactoryUsingWKT,
copied from epsg-extensions:
/**
* Returns a factory of the given type.
*/
private static final AbstractAuthorityFactory /* T */ getFactory(
final Class /* <T extends AbstractAuthorityFactory> */ type) {
// TODO: use type.cast(...) when we will be allowed to compile
for J2SE
// 1.5.
return (AbstractAuthorityFactory)
FactoryFinder.getCRSAuthorityFactory("EPSG",
new Hints(Hints.CRS_AUTHORITY_FACTORY, type));
}
well, nothing seems to call it...
On the other side, there are still plenty of places that are not using
CRS, but do get factories with code like:
FactoryFinder.getCRSFactory(new Hints(
Hints.CRS_AUTHORITY_FACTORY, CRSAuthorityFactory.class));
Should I find and replace all of them with CRS calls?
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