[postgis-tickets] [PostGIS] #4731: Garden crash ST_WrapX

PostGIS trac at osgeo.org
Thu Jul 30 01:25:20 PDT 2020


#4731: Garden crash ST_WrapX
----------------------+---------------------------
  Reporter:  robe     |      Owner:  robe
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.1.0
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by Algunenano):

 * owner:  Algunenano => robe


Comment:

 > aha I think I found the change

 > commit f0822be70/git change of file postgis/lwgeom_functions_basic.c

 > ticket #4698

 Is this a bisection or just a hunch? Because I don't see how adding a
 precision parameter to ST_AsEWKT might have broken ST_WrapX, even if the
 declaration lives in the same file.

 Anyway, I've just tested with master and "normal" GEOS and it works:
 {{{
 template_postgis=# Select postgis_full_version();

                                postgis_full_version

 -----------------------------------------------------------------------------------------------------------------------------
 -----------------------------------------------------------------------------------------------------------------------------
 ----------------------------------------------------------------------------------
  POSTGIS="3.1.0dev c35256b1d" [EXTENSION] PGSQL="120" GEOS="3.9.0dev-
 CAPI-1.14.0" PROJ="6.3.2" GDAL="GDAL 3.0.4, released 202
 0/01/28" LIBXML="2.9.10" LIBJSON="0.14" LIBPROTOBUF="1.3.3" WAGYU="0.5.0
 (Internal)" (core procs from "3.1.0dev 81b9af77b" ne
 ed upgrade) TOPOLOGY RASTER (raster procs from "3.1.0dev 81b9af77b" need
 upgrade)
 (1 row)

 Time: 14.172 ms
 template_postgis=# SELECT ST_WrapX('LINESTRING(-11.1111111 70,70
 -11.1111111)'::geometry, 20.1,20.1);
 st_wrapx

 -----------------------------------------------------------------------------------------------------------------------------
 -----------------------------------------------------------
 0105000000020000000102000000020000003DC159A54FFA214000000000008051409A99999999194440B5D6BC4FFA6443400102000000020000009A9999
 9999193440B5D6BC4FFA6443400000000000805140F771D98DE33826C0
 (1 row)

 Time: 1.271 ms
 }}}

 Are you sure this isn't an issue with the new overlay?

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4731#comment:4>
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