Ticket #113 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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) (diff)

What steps will reproduce the problem? 1. -- ST_Locate_Along_Measure LineSet?3D: 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

Changed 4 years ago by robe

  • owner set to pramsey
  • description modified (diff)
  • milestone set to 2.0

Changed 4 years ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

Fix applied to trunk at r4745.

Note: See TracTickets for help on using tickets.