Opened 14 years ago
Closed 13 years ago
#639 closed defect (fixed)
ST_Line_Interpolate_Point doesn't interpolate M-values
Reported by: | rkail | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 1.4.3 |
Component: | postgis | Version: | 1.4 |
Keywords: | Cc: |
Description
the documentation of ST_Line_Interpolate_Point states that "this function also interpolates M and Z values ".
using the sample from the manual:
SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5)) FROM (SELECT ST_GeomFromEWKT('LINESTRING(1 2 3, 4 5 6, 6 7 8)') as the_line) As foo; st_asewkt POINT(3.5 4.5 5.5)
is working. Using M-values:
SELECT ST_AsEWKT(ST_Line_Interpolate_Point(the_line, 0.5)) FROM (SELECT ST_GeomFromEWKT('LINESTRINGM(1 2 3, 4 5 6, 6 7 8)') as the_line) As foo; st_asewkt POINTM(3.5 4.5 0)
returns 0 as m-value.
btw, ST_Line_SubString works as expected, even if start and end have the same value.
Note:
See TracTickets
for help on using tickets.
I think this was already fixed for 1.4 and 1.5 in ticket #1120. It's now also fixed in trunk (don't know how I missed that) at r8986