You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so based on my understanding of the GeoJSONSeq in st_read function it should be able to read spatial objects from raw string. However I recently tested it on duckdb-wasm version and it cannot parse it
simply to check it run this query in shell.duckdb.org
INSTALL spatial;
LOAD spatial;
SELECT * FROM
st_read('{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[102,0.5]},"properties":{"prop0":"value0"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[102,0],[103,1],[104,0],[105,1]]},"properties":{"prop0":"value0","prop1":0}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[100,0],[101,0],[101,1],[100,1],[100,0]]]},"properties":{"prop0":"value0"}}]}');
you will get the following error
IO Error: GDAL Error (4): `{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[102,0.5]},"properties":{"prop0":"value0"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[102,0],[103,1],[104,0],[105,1]]},"properties":{"prop0":"value0","prop1":0}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[100,0],[101,0],[101,1],[100,1],[100,0]]]},"properties":{"prop0":"value0","prop1":{"this":"that"}}}]}' not recognized as a supported file format.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
so based on my understanding of the
GeoJSONSeq
inst_read
function it should be able to read spatial objects from raw string. However I recently tested it onduckdb-wasm
version and it cannot parse itsimply to check it run this query in
shell.duckdb.org
you will get the following error
Beta Was this translation helpful? Give feedback.
All reactions