[GRASS5] Re: [GRASS-CVS] eric: grass/src/mapdev/v.out.shape extract.c,1.8,1.9
Markus Neteler
neteler at itc.it
Fri Oct 4 03:58:52 EDT 2002
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 at intevation.de wrote:
> Author: eric
>
> Update of /grassrepository/grass/src/mapdev/v.out.shape
> In directory doto:/tmp/cvs-serv1516
>
> Modified 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 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-commit
More information about the grass-dev
mailing list