[gdal-dev] Where to find a FlatGeobuf test file?

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Fri Dec 6 05:23:09 PST 2024


Hi,

All right, TestCapability(ogr.OLCFastSpatialFilter) is the answer gdal - How to check if FlatGeobuf layer has a spatial index? - Geographic Information Systems Stack Exchange<https://gis.stackexchange.com/questions/488511/how-to-check-if-flatgeobuf-layer-has-a-spatial-index>.

-Jukka Rahkonen-



Lähettäjä: Rahkonen Jukka
Lähetetty: perjantai 6. joulukuuta 2024 15.12
Vastaanottaja: Even Rouault <even.rouault at spatialys.com>; 'gdal-dev at lists.osgeo.org' (gdal-dev at lists.osgeo.org) <gdal-dev at lists.osgeo.org>
Aihe: Re: [gdal-dev] Where to find a FlatGeobuf test file?

Hi,

Has there been a change in writing the layer extent?
I thought that the test https://github.com/OSGeo/gdal/blob/e4d1f7ff474ceeffd69b1ceef3fa635428788e8c/autotest/ogr/ogr_flatgeobuf.py#L182 is testing with TestCapability(ogr.OLCFastGetExtent) if spatial index exists. At least the test file  data/testfgb/poly_no_index.fgb shows false for this capability.

I am not really interested in the layer extent, what I want to know is how can I check if an existing FlatGeobuf file has spatial index or not.

-Jukka-

Lähettäjä: Even Rouault <even.rouault at spatialys.com<mailto:even.rouault at spatialys.com>>
Lähetetty: perjantai 6. joulukuuta 2024 12.37
Vastaanottaja: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>; 'gdal-dev at lists.osgeo.org' (gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>) <gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>>
Aihe: Re: [gdal-dev] Where to find a FlatGeobuf test file?


Hi Jukka,
Le 06/12/2024 à 11:13, Rahkonen Jukka a écrit :
Next question: Why this gives true for me?

OLCFastGetExtent != OLCFastSpatialFilter

The layer extent is written in the FlatGeoBuf layer even in the SPATIAL_INDEX=NO case, so retrieving the extent is fast.

Even



--

http://www.spatialys.com<http://www.spatialys.com/>

My software is free, but my time generally not.

Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241206/67d4d64a/attachment.htm>


More information about the gdal-dev mailing list