Jan the GeometryBuilder stuff is more of interest to people doing 
research into the ISO 19107 Geometry specification. As mentioned int the 
user guide please consider the JTS Topology Suite for all serious work 
right now. We will hook up the GeometryBuilder stuff when it becomes 
more capable (and when someone has funding to do the legwork).

To answer your question you will need to include an implementation of 
one of the two plug-ins we have that implements PrimitiveFactory. There 
is unsupported/geometry and unsupported/jts-wrapper

Cheers,
Jody

Jody

Jan Goyvaerts wrote:
> GeometryBuilder builder = new GeometryBuilder(DefaultGeographicCRS.WGS84);
> org.opengis.geometry.primitive.Point location = 
> builder.createPoint(new double[]{10.0, 10.0});
>
> Not sure whether this is the way it should be done, but if I'm doing 
> it this way I'm getting the exception underneath:
>
> org.geotools.factory.FactoryNotFoundException: No factory of kind 
> "PrimitiveFactory" found.
>     at 
> org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364)
>     at 
> org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:115)
>     at 
> org.geotools.geometry.GeometryFactoryFinder.getPrimitiveFactory(GeometryFactoryFinder.java:121)
>     at 
> org.geotools.geometry.GeometryBuilder.getPrimitiveFactory(GeometryBuilder.java:165)
>     at 
> org.geotools.geometry.GeometryBuilder.createPoint(GeometryBuilder.java:298)
>     etc ...
>
> Apparently a factory has to be registered prior to creating primitive 
> geometries. Or so...
>
> But how ???
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
>   


-------------------------------------------------------------------------
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