Hi Eric,
thanks for fixing the memory corruption bug: now commands like
v.out.shape areamap type=area
do no longer crash. But...
If the map contains islands, they are still filled by the surrounding
area.
If ever possible, maybe somebody could look into that (or I
am missing something, probably islands in SHAPE are a problem?
Note that I checked the SHAPE file with Arcexplorer for Linux,
maybe the problem is there).
Thanks again,
Markus
On Fri, Oct 04, 2002 at 07:34:05AM +0200, grass@intevation.de wrote:
Author: eric
Update of /grassrepository/grass/src/mapdev/v.out.shape
In directory doto:/tmp/cvs-serv1516Modified Files:
extract.c
Log Message:
Fix memory corruption bug with areas w/ islands.Index: extract.c
RCS file: /grassrepository/grass/src/mapdev/v.out.shape/extract.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- extract.c 13 Apr 2002 14:15:18 -0000 1.8
+++ extract.c 4 Oct 2002 05:34:03 -0000 1.9
@@ -172,7 +172,6 @@
lfp = stdout;
}- Area = (P_AREA *)malloc( sizeof(P_AREA) );
Points = Vect_new_line_struct();
Points->alloc_points = 0;
Points->n_points = 0;
@@ -213,9 +212,6 @@
listY[i] = Points->y[i];
}- free(Points->x);
- free(Points->y);
-
totalvertices = numvertices;/* Determine the rings of the isles */
@@ -246,14 +242,9 @@
listX[k] = Points->x[k1];
listY[k] = Points->y[k1++];
}
-
- free(Points->x);
- free(Points->y);
}- /*free(Area);
Vect_destroy_line_struct(Points);
- *//* Log vertex lists */
/*_______________________________________________
grass-commit mailing list
grass-commit@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-commit