I am currently working on a project that involves storing polygons in a GeoDjango field. I am using Google Maps to draw the polygons, but I am encountering an error when I try to save them. The error message is
django.contrib.gis.geos.error.GEOSException: Error encountered checking Geometry returned from GEOS C function "GEOSWKTReader_read_r
Specifically, I am able to save polygons in this format:
'POLYGON ((66.98106581568717 30.179605233947377,66.97718849521253 30.176396998548686,66.98106581568717 30.179605233947377))',
but I am unable to save polygons in this format:
'POLYGON((66.98707396388053 30.176192128250534,66.98281566332209 30.17265923177731,66.9889954728924 30.17028474252859))'.
How can I modify the format of the polygon so that it can be saved in the GeoDjango field without encountering the error message?