Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/buildings.py @ 2861:b0132e1b9719
Added further shape importers and added the option to reproject shapes during the import process.
flys-backend/trunk@4342 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 03 May 2012 14:19:52 +0000 |
parents | bd9e76e0b55d |
children | 59ca5dab2782 |
comparison
equal
deleted
inserted
replaced
2860:2f874d14ac68 | 2861:b0132e1b9719 |
---|---|
32 newFeat.SetField("river_id", feat.GetField("river_id")) | 32 newFeat.SetField("river_id", feat.GetField("river_id")) |
33 else: | 33 else: |
34 newFeat.SetField("river_id", self.river_id) | 34 newFeat.SetField("river_id", self.river_id) |
35 | 35 |
36 if self.IsFieldSet(feat, "Name"): | 36 if self.IsFieldSet(feat, "Name"): |
37 name = feat.GetField("Name") | 37 newFeat.SetField("name", feat.GetField("Name")) |
38 print "Building name '%s'" % name | 38 elif self.IsFieldSet(feat, "KWNAAM"): |
39 newFeat.SetField("name", name) | 39 newFeat.SetField("name", feat.GetField("KWNAAM")) |
40 | 40 |
41 return newFeat | 41 return newFeat |
42 | 42 |