[postgis-users] NOTICE: IllegalArgumentException: point array must contain 0 or >1 elements, ERROR: Exception in LWGEOM2GEOS

Daniel Degasperi daniel.degasperi at r3-gis.com
Thu Feb 4 09:00:34 PST 2010


|*Hi,
I have some problems with a MultiLinestring imported with *||*shp2pgsql.

If I try to check it's validity (or try to do anything else on it)*||*:

SELECT 
isvalid('0105000020E0670000010000000102000020E06700000100000016DA52BA62A04141FFF3AD290B735241');

*||*I get the Exception in my e-mail subject.

How can I check the geometry, if already isvalid chokes. I could only 
select NumPoints(the_geom) and compare it to the allowed range of the 
geometry type (e.g. 0 or > 1 for MULTILINESTRINGS).

Can this be considered to be a bug of PostGIS/GEOS?

Software stack:
CentOS 5.4, 64 bit
PostgreSQL 8.2.14 (from CentOS Testing)
PostGIS 1.4.1
GEOS: 3.1.1

*||*Best regards
Daniel

*|

-- 
   Daniel Degasperi
   Software Developer
   daniel.degasperi at r3-gis.com

---------------------------
   R3 GIS Srl
   Via Johann Kravogl 2
   I-39010 Merano - Sinigo (BZ)
   Tel. +39 0473 494949
   Fax. +39 0473 069902
   Web  http://www.r3-gis.com
-----------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100204/74bccde4/attachment.html>


More information about the postgis-users mailing list