[postgis-devel] collect()

strk at refractions.net strk at refractions.net
Thu Sep 30 01:26:20 PDT 2004


On Mon, Sep 27, 2004 at 09:25:35AM -0700, Chris Hodgson wrote:
> By flatten I suppose you mean to remove any nested collections and put 
> them all in one big collection? Yes. We didn't have support for nested 
> collections when "collect()" was written (that was the first thing I 
> ever wrote for postgis!).
> 
> I agree, collect shouldn't flatten, but a separate function that does 
> flatten would be a good idea.

Ok. I've restructured LWGEOM API.
I'm now ready for collect().

So, should collect() just return a collection consisting of NUMROWS 
elements withount *any* check on actual type ?
For example, *never* return MULTIPOINT even if input is composed by just
POINT ?

--strk;


> 
> Chris
> 
> strk at refractions.net wrote:
> 
> >Current (OLD) collect() function flatten geometries.
> >Should NEW collect() also do this or instead have a
> >flatten(the_geom) taking care of this ?
> >(I opt for the second)
> >--strk;
> >_______________________________________________
> >postgis-devel mailing list
> >postgis-devel at postgis.refractions.net
> >http://postgis.refractions.net/mailman/listinfo/postgis-devel
> > 
> >
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list