Open luckyguido opened 2 years ago
@luckyguido Thanks for testing the plugin. Can you tell me what version is your postgis? It should be printed in the strapi logs as something like:
[2022-07-07 21:59:28.349] info: Welcome to Strapi Postgis ๐ + ๐ + ๐บ๏ธ | 3.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
Also can you please share list of installed plugins on your strapi? There might be a conflict there.
Postgis 3.0, this is the startup Log:
Welcome to Strapi Postgis ๐ + ๐ + ๐บ๏ธ | 3.0 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
It is a fresh installation of Strapi no other plugin installed (except the default one)
Doing some other test i inserted with a raw query a geometry with a point and then moved through your GUI and this worked fine, only the creation of a new point geometry seems to fail, i want to make a couple of other test:
thak you for your support
I can confirm is postgis 3.0 compatibility issues, it works fine with versions 3.1 and 3.2
@luckyguido thanks for the tests. I am using https://github.com/jfgodoy/knex-postgis
as underlying package to communicate with postgis. I will try to find out a solution for it.
Hi, im using postgis 3.1. but im getting same error. "invalid geometry".
schema.json
"geometry": {
"columnType": {
"type": "specificType",
"args": [
"geometry(POINT,4326)"
]
},
"type": "json",
"fieldRenderer": "postgis"
}
Post Request
{
"data": {
"polygon": {
"type":"Point","coordinates":[-115.224609,64.125789]
}
}
}
Result:
error: insert into "public"."deeds" ("geometry", "published_at", "updated_at") values ($1, $2, $3) returning "id" - parse error - invalid geometry
Hi, I'm testing this plugin but when i try to save any point in the map i get an API error of invalid geometry.
strapi version: 4.2.2 (node v16.15.1) plugin version: 0.1.5
GeoJSON generated by your plugin is :
my schema .json has this attributes:
and error reported is: