[postgis-devel] [PostGIS] #1874: ST_LocateAlong chokes on some value combinations
PostGIS
trac at osgeo.org
Mon Jun 18 06:13:12 PDT 2012
#1874: ST_LocateAlong chokes on some value combinations
---------------------+------------------------------------------------------
Reporter: arho | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.1
Component: postgis | Version: 2.0.x
Keywords: |
---------------------+------------------------------------------------------
ST_LocateAlong produces an error or even resets the connection on some
value combinations:
'''Works:'''[[BR]]
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));[[BR]]
Result: ''MULTIPOINT M (55.2261306532663 55.2261306532663 105)''
'''Produces an error:'''[[BR]]
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));[[BR]]
ERROR: ''Multipoint cannot contain Invalid type element''
'''Resets the connection:'''[[BR]]
SELECT ST_AsText(ST_Locatealong(ST_GeomFromText('MULTILINESTRING M ((1 2
3, 5 4 5), (50 50 1, 60 60 200))'), 105));[[BR]]
''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[[BR]]
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
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1874>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list