[postgis-users] problems with StartPoint(Geometry) and EndPoint(Geometry)?

Andy Turk andy at streetlight.com
Fri Sep 13 11:24:15 PDT 2002


Both StartPoint() and EndPoint return NULL for me when I try to use them in 
0.73. However, PointN() works just fine.

Try this and see what you get:

SELECT StartPoint(GeometryFromText('MULTILINESTRING((0 0,1 1))', 1));
 startpoint
------------

(1 row)

SELECT PointN(GeometryFromText('MULTILINESTRING((0 0, 1 1))', 1), 0);
     pointn
-----------------
 SRID=1;POINT(0 0)
(1 row)




More information about the postgis-users mailing list