[postgis-tickets] [PostGIS] #3564: Interpolate points along a line: add a fixed distance version
PostGIS
trac at osgeo.org
Fri Sep 29 07:39:25 PDT 2017
#3564: Interpolate points along a line: add a fixed distance version
--------------------------+---------------------------
Reporter: pcav | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.5.0
Component: postgis | Version: 2.2.x
Resolution: | Keywords:
--------------------------+---------------------------
Comment (by dbaston):
What about a function {{{ST_LineInterpolatePoints}}} that is the same as
{{{ST_LineInterpolatePoint}}}, except that it repeats the proportion as
many times as possible and returns a MultiPoint.
So, where {{{ST_LineInterpolatePoint(geom, 0.2)}}} would return a single
point, {{{ ST_LineInterpolatePoints(geom, 0.2)}}} would return points at
and 0.2, 0.4, 0.6, 0.8, 1.0. {{{ST_LineInterpolatePoints(geom, 0.3)}}}
would return points at 0.3, 0.6, 0.9.
If a user wants to specify a distance rather than a proportion, it would
be trivial to do {{{ ST_LineInterpolatePoints(geom, dist /
ST_Length(geom)) }}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3564#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list