[geos-devel] Is empty LinearRing closed?
strk at refractions.net
strk at refractions.net
Fri Mar 31 05:23:26 EST 2006
On Fri, Mar 31, 2006 at 10:03:07AM +0200, Mateusz Å?oskot wrote:
> strk at refractions.net wrote:
> > On Thu, Mar 30, 2006 at 02:42:19PM -0800, Martin Davis wrote:
> >> I'm not sure why strk is making this comment. JTS/GEOS supports
> >> empty geometries of all types (as per the OGC SFS).
> >
> > I'm a bit PostGIS oriented. There's no support for EMPTY whatever in
> > PostGIS except GEOMETRYCOLLECTION. As always I'd follow JTS, so if
> > the plan is to support any kind of empty geom we should drop the
> > ::createEmptyGeometry() and ensure no memory violation is triggered
> > by EMPTY types *and* results are semantically correct.
>
> Hi,
>
> Another idea, possible and simple way to handle empty geometries would
> be to add a boolean flag to the Geometry class - bool empty;
We don't really need it.
All geometries have either a CoordinateSequence pointer
or a std::vector<> pointer.
NULL pointer would express Emptyness.
--strk;
More information about the geos-devel
mailing list