[postgis-tickets] [PostGIS] #3164: ST_ClipByBox2D a little less brittle

PostGIS trac at osgeo.org
Fri Jun 12 11:55:37 PDT 2015


#3164: ST_ClipByBox2D a little less brittle
---------------------+---------------------------
 Reporter:  pramsey  |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.2.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 Sometimes the function fails like
 {{{
 {
 errors: [
 "Postgis Plugin: ERROR: Error performing rectangular clipping:
 IllegalArgumentException: Invalid number of points in LinearRing found 3 -
 must be 0 or >= 4 in
 executeQuery Full sql was:
 'SELECT
 ST_AsTWKB(ST_Simplify(ST_ClipByBox2D(ST_SnapToGrid("the_geom_webmercator",
 0.477731),ST_MakeEnvelope(-539339.6715802038,5057073.791347261,-527109.7470545759,5069303.715872888,3857)),
 0.955463),-1) AS geom,"agregado" FROM (select * from
 table_47_valladolid_recfe) as cdbq WHERE "the_geom_webmercator" &&
 ST_MakeEnvelope(-539339.6715802038,5057073.791347261,-527109.7470545759,5069303.715872888,3857)'
 "
 ]
 }}}
 And the problem is not actually feeding the function a geometry with bad
 rings, it's the GEOS function itself creating them, which isn't great, but
 since we're bunging up the data anyways, rather than dying we should just
 keep on cruising.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3164>
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