[postgis-devel] st_isvalid linestring and multilinestring

strk strk at keybit.net
Sun Feb 28 15:55:49 PST 2010


Check this out:

strk=# select st_isvalidreason('MULTILINESTRING((20 20, 20 20))');
              st_isvalidreason
---------------------------------------------
 Too few points in geometry component[20 20]
(1 row)

strk=# select st_isvalidreason('MULTILINESTRING((0 0, 10 0),(20 20, 20 20))');
 st_isvalidreason
------------------
 Valid Geometry
(1 row)

Interesting, isn't it ?
Martin, does JTS check for lines in a multilinestring being valid ? 


--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://foo.keybit.net/~strk/services.html



More information about the postgis-devel mailing list