Closed cornerot closed 9 months ago
Hi ! Which database are you using ? Does it work when passing the json object as a string ('{"type":"LineString","coordinates":[[2.2945,48.8584],[2.3498,48.8530]]} as geojson
) ?
I don't use a database. Just created the sql file from the tutorial. The error is the same as with
JSON('{"type":"LineString","coordinates":[[2.2945,48.8584],[2.3498,48.8530]]}') as geojson
or
'{"type":"LineString","coordinates":[[2.2945,48.8584],[2.3498,48.8530]]}' as geojson
Thank you for the precision. SQLPage is always connected to a database, but if you haven't explicitly configured any database connection, then you are using the default embedded SQLite database.
The bug only happens with databases that do not have native json objects. I can reproduce it locally; I'll fix it and release a new version shortly. Thanks for the report !
v0.15.2 was just released with the fix : https://github.com/lovasoa/SQLpage/releases/tag/v0.15.2
Hi!
I get "Invalid GeoJSON object" error when running the map example from the tutorial:![2023-11-10T18:29:08,833894328+03:00](https://github.com/lovasoa/SQLpage/assets/2393801/76a12779-a47d-4515-97e9-2e85504ba883)
cat map.sql