duckdb_spatial
duckdb_spatial copied to clipboard
Big geojson
Hi!
I am trying to open a large and complex GeoJSON. I get an error message suggesting that I should use the OGR_GEOJSON_MAX_OBJ_SIZE option.
CREATE OR REPLACE TABLE urban AS SELECT * FROM ST_Read('./data/Urban.json',open_options=['OGR_GEOJSON_MAX_OBJ_SIZE=0']);
But when I do, nothing seems to change.
Is this option implemented?
Thank you!
I just ran into the same issue. My understanding is that your solution does not work because OGR_GEOJSON_MAX_OBJ_SIZE is not an "open option" but rather a "configuration option" which DuckDB does not support.
I have yet to find a work around. In the meantime, you can check this out: GDAL GeoJson Driver
Thank you, @justsparsh ! We'll see if it gets implemented at some point.