[geos-devel]createEmptyGeometry()

Mateusz Łoskot mateusz at loskot.net
Thu Mar 30 18:04:58 EST 2006


Mateusz Łoskot wrote:
> Martin Davis wrote:
>>> Yes, it should choose particular type depending on input types.
>>> E.g. intersection of two envelopes should produce new envelope. If
>>> those envelopes do not intersect, then empty envelop is returned.
>> So what type is returned if the two input geometries have different 
>> type?
> 
> I think there is no one possibility.
> The result may be produced as point, multipoint, polygon or even
> heterogenous geometry collection. Every such type can be returned by
> reference to the base type of Geometry.

Oh Mom! I'm an idiot :-)
Sorry, too much posts in the same time.

The question is about what to return as empty geometry.
I think empty geometry collection is fine.

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the geos-devel mailing list