You need gt-referencing (which makes the definitions of "EPSG:4326" and other 
coordinate reference systems available).

And gt-referencing offers you a choice of plugins for those definitions; the 
trick is you can only choose *one* of these plugins.

For more information please see the user guide; you may also wish into the 
training materials that cover the use of mvn dependency:tree

It is part of the first quickstart:
- Where did all these other JARs come from?

If you are really having trouble using maven; or sorting out dependencies there 
is a longer form of these docs from last years FOSS4G.
- http://geotoolsnews.blogspot.com/2009/11/foss4g-geotools-tutorials.html 

I will be updating these workbooks again; so if anyone is interested in review 
and feedback volunteers are welcome.

Jody

On 23/04/2010, at 11:07 PM, Sidonie Christophe wrote:

> Dear all,
> I still meet problems with compiling my class : it seems that I miss jars. 
> But gt-metadata and gt-rendering are in the build path... I don't understand 
> why I always have this error when running, on the line "final 
> SimpleFeatureType TYPE = DataUtilities.createType(..)" : 
> 
> "23 avr. 2010 14:57:20 org.geotools.factory.FactoryRegistry scanForPlugins
> ATTENTION: Échec lors de l'initialisation d'un service de catégorie 
> "CRSAuthorityFactory". La cause est "NoClassDefFoundError: 
> org/opengis/metadata/citation/OnLineResource".
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/opengis/referencing/operation/Operation
>     at java.lang.ClassLoader.defineClass1(Native Method)
>     at java.lang.ClassLoader.defineClassCond(Unknown Source)
>     (......)
>     at 
> org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory.createBackingStore(ThreadedHsqlEpsgFactory.java:397)
>     at 
> org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore0(ThreadedEpsgFactory.java:384)
>     at 
> org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:421)
>     at 
> org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132)
>     at 
> org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:233)
>     at 
> org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119)
>     at 
> org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:668)
>     at 
> org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:500)
>     at org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:191)
>     at javax.imageio.spi.FilterIterator.advance(Unknown Source)
>     at javax.imageio.spi.FilterIterator.<init>(Unknown Source)
>     at javax.imageio.spi.ServiceRegistry.getServiceProviders(Unknown Source)
>     at 
> org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:196)
>     at 
> org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
>     at 
> org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:451)
>     at 
> org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:88)
>     at 
> org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69)
>     at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:182)
>     at org.geotools.referencing.CRS.decode(CRS.java:420)
>     at org.geotools.referencing.CRS.decode(CRS.java:348)
>     at 
> org.geotools.data.DataUtilities.createAttribute(DataUtilities.java:1699)
>     at org.geotools.data.DataUtilities.createType(DataUtilities.java:1342)
>     at MethodesGT.Csv2shp.main(Csv2shp.java:67)"
>  
> I use gt-xxxxx-2.6-SNAPSHOT.jar.
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to