Replies: 2 comments
-
I have a similar issue, it seems like Here's an example with const geoData = {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [125.6, 10.1]
},
"properties": {
"name": "Dinagat Islands"
}
}
const fileName = 'geodata.json';
await db.registerFileText(
fileName,
JSON.stringify(geoData)
);
const c = await db.connect();
await c.query("INSTALL spatial; LOAD spatial;");
const rez = await c.query(
`SELECT * FROM ST_Read('${fileName}');`
); which outputs
Running [email protected] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Since I am not alone with this problem, I created an issue: #1793 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
You have great examples showing how to load data from a File handle here: https://duckdb.org/docs/api/wasm/data_ingestion
But this doesn't seem to work with the spatial extension. Here's what I tried to do:
But I get this error:
Any idea what I am doing wrong?
Thank you! 🙏
Beta Was this translation helpful? Give feedback.
All reactions