Browse Source

added contrib_type to the geojson

Jocelyn Delande 10 years ago
parent
commit
0fa2caca16
1 changed files with 2 additions and 1 deletions
  1. 2 1
      backend.py

+ 2 - 1
backend.py

@@ -311,6 +311,7 @@ def build_geojson():
                     'orientations' : orientations,
                     'angles' : angles,
                     'roof' : row['roof'],
+                    'contrib_type' : row['contrib_type']
                 },
                 "comment" : row['comment']
              }
@@ -328,7 +329,7 @@ def build_geojson():
                  "coordinates": [row['longitude'], row['latitude']],
             },
              "id" : row['id'],
-             "properties": {}
+             "properties": {'contrib_type': row['contrib_type']}
         }
 
         # Add optionnal variables