[postgis-devel] Difference between ST_CollectionExtract and ST_Dimension

strk strk at keybit.net
Thu Sep 23 12:20:41 PDT 2010


On Thu, Sep 23, 2010 at 11:40:15AM -0700, Paul Ramsey wrote:
> *sigh*
> 
> Yes, probably a bad decision on my part. Yet more reasons to ... I
> don't know. There has to be some way to process this stuff more
> completely and avoid errors like this.

My proposal is still valid:
 + ST_Extract(0:Puntual, 1:Lineal, 2:Areal)
 - ST_CollectionExtract [@deprecate]

Could be also ST_DimensionExtract :)

--strk;

> 
> P.
> 
> On Thu, Sep 23, 2010 at 11:25 AM, Andrea Peri 2007 <aperi2007 at gmail.com> wrote:
> >  Hi,
> >
> > I notice the ST_Dimension() return
> > 0 = Point
> > 1 = Line
> > 2 = Polygon
> >
> > instead
> >
> > ST_CollectionExtract() use
> > 1 = Point
> > 2 = Line
> > 3 = Polygon
> >
> > Perhaps this is a unwanted difference ?
> >
> > Regards,
> >
> > Andrea Peri.
> >
> >
> > _______________________________________________
> > 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

-- 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list