Mercurial > dive4elements > river
changeset 5302:71a24278322c
fixed import of fixpoints and hydraulic boundaries (made by A. Heinecke)
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Thu, 14 Mar 2013 15:31:29 +0100 |
parents | 7d29c277000e |
children | 08b3109c637b |
files | flys-backend/contrib/shpimporter/boundaries.py flys-backend/contrib/shpimporter/fixpoints.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/boundaries.py Thu Mar 14 15:01:36 2013 +0100 +++ b/flys-backend/contrib/shpimporter/boundaries.py Thu Mar 14 15:31:29 2013 +0100 @@ -112,5 +112,5 @@ else: newFeat.SetField("river_id", self.river_id) - return newFeat + return utils.convertToMultiPolygon(newFeat)
--- a/flys-backend/contrib/shpimporter/fixpoints.py Thu Mar 14 15:01:36 2013 +0100 +++ b/flys-backend/contrib/shpimporter/fixpoints.py Thu Mar 14 15:31:29 2013 +0100 @@ -52,6 +52,7 @@ elif self.IsFieldSet(feat, "ELBE_KM"): newFeat.SetField("km", feat.GetFieldAsDouble("ELBE_KM")) else: + global fixpoints_no_km_logged if not fixpoints_no_km_logged: logger.error("Could not find KM attribute") fixpoints_no_km_logged = True