Opened 16 years ago
Last modified 15 years ago
#113 closed defect
ST_Locate_Along_Measure -- just returns null for unsupported instead of throwing an error — at Initial Version
Reported by: | robe | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | PostGIS 1.5.0 |
Component: | postgis | Version: | |
Keywords: | Cc: |
Description
What steps will reproduce the problem?
- — ST_Locate_Along_Measure LineSet3D: Start Testing LINESTRING
SELECT ST_AsEWKT(foo1.the_geom),
ST_AsEWKT(ST_Locate_Along_Measure(foo1.the_geom, 0.5))
FROM ((SELECT ST_SetSRID(ST_MakeLine(ST_MakePoint(i,j,k),
ST_MakePoint(i+k,j+k,k)),4326) As the_geom
FROM generate_series(-10,50,20) As i
CROSS JOIN generate_series(40,70, 20) j CROSS JOIN generate_series(1,2) k )) As foo1;
What is the expected output? Only line with M supported.
What do you see instead? Everything returns null with no warning what so ever.
This is somewhat petty and I only consider this an error since the new ST_LocateBetweenMeasures returns an error for unsupported geometries.
Don't really care if we fix it. Just thought I would mention it to be a pain