try:
properties['strokeWidth'] = int(feature.attrib['dicke']) # e.g. 6
except ValueError:
try:
properties['strokeWidth'] = int(feature.attrib['dicke']) # e.g. 6
except ValueError:
- raise RuntimeError('The attribute "farbe" has to be an integer.')
+ raise RuntimeError('The attribute "dicke" has to be an integer.')
json_features.append({
'type': 'feature',
'geometry': {'type': 'LineString', 'coordinates': parse_wrmap_coordinates(feature.text)},
json_features.append({
'type': 'feature',
'geometry': {'type': 'LineString', 'coordinates': parse_wrmap_coordinates(feature.text)},