LayerMapping unique makes duplicate model entries

13 views
Skip to first unread message

Josh Levinger

unread,
Nov 23, 2009, 5:49:40 PM11/23/09
to geodjango
I'm trying to import several shapefiles into geodjango using the
layermapping utility. These files all refer to various characteristics
of the same places (name, boundary, built up area, type, population,
etc) and so I'd like to merge the unique information from each
shapefile into the same model instance in different fields. I've tried
doing several layermapping steps, one per shapefile, with the unique
key set to the name field. However, I still end up with duplicated
model instances, one from each layermapping. Is there a way to do this
merge with layermapping, or should I turn something else more powerful
(ogr2ogr, or shp2pgsql)?
Reply all
Reply to author
Forward
0 new messages