3
votes
Accepted
How to check if FlatGeobuf layer has a spatial index?
I don't think it's possible with ogrinfo but you can use the GDAL python API to check using osgeo.ogr.Layer.TestCapability. The capability to test is OLCFastSpatialFilter.
E.g.
from osgeo import ogr
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ogr × 1108gdal × 515
python × 444
shapefile × 165
qgis × 121
ogr2ogr × 115
coordinate-system × 83
postgis × 63
osgeo × 43
sql × 39
geometry × 39
pyqgis × 36
polygon × 33
file-geodatabase × 33
geojson × 32
shapely × 30
geopackage × 28
openstreetmap × 26
postgresql × 25
raster × 24
vector × 24
c++ × 24
sqlite × 23
fiona × 22
python-2.7 × 20