[postgis-devel] [PostGIS] #1232: Exception when calling isValid on multilinestring with only 1 point

PostGIS trac at osgeo.org
Mon Oct 10 01:05:56 PDT 2011


#1232: Exception when calling isValid on multilinestring with only 1 point
-------------------------+--------------------------------------------------
 Reporter:  hopfgartner  |       Owner:  pramsey      
     Type:  defect       |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 1.5.4
Component:  postgis      |     Version:  1.5.X        
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by hopfgartner):

 I've compiled and installed GEOS 3.3.1:

 [root at rpm-devel x86_64]# rpm -qa | grep geos
 geos-3.3.1-2.el5
 geos-php-3.3.1-2.el5
 geos-devel-3.3.1-2.el5

 I compiled PostgreSQL 1.5.3 and installed the postgis packages:

 bash-3.2$ rpm -qa  | grep postgis
 postgis-1.5.3-3.el5
 postgis-docs-1.5.3-1.el5.elgis
 postgis-utils-1.5.3-3.el5

 test1232=# select postgis_full_version();
                                           postgis_full_version
 --------------------------------------------------------------------------------------------------------
  POSTGIS="1.5.3" GEOS="3.3.1-CAPI-1.7.1" PROJ="Rel. 4.7.1, 23 September
 2009" LIBXML="2.6.26" USE_STATS

 I've loaded the data from the attached dump, but:
 test1232=# select isvalid(the_geom) from geosbug;
 NOTICE:  IllegalArgumentException: point array must contain 0 or >1
 elements

 ERROR:  Exception in LWGEOM2GEOS


 Peter

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1232#comment:3>
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