Ticket #31 (closed defect: fixed)
Negative distance buffer
|Reported by:||joao...@…||Owned by:|
Description (last modified by pramsey) (diff)
I’ve detected a possible bug or at least a bizarre behavior when performing a buffer query with negative distances (e.g.: SELECT st_buffer(a.the_geom, -5.725)...). In some cases interior rings are not being used to perform the inner buffer generation (this is illustrated by the reddish features in the image attachment) although for most of the cases rings are correctly used (green features).
Tests using polygon/multipolygon themes revealed the same result. I've
compared the areas of buffered and non-buffered polygons with very small distances, and in some cases the negative buffered area is bigger revealing the inclusion of the rings areas.
Performing an intersction positevely identifies the problematic polygons:
FROM original a, negative_buffer b WHERE st_intersects(a.the_geom, b.st_buffer) AND a.gid<>b.gid;
Enviroment: -- WinXP SP2 -- PostgreSQL 18.104.22.168 -- PostGIS 1.3.3 (data imported under 1.3.2)