Issue 18244

Complex polygon queries cause Stackoverflow

Reporter: mdoering
Type: Bug
Summary: Complex polygon queries cause Stackoverflow
Description: As reported by Dag Endresen occurrence filters with large polygon geometries are causing a Stackoverflow exception in the API WithinPredicate constructor when it tries to validate the expression via SearchTypeValidator.validate.
Priority: Critical
Status: Closed
Created: 2016-02-18 17:31:30.768
Updated: 2019-07-30 18:39:00.000
Resolved: 2019-07-30 18:39:00.000
Attachment 21703.comment~

Comment: see ignored API test:
Created: 2016-02-18 17:33:25.093
Updated: 2016-02-18 17:33:25.093

Author: dagendresen
Created: 2016-03-01 12:37:16.72
Updated: 2016-03-01 12:37:16.72
For further details on the download request, see also:

Author: dagendresen
Created: 2016-03-01 12:41:09.867
Updated: 2016-03-01 12:41:09.867
The source CAFF boundary source file is available at:

And converted to WKT format (and unprojected WGS84, EPSG:4326) using ogr2ogr:
ogr2ogr -f CSV -s_srs EPSG:3408 -t_srs EPSG:4326 caff_wkt_4326.csv CAFF_Boundary_Polygon.shp -lco GEOMETRY=AS_WKT

Author: mblissett
Created: 2019-07-30 18:39:00.000
Updated: 2019-07-30 18:39:00.000
Fixed in