[geos-devel] Is empty LinearRing closed?

Mateusz Łoskot mateusz at loskot.net
Fri Mar 31 19:09:51 EST 2006


strk at refractions.net wrote:
> 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.

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



More information about the geos-devel mailing list