# HG changeset patch # User Ingo Weinzierl # Date 1336629677 0 # Node ID 6442b30d80ecbc8bfb16c6da385867fcaee2ab55 # Parent 77e849c0d248a4f8bc146933456878bac44a2e49 The python crosssectiontrack importer now also searches for 'STATION' field to extract the current km. flys-backend/trunk@4373 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 77e849c0d248 -r 6442b30d80ec flys-backend/ChangeLog --- a/flys-backend/ChangeLog Tue May 08 13:55:25 2012 +0000 +++ b/flys-backend/ChangeLog Thu May 10 06:01:17 2012 +0000 @@ -1,3 +1,8 @@ +2012-05-10 Ingo Weinzierl + + * contrib/shpimporter/crosssectiontracks.py: Search for 'STATION' field in + shapefile to extract the current km. + 2012-05-08 Ingo Weinzierl * src/main/java/de/intevation/flys/model/Hws.java: The getHws() function diff -r 77e849c0d248 -r 6442b30d80ec flys-backend/contrib/shpimporter/crosssectiontracks.py --- a/flys-backend/contrib/shpimporter/crosssectiontracks.py Tue May 08 13:55:25 2012 +0000 +++ b/flys-backend/contrib/shpimporter/crosssectiontracks.py Thu May 10 06:01:17 2012 +0000 @@ -38,6 +38,8 @@ newFeat.SetField("km", feat.GetFieldAsDouble("KILOMETER")) elif self.IsFieldSet(feat, "KM"): newFeat.SetField("km", feat.GetFieldAsDouble("KM")) + elif self.IsFieldSet(feat, "STATION"): + newFeat.SetField("km", feat.GetFieldAsDouble("STATION")) else: return None