Skip to content

Commit

Permalink
FlatGeobuf: advertize OLCFastSpatialFilter only if index is present
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Feb 28, 2020
1 parent 47e7bd0 commit 39940c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdal/ogr/ogrsf_frmts/flatgeobuf/ogrflatgeobuflayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ int OGRFlatGeobufLayer::TestCapability(const char *pszCap)
else if (EQUAL(pszCap, OLCFastGetExtent))
return m_sExtent.IsInit();
else if (EQUAL(pszCap, OLCFastSpatialFilter))
return true;
return m_poHeader != nullptr && m_poHeader->index_node_size() > 0;
else if (EQUAL(pszCap, OLCStringsAsUTF8))
return true;
else
Expand Down

0 comments on commit 39940c7

Please sign in to comment.