I don’t believe these are huge features, its OSM building for the world. Must be the memory constraint since it is a lot of features. This doesn’t happen (i think, am retesting now) if created from the osm pbf file directly but does from the fgb created from the pbf.
Do either of the columnar formats (arrow, geoparquet) support spatial access window selections yet (via ogr2ogr) or is that still forthcoming?
Mike
Michael Smith Remote Sensing / GIS Center On Nov 24, 2022, at 1:12 PM, Even Rouault <even.roua...@spatialys.com> wrote:
Mike,
Basically, can one create a spatial index in
a flatgeobuf file if the source does not have one?
yes, through ogr2ogr by creating a new file, as you did
Also, when trying to just create a new
flatgeobuf with a spatial index from one without (using
ogr2ogr), I get a lot of
ERROR 2: ICreateFeature: Too big feature
It could be either a huuuuge feature whose serialized form
exceeds 2GB (unlikely, and even more if you convert from an
existing flatgeobuf file which enforces this limit). Or that you
have lots of features and a modest amount of RAM. The creation of
the spatial index requires an amount of RAM proportional to the
number of features (maybe 80 bytes or so per feature). In this
later case, the error message is misleading currently. I've just
changed it to "ICreateFeature: Memory allocation failure" in
master.
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
|
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev