am2222 / strapi-plugin-postgis

Add native postgis support to strapi.
https://am2222.github.io/strapi-plugin-postgis/
41 stars 15 forks source link

Add polygon as a component instead of a collection type #9

Open skwaugh opened 1 year ago

skwaugh commented 1 year ago

Is this possible at the moment? I'd like to create a Polygon (or point etc) component that can be reused.

The docs are specific about adding GIS support to Collection Types, but I wanted to double-check.

If not, do you have any documentation explaining why this is not possible and/or point me in the direction of adding this functionality myself?

Thanks

am2222 commented 1 year ago

@skwaugh Hi, I haven't looked into how a component is being saved. But technically if they save it as a json object we can store your polygon or point as a geojson object. However, we cannot use postgis functions on that. Which is a problem.

I will try to push an update after May and will check this issue then!