Luca Morandini ha scritto:
> Following a suggestion from Andrea of some months ago, I started adding the 
> possibility of having marks defined as WKT.... but, while adding this 
> behaviour to 
> the ShapeMarkFactory class, I've found out that the following code:
> 
> WKTParser parser= new WKTParser(new 
> GeometryBuilder(DefaultGeographicCRS.WGS84));
> 
> raises this exception:
> 2010-04-26 16:18:23,542 DEBUG [org.geotools.rendering] - Exception while 
> scanning 
> for the appropriate mark factory
> 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.GeometryFactoryFinder.getGeometryFactory(GeometryFactoryFinder.java:92)
>          at 
> org.geotools.geometry.GeometryBuilder.getGeometryFactory(GeometryBuilder.java:213)
>          at org.geotools.geometry.text.WKTParser.<init>(WKTParser.java:108)
> 
> Any clue ?

Which WKTParser are you using?
Try to stick with the JTS one, you may be using the geotools one which 
is the result of an unfinished experiment by Jody and Mark to add 
support for curves

Cheers
Andrea


-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to