Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
553 stars 198 forks source link

Polygon last point #203

Open morfair opened 3 years ago

morfair commented 3 years ago

I draw polygon and send the coordinates to the server. There I want to save in PostgreSQL DB as PostGIS geography , but it throws an error:

geometry contains non-closed rings

Where this error? Either Leaflet.Editable does not return the last point as the first point, or this PostGis specific and I should manually add first point to end before sending request?