On Thu, 2008-06-26 at 14:48 -0600, Tim Swanson wrote:
> I'm beginning to feel like a broken record, and I know the manpower
> doesn't exist right now to answer. But I think it's a good idea to get
> these questions on record.
> 
> I am trying to create a Polygon (org.opengis.geometry.coordinate) using
> a GeometryFactory (same package). There is a
> GeometryFactory.createPolygon method but both overloads take a
> SurfaceBoundary. How do I create a SurfaceBoundary? There is no method
> to create one in GeometryFactory.
> 
> On a more general note, should I be using the GeoAPI geometry classes,
> or should I be using the JTS geometry classes? The docs say that
> GeoTools is moving away from JTS. Has this happened? Is the new
> functionality complete?

Oh, good lord, no! Please use JTS, a mature library for your needs. The
plugin/geometry module is pioneering/experimental work and will not work
correctly. It will move to unsuppported/ as soon as I take the hour or
two to make sure that's done right.

Plugin/geometry was pioneering work. Unfortunately, they set out with
the idea in mind "the hard thing is 3D" when my read of the spec is more
"the hard things are allowing for different implementations of ISO
geometry, i.e. implementations which want different rules for boundary
intersections, correctly handling geometry CRS's, dealing with curved
geometries which violate the core assumptions of JTS, and only then 3D".
I'm only now just starting to come to grips with *what* needs to be
designed in the library, next is *how*, then the actual design, and
finally the coding. So today, go with JTS.

cheers,
  adrian 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to