[geos-devel] createEmptyGeometry() creates instance of GeometryCollection

strk at refractions.net strk at refractions.net
Thu Mar 30 13:11:51 EST 2006


::createEmptyGeometry() has been my own addition.
It's not in JTS.
I thought it was clearer then createGeometryCollection()
An EMPTY geometry *is* a GeometryCollection with 0 elements.

--strk;

On Thu, Mar 30, 2006 at 12:50:43PM +0200, Mateusz Å?oskot wrote:
> Hi,
> 
> Simple question, is this intentional to return empty
> GeometryCollection instance from createEmptyGeometry() function?
> Currently, this function does the same as createGeometryCollection().
> 
> GeometryCollection*
> GeometryFactory::createGeometryCollection() const
> {
>    return new GeometryCollection(NULL,this);
> }
> 
> Geometry*
> GeometryFactory::createEmptyGeometry() const
> {
>    return new GeometryCollection(NULL,this);
> }
> 
> Cheers
> -- 
> Mateusz Łoskot
> http://mateusz.loskot.net
> 
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for low technology.
  X     Keep e-mail messages readable by any computer system.
 / \    Keep it ASCII. 




More information about the geos-devel mailing list