Store and edit geospatial data with PostGIS in a Strapi v5 custom field.
Strapi and geospatial data always had a difficult relationship, since from the early start till the latest version #5 of Strapi, it has not been supported by default. Leaves us with no other choice than, if we need to store geometries, we had to look for alternatives, or create something from scratch with an Express server or similar. But Strapi is just too awesome to be replaced, so therefore we created the plugin “Geometry Fields”.
This custom field can be used like any other data field in a collection type, except that this one stores geometries like points, linestrings and polygons placed on the surface of the earth in a PostgreSQL database to be retrieved as quickly as possible!
How it works:
I suppose you already know what Geometry Fields is about, so let’s open the hood and look at the bells and whistles: