Opened 7 years ago

Closed 7 years ago

#1874 closed defect (fixed)

ST_LocateAlong chokes on some value combinations

Reported by: arho Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

ST_LocateAlong produces an error or even resets the connection on some value combinations:

Works:
SELECT ST_AsText(ST_Locatealong(ST_GeomFromText('MULTILINESTRING M ((50 50 1, 60 60 200), (1 2 3, 3 4 2, 9 4 3), (1 2 3, 5 4 5))'), 105));
Result: MULTIPOINT M (55.2261306532663 55.2261306532663 105)

Produces an error:
SELECT ST_AsText(ST_Locatealong(ST_GeomFromText('MULTILINESTRING M ((1 2 3, 3 4 2, 9 4 3), (1 2 3, 5 4 5), (50 50 1, 60 60 200))'), 105));
ERROR: Multipoint cannot contain Invalid type element

Resets the connection:
SELECT ST_AsText(ST_Locatealong(ST_GeomFromText('MULTILINESTRING M ((1 2 3, 5 4 5), (50 50 1, 60 60 200))'), 105));
The connection to the server was lost. Attempting reset: Failed.

Version information: POSTGIS="2.0.0 r9605" GEOS="3.3.2-CAPI-1.7.2" PROJ="Rel. 4.7.1, 23 September 2009" GDAL="GDAL 1.9.0, released 2011/12/29" LIBXML="2.7.8" RASTER
PostgreSQL 9.1.2 on i686-pc-linux-gnu, compiled by gcc-4.6.real (Debian 4.6.2-4) 4.6.2, 32-bit

Change History (1)

comment:1 Changed 7 years ago by pramsey

Resolution: fixed
Status: newclosed

Fixed in trunk at r9958 and 2.0 at r9959.

Note: See TracTickets for help on using tickets.