[postgis-tickets] [PostGIS] #4314: ST_AsMVTGeom: IllegalArgumentException

PostGIS trac at osgeo.org
Wed Jan 30 08:13:53 PST 2019


#4314: ST_AsMVTGeom: IllegalArgumentException
-------------------------+---------------------------
  Reporter:  Algunenano  |      Owner:  Algunenano
      Type:  defect      |     Status:  assigned
  Priority:  high        |  Milestone:  PostGIS 2.4.7
 Component:  postgis     |    Version:  2.4.x
Resolution:              |   Keywords:
-------------------------+---------------------------

Comment (by Algunenano):

 I've extracted the geometry and clip box that was used to call
 clip_by_rect:
 ```
 # SELECT ST_ClipByBox2D('POLYGON((1410 2055, 1410 2056, 1410 2057, 1410
 2055))'::geometry, ST_MakeEnvelope(-8.000000, -8.000000, 2056.000000,
 2056.000000));
 ERROR:  lwgeom_clip_by_rect: GEOS Error: IllegalArgumentException: Invalid
 number of points in LinearRing found 3 - must be 0 or >= 4
 Time: 0.654 ms
 ```

 The geometry has 4 points but after simplification they've fallen into a
 Line. I'm not sure yet who is removing one of the points.

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