[GRASS-SVN] r65759 - grass/trunk/vector/v.buffer
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 21 09:35:59 PDT 2015
Author: martinl
Date: 2015-07-21 09:35:59 -0700 (Tue, 21 Jul 2015)
New Revision: 65759
Modified:
grass/trunk/vector/v.buffer/geos.c
Log:
v.buffer: fix bug introduced in r65715
Modified: grass/trunk/vector/v.buffer/geos.c
===================================================================
--- grass/trunk/vector/v.buffer/geos.c 2015-07-21 16:32:08 UTC (rev 65758)
+++ grass/trunk/vector/v.buffer/geos.c 2015-07-21 16:35:59 UTC (rev 65759)
@@ -147,7 +147,7 @@
GEOSGeometry *IGeom = NULL;
GEOSGeometry *OGeom = NULL;
- G_debug(3, "geos_buffer()");
+ G_debug(3, "geos_buffer(): id=%d", id);
if (type == GV_AREA)
IGeom = Vect_read_area_geos(In, id);
@@ -167,13 +167,15 @@
OGeom = GEOSBufferWithParams(IGeom, geos_params, da);
GEOSBufferParams_destroy(geos_params);
}
- else
+ else {
+ OGeom = GEOSBuffer(IGeom, da, 12);
+ }
#else
- OGeom = GEOSBuffer(IGeom, da, 12);
+ OGeom = GEOSBuffer(IGeom, da, 12);
#endif
if (!OGeom) {
- G_fatal_error(_("Buffering failed"));
+ G_fatal_error(_("Buffering failed (feature %d)"), id);
}
geom2ring(OGeom, Out, Buf, si, Cats, arr_bc, buffers_count, arr_bc_alloc);
More information about the grass-commit
mailing list