Changeset 39545


Ignore:
Timestamp:
Oct 17, 2009, 7:54:16 AM (15 years ago)
Author:
mmetz
Message:

always close sidx file if exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/lib/vector/Vlib/close.c

    r39533 r39545  
    106106    else {
    107107        /* spatial index must also be closed when opened with topo but not modified */
    108         if (Map->format == GV_FORMAT_NATIVE &&
    109             Map->plus.Spidx_built == 1 &&
    110             Map->plus.built == GV_BUILD_ALL)
    111             Vect_save_sidx(Map);
     108        /* NOTE: also close sidx for GV_FORMAT_OGR if not direct OGR access */
     109        if (Map->plus.Spidx_built == 1 && Map->plus.built == GV_BUILD_ALL)
     110            if (strcasecmp(Map->mapset, "ogr") != 0)
     111                Vect_save_sidx(Map);
    112112    }
    113113
Note: See TracChangeset for help on using the changeset viewer.