[OSGeo-Discuss] CurvePolygon, CompoundCurve, CircularString
jody.garnett at gmail.com
Sun Oct 28 15:24:04 PDT 2012
I see you already found the geotools parser, Mark Leslie did something similar for PostGIS.
My recommended API change that would be needed is to introduce "control points", and let the coordinate sequence be calculated as needed for code that wants the linear representation.
On Sunday, 28 October 2012 at 11:49 PM, thomlep at gmail.com wrote:
> 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)
> 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?
> Discuss mailing list
> Discuss at lists.osgeo.org (mailto:Discuss at lists.osgeo.org)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss