[postgis-tickets] [PostGIS] #5528: IsValid XX000: GEOS isvalid() threw an error!

PostGIS trac at osgeo.org
Mon Sep 4 03:25:21 PDT 2023


#5528: IsValid  XX000: GEOS isvalid() threw an error!
--------------------------------+---------------------------
  Reporter:  Lars Aksel Opsahl  |      Owner:  pramsey
      Type:  defect             |     Status:  new
  Priority:  medium             |  Milestone:  PostGIS 3.4.1
 Component:  postgis            |    Version:  3.4.x
Resolution:                     |   Keywords:
--------------------------------+---------------------------
Description changed by Lars Aksel Opsahl:

Old description:

> When running on later geos versions I get an exception and the call
> returns
>
> Here are there result from 3 different systems, where the one with latest
> geos fails first.
>
> The file /tmp/testIsValid.sql  that we test with will be uploaded.
>
> {{{
> psql:/tmp/testIsValid.sql:5: ERROR:  XX000: GEOS isvalid() threw an
> error!
> LOCATION:  isvalid, lwgeom_geos.c:1677
> postgis_full_version
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>  POSTGIS="3.4.0 0874ea3" [EXTENSION] PGSQL="120"
> GEOS="3.10.1-CAPI-1.16.0" SFCGAL="1.3.7" PROJ="8.2.0 NETWORK_ENABLED=OFF
> URL_ENDPOINT=https://cdn.proj.org USER_WRITABLE_DIRECTORY=/tmp/proj
> DATABASE_PATH=/usr/share/proj/proj.db" LIBXML="2.9.10" LIBJSON="0.13.1"
> LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY
> (1 row)
>
>  postgis_geos_version
> ----------------------
>  3.10.1-CAPI-1.16.0
> (1 row)
>

> }}}
>

>
> {{{
> postgis_full_version
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>  POSTGIS="3.4.0dev 3.3.0rc2-958-g4c776d418" [EXTENSION] PGSQL="120"
> GEOS="3.9.1-CAPI-1.14.2" SFCGAL="1.3.7" PROJ="7.2.1" LIBXML="2.9.10"
> LIBJSON="0.13.1" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY
> (1 row)
>
>  postgis_geos_version
> ----------------------
>  3.9.1-CAPI-1.14.2
> (1 row)
>
>  st_isvalid
> ------------
>  t
> (1 row)
>

> }}}
>

>

> {{{
> postgis_full_version
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>  POSTGIS="3.1.1 aaf4c79" [EXTENSION] PGSQL="120" GEOS="3.9.0-CAPI-1.16.2"
> SFCGAL="1.3.7" PROJ="7.2.1" GDAL="GDAL 3.2.1, released 2020/12/29"
> LIBXML="2.9.10" LIBJSON="0.13.1" LIBPROTOBUF="1.3.3" WAGYU="0.5.0
> (Internal)" TOPOLOGY RASTER
> (1 row)
>
>  postgis_geos_version
> ----------------------
>  3.9.0-CAPI-1.16.2
> (1 row)
>

>
> }}}

New description:

 When running on later geos versions I get an exception and the call
 returns

 Here are there result from 3 different systems, where the one with latest
 geos fails first.

 The file /tmp/testIsValid.sql  that we test with will be uploaded.

 {{{
 psql:/tmp/testIsValid.sql:5: ERROR:  XX000: GEOS isvalid() threw an error!
 LOCATION:  isvalid, lwgeom_geos.c:1677
 postgis_full_version
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  POSTGIS="3.4.0 0874ea3" [EXTENSION] PGSQL="120" GEOS="3.10.1-CAPI-1.16.0"
 SFCGAL="1.3.7" PROJ="8.2.0 NETWORK_ENABLED=OFF
 URL_ENDPOINT=https://cdn.proj.org USER_WRITABLE_DIRECTORY=/tmp/proj
 DATABASE_PATH=/usr/share/proj/proj.db" LIBXML="2.9.10" LIBJSON="0.13.1"
 LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY
 (1 row)

  postgis_geos_version
 ----------------------
  3.10.1-CAPI-1.16.0
 (1 row)


 }}}



 {{{

  st_isvalid
 ------------
  t
 (1 row)
 postgis_full_version
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  POSTGIS="3.4.0dev 3.3.0rc2-958-g4c776d418" [EXTENSION] PGSQL="120"
 GEOS="3.9.1-CAPI-1.14.2" SFCGAL="1.3.7" PROJ="7.2.1" LIBXML="2.9.10"
 LIBJSON="0.13.1" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)" TOPOLOGY
 (1 row)

  postgis_geos_version
 ----------------------
  3.9.1-CAPI-1.14.2
 (1 row)


 }}}




 {{{

  st_isvalid
 ------------
  t
 (1 row)
 postgis_full_version
 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  POSTGIS="3.1.1 aaf4c79" [EXTENSION] PGSQL="120" GEOS="3.9.0-CAPI-1.16.2"
 SFCGAL="1.3.7" PROJ="7.2.1" GDAL="GDAL 3.2.1, released 2020/12/29"
 LIBXML="2.9.10" LIBJSON="0.13.1" LIBPROTOBUF="1.3.3" WAGYU="0.5.0
 (Internal)" TOPOLOGY RASTER
 (1 row)

  postgis_geos_version
 ----------------------
  3.9.0-CAPI-1.16.2
 (1 row)

 }}}

--
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5528#comment:2>
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-tickets mailing list