Skip to content

Commit

Permalink
make types and location names more clean
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Sep 7, 2017
1 parent 30b46a4 commit abbaf1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions procedures2istsos.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def insert_procedures(url, service, procedurePath, deviceType, geometryIndex,
if 'templogstasjoner' in root or 'Templogstasjoner' in root:
locationName = root.split(os.sep)[-2].split(' ')[-1]
else:
locationName = root.split(os.sep)[-2].split(' ')
locationName = root.split(os.sep)[-2].split(' ')[2:]
locationName = '-'.join(locationName)

if deviceType == 'templogger':
Expand Down Expand Up @@ -184,7 +184,7 @@ def get_location(locationName, procedure, geometryIndex):
procedure = istsosdat.standardize_norwegian(procedure)

with open(geometryIndex, 'r') as geometry:
z = 0
z = '0'
for line in geometry.readlines():
lineFeatures = line.split(',')
lineFeatures.append('0')
Expand Down

0 comments on commit abbaf1b

Please sign in to comment.