Tim Swanson a écrit :
> 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.
Lets see if Adrian can gives an answer tomorrow :). Otherwise I will check if I
can.
> 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?
GeoTools is almost entirely based on JTS. ISO geometry implementation are not
yet ready in GeoTools, so the switch has not happened here.
JTS can do the work if we keep in mind that it is designed for:
- Cartesian space (so fine for ProjectedCRS,
not for GeographicCRS in principle).
- 2D space (or 2.5D; the z value is available but ignored).
- Straight lines (no curves).
- Axes extending to infinity in all directions
(no wraparound when you cross the anti-meridian).
ISO Geometry do not have the above restrictions, but is much harder to
understand and implement. It is complex, but this is because the real world is
complex (the Earth is not flat). An implementation is under progress (Adrian is
working on that), but we can't expect it before months.
Martin
-------------------------------------------------------------------------
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