[EMAIL PROTECTED] wrote: > On Fri, Mar 31, 2006 at 10:03:07AM +0200, Mateusz Å?oskot wrote: >> [EMAIL PROTECTED] 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.
Just an idea. > All geometries have either a CoordinateSequence pointer > or a std::vector<> pointer. > NULL pointer would express Emptyness. Definitely, yes. Cheers -- Mateusz Łoskot http://mateusz.loskot.net _______________________________________________ geos-devel mailing list geos-devel@geos.refractions.net http://geos.refractions.net/mailman/listinfo/geos-devel