Re: GeoDjango: MultiPolygon and Polygon

2008-09-19 Thread springmeyer
Alfonso, Yes, polygon data stored as multipolygons will play nice at the database level. This is a common approach with shapefiles imported into Postgres/Postgis that contain both single and multi geometries. You therefore just assume they are all multipolygons (ie like shp2pgsql). You just need

GeoDjango: MultiPolygon and Polygon

2008-09-18 Thread Alfonso
I've got a nice chunk of shapefile data to import into a GeoDjango DB via LayerMapping and have discovered only one of the entries is a MultiPolygon shape - the rest Polygon. My question is this... if I change the model definition for the corresponding polygon field from PolygonField to