In my project I need to import *shapefiles* and same some geometry. Some of these are *MULTIPOLYGON Z* type, but all Z coordinates are 0-value.
When I try to save the geometry, I get the error: *"Geometry has Z dimension but column does not".* *What is the best way to strip the Z dimension?* My code: *ds = DataSource(file_path, encoding='ISO-8859-1')layers = ds[0]* *#need something HERE to coerce geometry to 2D* *obj=MyModel(geometry=GEOSGeometry(layers[0].geom.hex))* *obj.save()* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9aedcb2-6f82-4098-9aa5-c1f573ff3209%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

