Hi Thomas,
I can't think of a particular reason for not providing it. Option added
in https://github.com/OSGeo/gdal/pull/10675
Even
Le 29/08/2024 à 00:02, Thomas Gratier via gdal-dev a écrit :
Hi,
I needed to generate bbox at feature level in GeoJSONSeq when creating
the output. I was surprised to not found the option in the driver
https://gdal.org/en/latest/drivers/vector/geojsonseq.html#layer-creation-options
whereas it's available for GeoJSON
https://gdal.org/en/latest/drivers/vector/geojson.html#layer-creation-options
What is the origin of the choice or maybe non-choice? I can always go
from GeoJSON without bbox to GeoJSON with bbox then to GeoJSONSeq but
not sure it's the best way or if there is another way I did not find.
My option so far (combining with jq) is the following
ogr2ogr -f GeoJSON -lco WRITE_BBOX=YES /vsistdout/ poly_nobbox.geojson
| jq -r -c .features[] >| poly_with_box.geojsonl
Regards,
Thomas Gratier
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
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