Leaflet/Leaflet.Editable

Polygon last point

morfair opened this issue · 0 comments

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?