I just had this problem reported and patches yesterday for trunk. I 
think the developer is working on 2.5.x so perhaps they will commit for 
the next release?
- http://jira.codehaus.org/browse/GEOT-1979 JTSGeometryFactory failure 
to resolve GeometryFactory

For new new GeometryFactory() is the only way to go.

Jody

geoman wrote:
> Hello,
>
> I'm am trying to follow the instructions at
> http://docs.codehaus.org/display/GEOTDOC/01+How+to+Create+a+Geometry, but I
> am getting a FactoryNotFoundException. Specifically, the line:
>   GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(
> null );
> is throwing:
>
> Exception in thread "main" org.geotools.factory.FactoryNotFoundException: No
> factory of kind "GeometryFactory" found.
>       at
> org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:374)
>       at
> org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143)
>       at
> org.geotools.geometry.jts.JTSFactoryFinder.getGeometryFactory(JTSFactoryFinder.java:87)
>       at com.ta.data.db4o.trial.DataGenerator.main(DataGenerator.java:21)
>
> >From the searching and debugging I've tried, it looks like I'm missing a
> needed jar file that contains the classes for some factories. Here are the
> geotools jars I'm including:
>   geotools-2.5-RC0/geoapi-2.2-M1.jar
>   geotools-2.5-RC0/gt-api-2.5-RC0.jar
>   geotools-2.5-RC0/gt-main-2.5-RC0.jar
>   geotools-2.5-RC0/jts-1.9.jar
>   geotools-2.5-RC0/gt-metadata-2.5-RC0.jar
>   geotools-2.5-RC0/gt-epsg-hsql-2.5-RC0.jar
>   geotools-2.5-RC0/gt-referencing-2.5-RC0.jar
>
> Thanks for any help, 
> Craig
>
>
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to