[postgis-devel] ST_DimensionRange() ?
Rémi Cura
remi.cura at gmail.com
Wed May 27 09:51:44 PDT 2015
To find max of M :
--
SELECT max(ST_M(dmp.geom))
FROM ST_DumpPoints(geom) AS dmp
--
For the linestring, I don't understand it .
Cheers,
Rémi-c
2015-05-27 18:49 GMT+02:00 Sandro Santilli <strk at keybit.net>:
> No comments on this ?
> While filing a new enhancement ticket for it I found myself
> writing "ST_BoundingLine", would you prefer that as a name ?
>
> --strk;
>
> On Tue, May 26, 2015 at 05:24:54PM +0200, Sandro Santilli wrote:
> > I was looking for the minimum and maximum M values in a geometry and
> > to my surprise found NO FUNCTION to do that :'(
> >
> > So I'm back deep into my BOX nightmare:
> > we don't have a BOX containing the M value !
> >
> > My current most useful proposal about this is to use a LINESTRING
> > as a general mean to represent dimensional ranges:
> >
> https://lists.osgeo.org/pipermail/postgis-devel/2015-February/024780.html
> >
> > Could it be time, for 2.2.0, to give that vision a body and provide
> > an ST_DimensionRange(geometry) function returning such a linestring ?
> > The returned linestring will have the same dimensions as the input
> > geometry and either 0 (for empty input) or 2 points representing minimum
> > (ST_StartPoint) and maximum (ST_EndPoint) dimension values.
> >
> > Do you like the idea ?
> > Would you like to suggest a better name ?
> >
> > --strk;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150527/c1c83dcb/attachment.html>
More information about the postgis-devel
mailing list