Skip to content

Commit

Permalink
FileGDB: generate layer definition XML with HasSpatialIndex=true to b…
Browse files Browse the repository at this point in the history
…etter reflect reality. Not sure if this flag is really used
  • Loading branch information
rouault committed Jul 12, 2020
1 parent fe9866c commit 2c84bfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gdal/ogr/ogrsf_frmts/filegdb/FGdbLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2487,8 +2487,7 @@ bool FGdbLayer::Create(FGdbDataSource* pParentDataSource,
CPLCreateXMLElementAndValue(defn_xml,"HasM", (has_m ? "true" : "false"));
CPLCreateXMLElementAndValue(defn_xml,"HasZ", (has_z ? "true" : "false"));

/* TODO: Handle spatial indexes (layer creation option?) */
CPLCreateXMLElementAndValue(defn_xml,"HasSpatialIndex", "false");
CPLCreateXMLElementAndValue(defn_xml,"HasSpatialIndex", "true");

/* These field are required for Arcmap to display aliases correctly */
CPLCreateXMLNode(defn_xml, CXT_Element, "AreaFieldName");
Expand Down

0 comments on commit 2c84bfd

Please sign in to comment.