Hi Yannick:

I do not generally answer questions sent to me directly - for two reasons:
a) others on the user list are often better equipped to answer questions then me
b) the company I work for sells support contracts for open source
geospaital software

The geometry builder class does work; it has test cases and so on -
however both implementations are "unsupported" and should be
considered research topics.

WIth this in mind I would recommend:
a) using JTS Topology Suite for your geometry
b) if you really must use geometry builder try the gt-geometry jar
rather than jts-wrapper

The user guide has instructions; and should of recommended you choose JTS?

Jody

On Fri, May 15, 2009 at 7:16 AM, yannick allard
<[email protected]> wrote:
> Hi,
>
> Im currently trying to build Geometries (in lat/long, WRGS84) using the
> GeometryBuilder class. However, I have the same error as in :
>
> http://www.mail-archive.com/[email protected]/msg0718
> 6.html
>
> using GeoTools 2.5.4, 2.5.5 and 2.6-M1
>
> I tried downloading the gt-jts-wrapper.jar (with the sources) and modifying
> the path in the META_INF/service/org.opengis... path so that the
> JTSGeometryFactory point to the right place, putting the new jar in my
> GeoTools project in eclipse, but no success. Is there a way to work around
> this problem without having to check out every thing from the repository and
> rebuilding it completely.
>
> Thank you
>
> Yannick
>
> P.S Here is the stack trace
>
> Here is the stack trace :
>
> ATTENTION: Échec lors de l'initialisation d'un service de catégorie
> "GeometryFactory". La cause est "ServiceConfigurationError:
> org.opengis.geometry.coordinate.GeometryFactory: Provider
> org.geotools.geometry.jts.coordinate.JTSGeometryFactory not found".
> sun.misc.ServiceConfigurationError:
> org.opengis.geometry.coordinate.GeometryFactory: Provider
> org.geotools.geometry.jts.coordinate.JTSGeometryFactory not found
>        at sun.misc.Service.fail(Service.java:129)
>        at sun.misc.Service.access$000(Service.java:111)
>        at sun.misc.Service$LazyIterator.next(Service.java:273)
>        at 
> org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:829)
>        at
> org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773
> )
>        at
> org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.
> java:808)
>        at
> org.geotools.factory.FactoryRegistry.getUnfilteredProviders(FactoryRegistry.
> java:229)
>        at
> org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistr
> y.java:429)
>        at
> org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java
> :364)
>        at
> org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:1
> 43)
>        at
> org.geotools.geometry.GeometryFactoryFinder.getGeometryFactory(GeometryFacto
> ryFinder.java:92)
>        at
> org.geotools.geometry.GeometryBuilder.getGeometryFactory(GeometryBuilder.jav
> a:211)
>        at
> org.geotools.geometry.GeometryBuilder.createLineString(GeometryBuilder.java:
> 501)
> ...
>
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to