-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json - geojson interoperativity #28
Comments
I hope you do not expect me to go through your query :). If I understand correctly then this may explain it:
https://sqlite.org/json1.html#jobj If so, then it may be a topic for spatialite/sqlite to solve/explain. Bonne chance, Jan |
I appologize for seeing your answer that late. It's all about an advantage in your get api endpoint, that autoconverts json text to js objects: Could the same autodetection happen in other spl functions too? n.b. All my best wishes, mon cher ami. |
Yes, but when you nest |
I see we enter uncharted land. It could be simpler to patch the json* functions in the spl.js distribution. This could be a start point to my next wish. n.b. I took the challenge of defining a stored procedure with the tools in spl.js, but I still think real language can be better. |
Patching SQLite or SpatiaLite sources is not something I'd like to do. But a |
I will have some time these days, and would happily try. |
The only thing you need is emsdk: https://emscripten.org/docs/getting_started/downloads.html |
I started the process based on sqlite wasm instructions and it appeared to
get built, but older debian stable emscripten failed.
spl.js make naturally took more time, while downloading libraries for
spatialite, and failed when cmake was missing. As it was late, I stopped
the build and will resume today.
Please document the need of cmake and the emscripten sdk you mentioned
before. I will first try with the latest installed as per the sqlite wasm
instructions.
alex
…On Wed, May 1, 2024, 08:47 Jan Vaillant ***@***.***> wrote:
I'd kindly ask you for some initiation
The only thing you need is emsdk:
https://emscripten.org/docs/getting_started/downloads.html
For building please take a look at the README. You may need to
activate/install the specific emsdk version mentioned there if you get
emscripten errors. I am not sure if it build with the most recent emsdk
version.
—
Reply to this email directly, view it on GitHub
<#28 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABER7ANWKFLVOMURJURYIW3ZAB6WHAVCNFSM6AAAAABFVR5SDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGAYTINJVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
the build eventually broke in libxml2 configure:
Checking zlib
./configure: line 13932: syntax error near unexpected token `Z,zlib,'
./configure: line 13932: ` PKG_CHECK_MODULES(Z,zlib,'
emconfigure: error: './configure
--prefix=/home/alex/wasm/spl.js/src/build/bc --host=none-none-none
--without-python --disable-shared --with-zlib CPPFLAGS=-DDEBUG_HTTP
"Z_LIBS=-L/home/alex/wasm/spl.js/src/build/bc/lib -lz"
Z_CFLAGS=-I/home/alex/wasm/spl.js/src/build/bc/include' failed (returned 2)
make: *** [Makefile:138: xml2-conf] Error 1
have you encountered this?
…On Wed, May 1, 2024 at 8:47 AM Jan Vaillant ***@***.***> wrote:
I'd kindly ask you for some initiation
The only thing you need is emsdk:
https://emscripten.org/docs/getting_started/downloads.html
For building please take a look at the README. You may need to
activate/install the specific emsdk version mentioned there if you get
emscripten errors. I am not sure if it build with the most recent emsdk
version.
—
Reply to this email directly, view it on GitHub
<#28 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABER7ANWKFLVOMURJURYIW3ZAB6WHAVCNFSM6AAAAABFVR5SDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGAYTINJVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
--
alex
|
I have no idea about Chromebook but a quick search for your error hints to missing autotools library. Maybe you can install the equivalent of build-essentials and autotools on your OS? https://packages.debian.org/bookworm/autotools-dev |
sorry for the late reply.
i do (and did) have these packages installed.
alex
…On Wed, May 1, 2024, 15:13 Jan Vaillant ***@***.***> wrote:
I have no idea about Chromebook but a quick search for your error hints to
missing autotools library. Maybe you can install the equivalent of
build-essentials and autotools on your OS?
https://packages.debian.org/bookworm/autotools-dev
https://packages.debian.org/bookworm/build-essential
—
Reply to this email directly, view it on GitHub
<#28 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABER7AK7WEMPS4U4FTRHPXLZADMABAVCNFSM6AAAAABFVR5SDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYGM4DEMBQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
You could try to comment out the xml2 build in the Makefile. It is not required for spl.js and I use it only for tests. However it would be good to find the problem. I have never had such an issue. |
hello jan,
i pushed the build just a little bit forward, and i'll push my patches and
PR.
however, i'm stuck again at "configure: error: 'libsqlite3' is required but
it doesn't seem to be installed on this system."
it happens despite i have libsqlite3-dev installed, and also sqlite got
built in the process.
if you have a solution, i'll be glad to try it!
bon chance mon ami,
alex
…On Thu, May 2, 2024 at 7:33 PM Jan Vaillant ***@***.***> wrote:
You could try to comment out the xml2 build in the Makefile. It is not
required for spl.js and I use it only for tests. However it would be good
to find the problem. I have never had such an issue.
—
Reply to this email directly, view it on GitHub
<#28 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABER7AIIHFUB5J3AYM2ZAMTZAJTDXAVCNFSM6AAAAABFVR5SDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQHE4TOOJYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
--
alex
|
Salut, I can only guess that it is looking for the library inside the path I supply for the emsdk builds and can not find it there - not on your system but here: |
hello cher ami,
j'espere que tu vas bien.
i'm very happy to experience gis in the privacy of my computer.
there is a challenge for you, in my following query.
as geojson is, in fact, json, it seems counter intuitive to need to be casted to json i order to be used in json_object.
the query will run as is, but it needs the following cacophony, which you may solve: json(asgeojson(makepolygon(makeline(point)))).
my kind regards,
alex
The text was updated successfully, but these errors were encountered: