[OSGeo-Discuss] CurvePolygon, CompoundCurve, CircularString

thomlep at gmail.com thomlep at gmail.com
Sun Oct 28 06:49:54 PDT 2012


Hello List,

Wondering if there is any interest is representing, for example, the
following WKT as a true com.vividsolutions.jts.geom.CurvePolygon (a
fictional class at this point)

CURVEPOLYGON(
COMPOUNDCURVE( (-71.94167121 43.374997585, -71.189107737 43.649877633,
-70.106954417 43.570331116),
CIRCULARSTRING(-70.106954417 43.570331116,  -70.128927073
43.195053608,   -70.293721995 42.873839335),
			  (-70.293721995 42.873839335,  -71.298971018 42.708565557,
-71.94167121 43.374997585) ) )

This geometry is a polygon consisting of straight-line and arc segments.

We realize that geometric operations such as UNION, SUBTRACT, and
INTERSECT would not be supported (such as in PostGIS) , but having
them represented as classes would be helpful for moving us forward.

CircularString would be subclassed by LineString, and consist of
START_POINT ARC_POINT, END_POINT sequences in the underlying
Coordinate array.

WKTReader would read the above into a CurvePolygon,   Looks like we
already have a good parser in org.geotools.geometry.jts.WKTReader2 .

Any thoughts on this?

Thanks



More information about the Discuss mailing list