Opened 16 years ago

Closed 15 years ago

#113 closed defect (fixed)

ST_Locate_Along_Measure -- just returns null for unsupported instead of throwing an error

Reported by: robe Owned by: pramsey
Priority: low Milestone: PostGIS 1.5.0
Component: postgis Version:
Keywords: Cc:

Description (last modified by robe)

What steps will reproduce the problem?

  1. -- 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 :)

Change History (2)

comment:1 by robe, 16 years ago

Description: modified (diff)
Milestone: 2.0
Owner: set to pramsey

comment:2 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

Fix applied to trunk at r4745.

Note: See TracTickets for help on using tickets.