[geos-devel]createEmptyGeometry()

Mateusz Łoskot mateusz at loskot.net
Thu Mar 30 18:03:12 EST 2006


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.

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



More information about the geos-devel mailing list