Opened 13 years ago

Last modified 7 years ago

#1747 new enhancement

Allow calibrating a linestring from a collection of PointM

Reported by: amaneiro Owned by: pramsey
Priority: medium Milestone: PostGIS Fund Me
Component: postgis Version: 1.5.X
Keywords: Cc: pramsey

Description (last modified by pramsey)

Nowadays, postgis allow calibrating a linestring with ST_AddMeasure. Although very useful, it is not enough to cover some common cases when calibrating lines: for example, in road management is very usual that the ratio between a route's length and its measures is not constant. It's typical to have a table with measured points (mileage points, for example) and use it to calibrate the linestring.

So, a method to calibrate a linestring from a collection of PointM would be very helpful. Something like … ?

geometry ST_AddMeasure(geometry geom_mline, geometry points_collection);

To take into account:

  • the measured points not intersect with the line: the user should be able to set a offset/buffer for the points to be snapped to linestring. Somethink like … ?
geometry ST_AddMeasure(geometry geom_mline, geometry points_collection, float buffer);
  • start & end points of linestring: sometimes, the collection of measured points provided might not to be the start or end points of the linestring. I see two actions could be taken to prevent this: 1) require the user to provide a collection where the points match up to the ones on linestring or 2) allow the user to set measures for start & end points of linestring. Something like… ?
geometry ST_AddMeasure(geometry geom_mline, geometry points_collection, float start_measure, float end_measure);

Change History (7)

comment:1 by pramsey, 13 years ago

Milestone: PostGIS 1.5.4PostGIS 2.1.0

comment:3 by pramsey, 12 years ago

Description: modified (diff)

comment:4 by robe, 12 years ago

Milestone: PostGIS 2.1.0PostGIS 2.2.0

comment:5 by pramsey, 9 years ago

Milestone: PostGIS 2.2.0PostGIS 2.3.0

Remains a cool idea, waiting for patch or funder.

comment:6 by robe, 8 years ago

Milestone: PostGIS 2.3.0PostGIS 2.4.0

comment:7 by dbaston, 7 years ago

Milestone: PostGIS 2.4.0PostGIS Fund Me
Note: See TracTickets for help on using tickets.