[gdal-dev] Where to find a FlatGeobuf test file?
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Fri Dec 6 02:13:50 PST 2024
Next question: Why this gives true for me?
Create test data
ogr2ogr -f flatgeobuf test.fgb -lco SPATIAL_INDEX=NO kiinteistorekisterikartta.gpkg PalstanSijaintitiedot
Python:
from osgeo import ogr
fgb_ds = ogr.Open("test.fgb")
fgb_lyr = fgb_ds.GetLayer(0)
fgb_lyr.TestCapability(ogr.OLCFastGetExtent)
True
-Jukka-
Lähettäjä: Even Rouault <even.rouault at spatialys.com>
Lähetetty: torstai 5. joulukuuta 2024 17.35
Vastaanottaja: Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi>; '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?
Jukka,
in autotest/ relative file paths are relative to where the .py file is located, so here the test file is at https://github.com/OSGeo/gdal/tree/master/autotest/ogr/data/testfgb
Even
Le 05/12/2024 à 15:55, Rahkonen Jukka via gdal-dev a écrit :
Hi,
There is a FlatGeobuf test in here https://github.com/OSGeo/gdal/blob/436ae05694cf52526ef606853828b5ec9300d50d/autotest/ogr/ogr_flatgeobuf.py#L182
but I cannot find the file "data/testfgb/poly_no_index.fgb" anywhere. Is it created on-the-fly or what?
-Jukka Rahkonen-
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
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/71573340/attachment.htm>
More information about the gdal-dev
mailing list