Parcourir la source

added contrib_type to the geojson

Jocelyn Delande il y a 10 ans
Parent
commit
0fa2caca16
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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