Changes between Initial Version and Version 3 of Ticket #8881
- Timestamp:
- Sep 7, 2008, 1:07:49 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8881
- Property Keywords gis layermapping added
- Property Owner changed from to
-
Ticket #8881 – Description
initial v3 1 If my models have a two o more fields of type geometry: 1 If my models have two or more geometry fields: 2 {{{ 2 3 class Lugares(models.Model) : 3 4 nombre = models.CharField(max_length=80) … … 7 8 8 9 10 lm=LayerMapping(Lugares,'/home/woakas/nuevo.shp', mapping,unique={'poligono':'POLYGON','tipolugar':'Ciudad'}) 9 11 10 lm=LayerMapping(Lugares,'/home/woakas/nuevo.shp', mapping,unique={'poligono':'POLYGON','tipolugar':'Ciudad'}) 11 --------------------------------------------------------------------------- 12 }}} 13 14 {{{ 12 15 LayerMapError Traceback (most recent call last) 13 16 … … 30 33 LayerMapError: Geometry column does not exist for model. (did you run syncdb?): 31 34 get() returned more than one GeometryColumns -- it returned 2! Lookup parameters were {'f_table_name': 'migtrace_lugares'} 32 33 35 }}}