Opened 14 years ago

Last modified 7 years ago

#892 new enhancement

Smarter linear location (for ST_Line_Interpolate_Point, ST_Line_Substring, ST_Line_Locate_Point)

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS Fund Me
Component: postgis Version: master
Keywords: Cc:

Description

ST_LocatePoint returns a value which you can't easily convert to a vertex number. This isn't helpful if what you're looking for is a substring formed by pre-existing vertices rather than formed by arbitrarily interpolated points.

In turn, re-using existing vertices is required to avoid introducing coordinates drifts when willing to analize subportions of lines.

GEOS/JTS, for comparison, uses a pair of (SEG_NUM/SEG_FRACTION) representing in turn the segment index and the fraction of next segment.

Change History (3)

comment:1 by strk, 13 years ago

Milestone: PostGIS 2.0.0PostGIS Future

#1314 was another version of this.

As of r8212 there's some support for specifying a snap-to-vertex tolerance in the low-level ptarray_substring function. That tolerance was used in turn to solve the problem of using a pre-existent vertex as a location.

Still, it'd be nice to make the whole set of functions more robust numerically

comment:2 by strk, 13 years ago

r9063 referenced this ticket by accident, #982 was the correct one for it.

comment:3 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

Note: See TracTickets for help on using tickets.