Opened 13 years ago

Closed 13 years ago

#1700 closed defect (fixed)

ERROR: GEOSTopologyPreserveSimplify: vector::reserve

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

I got the above error trying to simplifying a pre-simplified dataset. Still trying to find the smallest dataset reproducing it. May be hard because it looks like an out of memory condition (but I'm not sure it is). I bet it's related to emptyness.

Change History (5)

comment:1 by strk, 13 years ago

Interesting enough the _same_ input passed to ST_AsEWKT give a parsing error: ERROR: parse error - invalid geometry

going to canonical output and back to canonical input fixes the ST_AsEWKT but not ST_SimplifyPreserveTopology

comment:2 by strk, 13 years ago

Alright, input looks like:

 MULTIPOLYGON ( ((...)), EMPTY )

WKT parser refuses to accept it.

It looks like I can reproduce using this call:

select ST_SimplifyPreserveTopology(ST_collect('MULTIPOLYGON ( ((0 0, 10 0, 10 10, 0 10, 0 0)) )', 'POLYGON EMPTY'), 0);

comment:3 by strk, 13 years ago

So this is a GEOS bug, see http://trac.osgeo.org/geos/ticket/519

Let's keep this open until the other side is fixed.

comment:4 by pramsey, 13 years ago

Milestone: PostGIS 2.0.0PostGIS 2.0.1

comment:5 by strk, 13 years ago

Resolution: fixed
Status: newclosed

GEOS bug fixed in version 3.3.3

Note: See TracTickets for help on using tickets.