[GRASS-dev] vector large file support
Markus Metz
markus.metz.giswork at googlemail.com
Wed Feb 18 04:36:29 EST 2009
Sorry for the cut'n paste error.
Markus Metz wrote:
> [...]
>
> compatibility wrapper:
> int RTreeDeleteRect(struct Rect *R, int Tid, struct Node **Root, int
> Level)
> {
> assert(level == 0); /* I like that, external callers should never ever
> delete an internal rectangle */
> return RTreeDeleteRect1(R, (struct Node *) Tid, Root, Level);
> }
must be
compatibility wrapper:
int RTreeDeleteRect(struct Rect *R, int Tid, struct Node **Nn)
{
return RTreeDeleteRect1(R, (struct Node *) Tid, Nn);
}
The rectangle is deleted only when found on level == 0,
RTreeDeleteRect2() takes care of that. But I do like your assert(Level
== 0) in the compatibility wrapper for RTreeInsertRect().
It seems to work, at least I got past the segfault when breaking
polygons, but I still have to check spatial index dumps.
Thanks for your help, Glynn!
More information about the grass-dev
mailing list