diff --git a/buildings_map_colored.html b/buildings_map_colored.html new file mode 100644 index 00000000..2988c963 --- /dev/null +++ b/buildings_map_colored.html @@ -0,0 +1,578 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/energy_system_modelling_package/energy_system_modelling_factories/pv_assessment/pv_system_assessment.py b/energy_system_modelling_package/energy_system_modelling_factories/pv_assessment/pv_system_assessment.py index ce209581..fd5419ca 100644 --- a/energy_system_modelling_package/energy_system_modelling_factories/pv_assessment/pv_system_assessment.py +++ b/energy_system_modelling_package/energy_system_modelling_factories/pv_assessment/pv_system_assessment.py @@ -176,7 +176,8 @@ class PvSystemAssessment: 'yearly_total_pv_production_kWh': sum(total_hourly_pv_output) / 1000, 'specific_pv_production_kWh/kWp': sum(rooftop_pv_output) / ( float(self.pv_system.standard_test_condition_maximum_power) * rooftop_number_of_panels), - 'hourly_rooftop_poa_irradiance_W/m2': self.building.roofs[0].global_irradiance_tilted[cte.HOUR], + 'hourly_rooftop_irradiance_W/m2': self.building.roofs[0].global_irradiance[cte.HOUR], + 'hourly_pv_poa_irradiance_W/m2': self.building.roofs[0].global_irradiance_tilted[cte.HOUR], 'hourly_rooftop_pv_output_W': rooftop_pv_output, 'T_out': self.building.external_temperature[cte.HOUR], 'building_electricity_demand_W': electricity_demand, 'total_hourly_pv_system_output_W': total_hourly_pv_output, 'import_from_grid_W': imported_electricity, diff --git a/final_results.py b/final_results.py new file mode 100644 index 00000000..fc0226a7 --- /dev/null +++ b/final_results.py @@ -0,0 +1,93 @@ +import folium +import geopandas as gpd +from pathlib import Path +import json + +# Load the GeoJSON file and ensure the 'id' field is included +geojson_path = Path(__file__).parent / 'input_files' / 'buildings_to_map.geojson' +with open(geojson_path, 'r') as f: + geojson_data = json.load(f) + +# Convert GeoJSON to GeoDataFrame, explicitly adding 'id' as a column +geo_data = gpd.GeoDataFrame.from_features(geojson_data["features"]) +geo_data["id"] = [feature["id"] for feature in geojson_data["features"]] + +# Ensure the GeoDataFrame has a CRS (assuming WGS84 if not already defined) +if geo_data.crs is None: + geo_data.set_crs(epsg=4326, inplace=True) + + +# Function to assign colors based on building function +def get_color(building_function): + color_map = { + "residential": "lightblue", # Changed from blue to lightblue for better text visibility + "secondary school": "green", + "medium office": "red", + "sports location": "orange", # Example for your data + "stand alone retail": "purple" + } + return color_map.get(building_function, "gray") # Default color is gray + + +# Create a style function for the GeoJson layer +def style_function(feature): + building_function = feature["properties"].get("function", "unknown") + return { + "fillColor": get_color(building_function), + "color": "black", # Outline color + "weight": 1, + "fillOpacity": 0.6 + } + + +# Get the centroid coordinates for the map center +centroid = geo_data.geometry.centroid.iloc[0] +center = (centroid.y, centroid.x) # lat, lon + +# Create a Folium map with CartoDB Positron tiles +m = folium.Map(location=center, zoom_start=50, tiles="CartoDB positron") + +# Add the GeoJSON layer with color-coded styles +folium.GeoJson( + geojson_data, + name="Buildings", + style_function=style_function +).add_to(m) + +# Add labels for each building +for _, row in geo_data.iterrows(): + feature_id = row['id'] # Access the 'id' attribute + feature_centroid = row['geometry'].centroid # Get the centroid of the feature + + # Create a rotated label + folium.Marker( + location=(feature_centroid.y, feature_centroid.x), + icon=folium.DivIcon(html=f'
{feature_id}
') + ).add_to(m) + +# Add a legend to the map +legend_html = ''' +
+ Legend
+ Residential
+ Secondary School
+ Medium Office
+ Sports Location
+ Stand Alone Retail
+
+''' +m.get_root().html.add_child(folium.Element(legend_html)) + +# Add a layer control to toggle layers +folium.LayerControl().add_to(m) + +# Save the map as an HTML file +map_output_path = 'buildings_map_colored_with_legend.html' +m.save(map_output_path) + +print(f"Map saved as {map_output_path}") diff --git a/input_files/buildings_to_map.geojson b/input_files/buildings_to_map.geojson new file mode 100644 index 00000000..63431a90 --- /dev/null +++ b/input_files/buildings_to_map.geojson @@ -0,0 +1,1971 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.63060584508622, + 45.53176961264836 + ], + [ + -73.63058657261939, + 45.53180225023445 + ], + [ + -73.63059539331475, + 45.53180474620117 + ], + [ + -73.63040039297884, + 45.5321452465529 + ], + [ + -73.63040009325965, + 45.53214574630548 + ], + [ + -73.63063549262431, + 45.53220294643613 + ], + [ + -73.63063549344213, + 45.53220274667104 + ], + [ + -73.63067229323067, + 45.53219374668722 + ], + [ + -73.63065779260656, + 45.53216454641413 + ], + [ + -73.63109699255251, + 45.5320572467642 + ], + [ + -73.63109209405295, + 45.53190954657213 + ], + [ + -73.63109199290872, + 45.53190954668818 + ], + [ + -73.63060584508622, + 45.53176961264836 + ] + ] + ] + }, + "id": 103235, + "properties": { + "name": "05126259", + "address": "avenue Ball (MTL) 400", + "function": "sports location", + "height": 10, + "year_of_construction": 2004 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.63018579380112, + 45.53230434613477 + ], + [ + -73.63018819239187, + 45.53230014655396 + ], + [ + -73.6302572931312, + 45.53218284580482 + ], + [ + -73.63027719367864, + 45.53218864686601 + ], + [ + -73.63027979326475, + 45.532184446154126 + ], + [ + -73.63028849317978, + 45.53216954660207 + ], + [ + -73.63026879259934, + 45.53216384609669 + ], + [ + -73.63033179236753, + 45.532056546764736 + ], + [ + -73.63035069353764, + 45.532062046607706 + ], + [ + -73.63036019211589, + 45.53204594575377 + ], + [ + -73.63036299318378, + 45.532040846771 + ], + [ + -73.63034699341978, + 45.53203654670358 + ], + [ + -73.63040599309858, + 45.53192864630121 + ], + [ + -73.63042479216523, + 45.53193374672026 + ], + [ + -73.63043209353052, + 45.53192034698479 + ], + [ + -73.63043469344954, + 45.5319157467404 + ], + [ + -73.63041969258992, + 45.53191154722422 + ], + [ + -73.63049679374387, + 45.53177684600561 + ], + [ + -73.63058657261939, + 45.53180225023445 + ], + [ + -73.63060584508622, + 45.53176961264836 + ], + [ + -73.630474992558, + 45.531731946463054 + ], + [ + -73.63047479259772, + 45.531731845909526 + ], + [ + -73.63046269220258, + 45.53175334607798 + ], + [ + -73.63016409268968, + 45.53167064600382 + ], + [ + -73.63011899213006, + 45.5317542465083 + ], + [ + -73.62980739221123, + 45.53167124626595 + ], + [ + -73.62985469248703, + 45.53158364719905 + ], + [ + -73.62981779235982, + 45.53157284698362 + ], + [ + -73.62980929308888, + 45.531587046198844 + ], + [ + -73.62955889298304, + 45.531513546398415 + ], + [ + -73.62955659250507, + 45.53151754699098 + ], + [ + -73.62953649268181, + 45.53155084672118 + ], + [ + -73.62945549180557, + 45.531526846264825 + ], + [ + -73.62948089299533, + 45.53148444586983 + ], + [ + -73.62919079338147, + 45.53139154653844 + ], + [ + -73.62881189193887, + 45.53128904547875 + ], + [ + -73.6286971926851, + 45.531488846277135 + ], + [ + -73.62869489260262, + 45.5314930466161 + ], + [ + -73.6287135930129, + 45.53149824641055 + ], + [ + -73.62870259187936, + 45.53151754684884 + ], + [ + -73.62868839317818, + 45.53151354686524 + ], + [ + -73.62868609263643, + 45.53151754654051 + ], + [ + -73.62856789305934, + 45.53171944596869 + ], + [ + -73.62856539300306, + 45.531723546647854 + ], + [ + -73.6285839927892, + 45.53172894634075 + ], + [ + -73.62852649272779, + 45.53182664624685 + ], + [ + -73.6285322923272, + 45.531828245933305 + ], + [ + -73.63018579380112, + 45.53230434613477 + ] + ] + ] + }, + "id": 123820, + "properties": { + "name": "03082101", + "address": "rue Saint-Roch (MTL) 415", + "function": "secondary school", + "height": 10, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62667799120685, + 45.53158934683715 + ], + [ + -73.62666969192776, + 45.53160344661468 + ], + [ + -73.62777849149147, + 45.5319220467539 + ], + [ + -73.62776869162744, + 45.53193884690511 + ], + [ + -73.62782749233723, + 45.53195574667849 + ], + [ + -73.62790199256328, + 45.53182874644308 + ], + [ + -73.62789969304914, + 45.531828146125896 + ], + [ + -73.62657819097497, + 45.531464647139565 + ], + [ + -73.62655659162637, + 45.53150144568036 + ], + [ + -73.62650289178617, + 45.531485946050644 + ], + [ + -73.62650279064268, + 45.531485946162675 + ], + [ + -73.62634779059971, + 45.531747046636184 + ], + [ + -73.62649109169882, + 45.531788845722375 + ], + [ + -73.62649689168671, + 45.53179064617578 + ], + [ + -73.62662619166629, + 45.531574046722106 + ], + [ + -73.62667799120685, + 45.53158934683715 + ] + ] + ] + }, + "id": 65579, + "properties": { + "name": "05186039", + "address": "rue Saint-Roch (MTL) 412", + "function": "residential", + "height": 12, + "year_of_construction": 2009 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62653127008136, + 45.53112129725997 + ], + [ + -73.62646885910878, + 45.531228438189366 + ], + [ + -73.62657766129188, + 45.53125933872024 + ], + [ + -73.62664286701025, + 45.531148792343195 + ], + [ + -73.62653127008136, + 45.53112129725997 + ] + ] + ] + }, + "id": 65729, + "properties": { + "name": "03078275", + "address": "terrasse Saint-Roch (MTL) 7575", + "function": "residential", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6274297441946, + 45.53133427476224 + ], + [ + -73.62736323249167, + 45.53144703394477 + ], + [ + -73.6273642917802, + 45.531447246925325 + ], + [ + -73.62737069164203, + 45.53143744684459 + ], + [ + -73.6275075910617, + 45.531481446502426 + ], + [ + -73.62750869211919, + 45.53147974637789 + ], + [ + -73.62754044635489, + 45.53148890907962 + ], + [ + -73.62760553184677, + 45.53137856745493 + ], + [ + -73.6274297441946, + 45.53133427476224 + ] + ] + ] + }, + "id": 80038, + "properties": { + "name": "03078291", + "address": "terrasse Saint-Roch (MTL) 7655", + "function": "residential", + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62760553184677, + 45.53137856745493 + ], + [ + -73.62754044635489, + 45.53148890907962 + ], + [ + -73.6277102921388, + 45.531538046676694 + ], + [ + -73.62769879178762, + 45.531557546440624 + ], + [ + -73.62770213686377, + 45.531558521725636 + ], + [ + -73.62778203974688, + 45.53142305613577 + ], + [ + -73.62760553184677, + 45.53137856745493 + ] + ] + ] + }, + "id": 93399, + "properties": { + "name": "03078293", + "address": "terrasse Saint-Roch (MTL) 7665", + "function": "residential", + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62778203974688, + 45.53142305613577 + ], + [ + -73.62770213686377, + 45.531558521725636 + ], + [ + -73.62777509173357, + 45.531579746524756 + ], + [ + -73.62777979213378, + 45.53157144655376 + ], + [ + -73.62780931902587, + 45.53157960565247 + ], + [ + -73.62788617603148, + 45.53144930487308 + ], + [ + -73.62778203974688, + 45.53142305613577 + ] + ] + ] + }, + "id": 93400, + "properties": { + "name": "03078296", + "address": "terrasse Saint-Roch (MTL) 7675", + "function": "residential", + "height": 11, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62790319200322, + 45.531605546413616 + ], + [ + -73.62791312312658, + 45.53160828700013 + ], + [ + -73.62799127190428, + 45.53147579449675 + ], + [ + -73.62788617603148, + 45.53144930487308 + ], + [ + -73.62780931902587, + 45.53157960565247 + ], + [ + -73.62790319200322, + 45.531605546413616 + ] + ] + ] + }, + "id": 93401, + "properties": { + "name": "03078298", + "address": "terrasse Saint-Roch (MTL) 7685", + "function": "residential", + "height": 11, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62697000259865, + 45.53122572624327 + ], + [ + -73.6268988232959, + 45.53134639992811 + ], + [ + -73.62700685109635, + 45.53137092555236 + ], + [ + -73.62707821258952, + 45.53124994475302 + ], + [ + -73.62697000259865, + 45.53122572624327 + ] + ] + ] + }, + "id": 93438, + "properties": { + "name": "03078284", + "address": "terrasse Saint-Roch (MTL) 7605", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62675429841319, + 45.53117607513901 + ], + [ + -73.62668686851191, + 45.531290392570554 + ], + [ + -73.62676909166254, + 45.53131374665054 + ], + [ + -73.62679183379127, + 45.531320112064684 + ], + [ + -73.62686179270051, + 45.5312015076308 + ], + [ + -73.62685169121886, + 45.53119924675589 + ], + [ + -73.62685139169774, + 45.53119984638113 + ], + [ + -73.62675429841319, + 45.53117607513901 + ] + ] + ] + }, + "id": 93446, + "properties": { + "name": "03078279", + "address": "terrasse Saint-Roch (MTL) 7591", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62686179270051, + 45.5312015076308 + ], + [ + -73.62679183379127, + 45.531320112064684 + ], + [ + -73.62681089147276, + 45.53132544585018 + ], + [ + -73.62681049148276, + 45.53132634613298 + ], + [ + -73.6268988232959, + 45.53134639992811 + ], + [ + -73.62697000259865, + 45.53122572624327 + ], + [ + -73.62686179270051, + 45.5312015076308 + ] + ] + ] + }, + "id": 93447, + "properties": { + "name": "03078282", + "address": "terrasse Saint-Roch (MTL) 7595", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62700459560534, + 45.53073002598187 + ], + [ + -73.62693955812614, + 45.530839705841814 + ], + [ + -73.62703821351616, + 45.53088026078395 + ], + [ + -73.62710880537993, + 45.53076121006543 + ], + [ + -73.62700459560534, + 45.53073002598187 + ] + ] + ] + }, + "id": 93520, + "properties": { + "name": "03078263", + "address": "terrasse Saint-Roch (MTL) 7580", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62664286701025, + 45.531148792343195 + ], + [ + -73.62657766129188, + 45.53125933872024 + ], + [ + -73.62668686851191, + 45.531290392570554 + ], + [ + -73.62675429841319, + 45.53117607513901 + ], + [ + -73.62664286701025, + 45.531148792343195 + ] + ] + ] + }, + "id": 93561, + "properties": { + "name": "03078277", + "address": "terrasse Saint-Roch (MTL) 7585", + "function": "residential", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62679974464352, + 45.53064775903074 + ], + [ + -73.62673084607161, + 45.530763953393276 + ], + [ + -73.62683744490143, + 45.53079804425261 + ], + [ + -73.62690500026098, + 45.53068411891262 + ], + [ + -73.62679974464352, + 45.53064775903074 + ] + ] + ] + }, + "id": 94322, + "properties": { + "name": "03078268", + "address": "terrasse Saint-Roch (MTL) 7568", + "function": "residential", + "height": 12, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62707821258952, + 45.53124994475302 + ], + [ + -73.62700685109635, + 45.53137092555236 + ], + [ + -73.62718380323986, + 45.53141108104035 + ], + [ + -73.62718404302073, + 45.53141067494611 + ], + [ + -73.62718584430692, + 45.53141120114588 + ], + [ + -73.62719376469626, + 45.531397773931786 + ], + [ + -73.62719196213214, + 45.53139724863342 + ], + [ + -73.62724680529958, + 45.5313042711058 + ], + [ + -73.62724500401828, + 45.53130374580682 + ], + [ + -73.6272529230982, + 45.53129031858981 + ], + [ + -73.62725472565945, + 45.53129084388724 + ], + [ + -73.6272554526503, + 45.531289612097986 + ], + [ + -73.62707821258952, + 45.53124994475302 + ] + ] + ] + }, + "id": 94362, + "properties": { + "name": "03078286", + "address": "terrasse Saint-Roch (MTL) 7615", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6272554526503, + 45.531289612097986 + ], + [ + -73.62725472565945, + 45.53129084388724 + ], + [ + -73.6272529230982, + 45.53129031858981 + ], + [ + -73.62724500401828, + 45.53130374580682 + ], + [ + -73.62724680529958, + 45.5313042711058 + ], + [ + -73.62719196213214, + 45.53139724863342 + ], + [ + -73.62719376469626, + 45.531397773931786 + ], + [ + -73.62718584430692, + 45.53141120114588 + ], + [ + -73.62718404302073, + 45.53141067494611 + ], + [ + -73.62718380323986, + 45.53141108104035 + ], + [ + -73.62718809185606, + 45.53141204629151 + ], + [ + -73.62718859139854, + 45.53141214651724 + ], + [ + -73.62719329196987, + 45.53139934647642 + ], + [ + -73.62722769115364, + 45.53140564663263 + ], + [ + -73.62722279176418, + 45.53141884642465 + ], + [ + -73.62736323249167, + 45.53144703394477 + ], + [ + -73.6274297441946, + 45.53133427476224 + ], + [ + -73.62725699156479, + 45.53129074687994 + ], + [ + -73.62725739199793, + 45.53129004635929 + ], + [ + -73.6272554526503, + 45.531289612097986 + ] + ] + ] + }, + "id": 94363, + "properties": { + "name": "03078289", + "address": "terrasse Saint-Roch (MTL) 7635", + "function": "residential", + "height": 12, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62512359160377, + 45.531264046944656 + ], + [ + -73.6250851905259, + 45.531332246387215 + ], + [ + -73.62563769184976, + 45.53149584622098 + ], + [ + -73.62563969073308, + 45.53149254611359 + ], + [ + -73.6257340913827, + 45.53133234653811 + ], + [ + -73.62569129143142, + 45.5313204464811 + ], + [ + -73.62578049104563, + 45.531161946981534 + ], + [ + -73.62549219093904, + 45.53108314664289 + ], + [ + -73.62549209196507, + 45.531083546280044 + ], + [ + -73.62546509047318, + 45.53107714659216 + ], + [ + -73.6254701913511, + 45.531067447026324 + ], + [ + -73.62533049181334, + 45.53103144666295 + ], + [ + -73.62535359142615, + 45.53098734721232 + ], + [ + -73.62544569072843, + 45.531011146726286 + ], + [ + -73.62554729046485, + 45.530809645782 + ], + [ + -73.62546249091181, + 45.53078494659155 + ], + [ + -73.62551209133717, + 45.53070074637418 + ], + [ + -73.62542759071023, + 45.530676245693314 + ], + [ + -73.62553289092882, + 45.53049764608528 + ], + [ + -73.62557219161332, + 45.53050914692229 + ], + [ + -73.6255722912505, + 45.53050904603077 + ], + [ + -73.62565679187234, + 45.53036344646201 + ], + [ + -73.62488289108137, + 45.53014124668131 + ], + [ + -73.62479949030566, + 45.53028474605729 + ], + [ + -73.62477589029727, + 45.530278046442376 + ], + [ + -73.6247755915975, + 45.53027844629712 + ], + [ + -73.62466729174152, + 45.53046144690007 + ], + [ + -73.62466699047945, + 45.53046184675732 + ], + [ + -73.62469519107506, + 45.53046934582853 + ], + [ + -73.62450889096515, + 45.53081434569499 + ], + [ + -73.62457459159388, + 45.530831847016294 + ], + [ + -73.62440419149841, + 45.53114754679586 + ], + [ + -73.62505559128462, + 45.53132124587238 + ], + [ + -73.62509379074659, + 45.531255646294554 + ], + [ + -73.62512359160377, + 45.531264046944656 + ] + ] + ] + }, + "id": 65, + "properties": { + "name": "03082001", + "address": "avenue Ogilvy (MTL) 405", + "function": "medium office", + "height": 15, + "year_of_construction": 1960 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62750006907146, + 45.530928324910086 + ], + [ + -73.62743488438794, + 45.531038258967115 + ], + [ + -73.6275391034755, + 45.53106924108219 + ], + [ + -73.62760897900422, + 45.530951396642294 + ], + [ + -73.62756599205811, + 45.530937246099064 + ], + [ + -73.6275588909908, + 45.53094774614935 + ], + [ + -73.62750006907146, + 45.530928324910086 + ] + ] + ] + }, + "id": 97065, + "properties": { + "name": "03078251", + "address": "terrasse Saint-Roch (MTL) 7630", + "function": "residential", + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62720368526217, + 45.53081145043219 + ], + [ + -73.62719836541652, + 45.53082042235012 + ], + [ + -73.62719659232948, + 45.53081990241797 + ], + [ + -73.62714693184338, + 45.53090365171287 + ], + [ + -73.62714512929348, + 45.53090312551382 + ], + [ + -73.62713507626538, + 45.53092007886807 + ], + [ + -73.62723534019582, + 45.53096129772983 + ], + [ + -73.62730332093263, + 45.53084665001298 + ], + [ + -73.62720368526217, + 45.53081145043219 + ] + ] + ] + }, + "id": 98163, + "properties": { + "name": "03078258", + "address": "terrasse Saint-Roch (MTL) 7600", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62710880537993, + 45.53076121006543 + ], + [ + -73.62703821351616, + 45.53088026078395 + ], + [ + -73.62713507626538, + 45.53092007886807 + ], + [ + -73.62714512929348, + 45.53090312551382 + ], + [ + -73.62714693184338, + 45.53090365171287 + ], + [ + -73.62719659232948, + 45.53081990241797 + ], + [ + -73.62719836541652, + 45.53082042235012 + ], + [ + -73.62720368526217, + 45.53081145043219 + ], + [ + -73.62720339184231, + 45.53081134637763 + ], + [ + -73.6272054453655, + 45.53080848260343 + ], + [ + -73.62721412342673, + 45.53079384515937 + ], + [ + -73.6272123516227, + 45.53079332612586 + ], + [ + -73.627212939597, + 45.53079233384867 + ], + [ + -73.62710880537993, + 45.53076121006543 + ] + ] + ] + }, + "id": 98164, + "properties": { + "name": "03078260", + "address": "terrasse Saint-Roch (MTL) 7590", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62781529204196, + 45.53115134591709 + ], + [ + -73.62797744166184, + 45.53119955769833 + ], + [ + -73.62808528154298, + 45.53101656169505 + ], + [ + -73.62786289258736, + 45.53094704633779 + ], + [ + -73.62781479159199, + 45.531019146662224 + ], + [ + -73.62781411637542, + 45.53101892425772 + ], + [ + -73.62774753943285, + 45.531131205029084 + ], + [ + -73.62781529204196, + 45.53115134591709 + ] + ] + ] + }, + "id": 98923, + "properties": { + "name": "03116282", + "address": "terrasse Saint-Roch (MTL) 7660", + "function": "residential", + "height": 11, + "year_of_construction": 1974 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6274093889632, + 45.53087451134553 + ], + [ + -73.62733066541466, + 45.531007276756654 + ], + [ + -73.62743488438794, + 45.531038258967115 + ], + [ + -73.62750006907146, + 45.530928324910086 + ], + [ + -73.62739949156546, + 45.530895146689964 + ], + [ + -73.62741249132513, + 45.53087574606342 + ], + [ + -73.62741239123751, + 45.53087564629295 + ], + [ + -73.6274093889632, + 45.53087451134553 + ] + ] + ] + }, + "id": 105103, + "properties": { + "name": "03078253", + "address": "terrasse Saint-Roch (MTL) 7620", + "function": "residential", + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62730332093263, + 45.53084665001298 + ], + [ + -73.62723534019582, + 45.53096129772983 + ], + [ + -73.62732959157914, + 45.53100004594924 + ], + [ + -73.62732489124495, + 45.53100554650399 + ], + [ + -73.62733066541466, + 45.531007276756654 + ], + [ + -73.6274093889632, + 45.53087451134553 + ], + [ + -73.62736159221497, + 45.53085644549209 + ], + [ + -73.62735539199483, + 45.530865045865546 + ], + [ + -73.62730332093263, + 45.53084665001298 + ] + ] + ] + }, + "id": 107681, + "properties": { + "name": "03078255", + "address": "terrasse Saint-Roch (MTL) 7610", + "function": "residential", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62665969112884, + 45.530608545558955 + ], + [ + -73.62659949197442, + 45.5307219460954 + ], + [ + -73.62673084607161, + 45.530763953393276 + ], + [ + -73.62679974464352, + 45.53064775903074 + ], + [ + -73.62678349166298, + 45.5306421467792 + ], + [ + -73.6267840915964, + 45.53064134615659 + ], + [ + -73.62665969112884, + 45.530608545558955 + ] + ] + ] + }, + "id": 108247, + "properties": { + "name": "03078270", + "address": "terrasse Saint-Roch (MTL) 7558", + "function": "residential", + "height": 12, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62638149087807, + 45.53108454628359 + ], + [ + -73.62632069239689, + 45.531186345705436 + ], + [ + -73.62646885910878, + 45.531228438189366 + ], + [ + -73.62653127008136, + 45.53112129725997 + ], + [ + -73.62638149087807, + 45.53108454628359 + ] + ] + ] + }, + "id": 111070, + "properties": { + "name": "03078272", + "address": "terrasse Saint-Roch (MTL) 7565", + "function": "residential", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62760897900422, + 45.530951396642294 + ], + [ + -73.6275391034755, + 45.53106924108219 + ], + [ + -73.62764332139704, + 45.53110022310332 + ], + [ + -73.62771154762956, + 45.530985160946145 + ], + [ + -73.62760897900422, + 45.530951396642294 + ] + ] + ] + }, + "id": 112148, + "properties": { + "name": "03078248", + "address": "terrasse Saint-Roch (MTL) 7640", + "function": "residential", + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62690500026098, + 45.53068411891262 + ], + [ + -73.62683744490143, + 45.53079804425261 + ], + [ + -73.62684089134515, + 45.53079914632766 + ], + [ + -73.62693955812614, + 45.530839705841814 + ], + [ + -73.62700459560534, + 45.53073002598187 + ], + [ + -73.62699699071426, + 45.5307277470466 + ], + [ + -73.62700289124741, + 45.53071794664054 + ], + [ + -73.62690500026098, + 45.53068411891262 + ] + ] + ] + }, + "id": 113423, + "properties": { + "name": "03078265", + "address": "terrasse Saint-Roch (MTL) 7576", + "function": "residential", + "height": 12, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62799127190428, + 45.53147579449675 + ], + [ + -73.62791312312658, + 45.53160828700013 + ], + [ + -73.62800029210143, + 45.53163234642676 + ], + [ + -73.62800039196487, + 45.53163234631487 + ], + [ + -73.62809949226201, + 45.53150304718243 + ], + [ + -73.62809939239877, + 45.531503047294414 + ], + [ + -73.62799127190428, + 45.53147579449675 + ] + ] + ] + }, + "id": 116458, + "properties": { + "name": "03078301", + "address": "terrasse Saint-Roch (MTL) 7695", + "function": "residential", + "height": 10, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62771154762956, + 45.530985160946145 + ], + [ + -73.62764332139704, + 45.53110022310332 + ], + [ + -73.62774753943285, + 45.531131205029084 + ], + [ + -73.62781411637542, + 45.53101892425772 + ], + [ + -73.62771154762956, + 45.530985160946145 + ] + ] + ] + }, + "id": 118089, + "properties": { + "name": "03078246", + "address": "terrasse Saint-Roch (MTL) 7650", + "function": "residential", + "height": 11, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62808528154298, + 45.53101656169505 + ], + [ + -73.62797744166184, + 45.53119955769833 + ], + [ + -73.6282289922282, + 45.531274346447226 + ], + [ + -73.628229692839, + 45.53127334683976 + ], + [ + -73.62834379276104, + 45.53109714634855 + ], + [ + -73.62808528154298, + 45.53101656169505 + ] + ] + ] + }, + "id": 124673, + "properties": { + "name": "03116281", + "address": "terrasse Saint-Roch (MTL) 7670", + "function": "residential", + "height": 11, + "year_of_construction": 1974 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62306608986638, + 45.53123514589538 + ], + [ + -73.62307609011799, + 45.53123684661453 + ], + [ + -73.62307128947408, + 45.531251146625266 + ], + [ + -73.62307169042535, + 45.53125124697522 + ], + [ + -73.62324729035045, + 45.53128454694852 + ], + [ + -73.62324749110766, + 45.53128384665737 + ], + [ + -73.6232837901444, + 45.53114324637413 + ], + [ + -73.62354719026658, + 45.531176747141714 + ], + [ + -73.62354719132621, + 45.53117664635862 + ], + [ + -73.62373849147549, + 45.53086894638473 + ], + [ + -73.62381089067591, + 45.53089124602803 + ], + [ + -73.62387648993575, + 45.53078564721059 + ], + [ + -73.6237958908445, + 45.53075994610609 + ], + [ + -73.62387469036925, + 45.530637746251344 + ], + [ + -73.62389849084242, + 45.5306453465733 + ], + [ + -73.62402016196077, + 45.530424373385436 + ], + [ + -73.62400124661674, + 45.53041888420673 + ], + [ + -73.6240288982657, + 45.53037181240913 + ], + [ + -73.62370894342085, + 45.53027896844428 + ], + [ + -73.62371270490526, + 45.530272563816474 + ], + [ + -73.62369550245748, + 45.530267572142506 + ], + [ + -73.62366339055015, + 45.53030374624078 + ], + [ + -73.62352199140788, + 45.5305327471539 + ], + [ + -73.62354028982347, + 45.53053714647435 + ], + [ + -73.6234729907425, + 45.530675846612866 + ], + [ + -73.62347579097046, + 45.53067654636016 + ], + [ + -73.62353679058056, + 45.530686746668756 + ], + [ + -73.6235217906812, + 45.53073114654062 + ], + [ + -73.62344559093653, + 45.530718345920064 + ], + [ + -73.6234348905377, + 45.53075004620763 + ], + [ + -73.6224527899842, + 45.530586646872344 + ], + [ + -73.62245609060858, + 45.530576646124366 + ], + [ + -73.62245539007843, + 45.53057654609339 + ], + [ + -73.62233359060535, + 45.53055644642029 + ], + [ + -73.62231499003069, + 45.530612246449806 + ], + [ + -73.62233099021513, + 45.53061484694738 + ], + [ + -73.62229219028784, + 45.530731346535255 + ], + [ + -73.62236219082739, + 45.530743045964314 + ], + [ + -73.62224229077214, + 45.53109754615554 + ], + [ + -73.62306608986638, + 45.53123514589538 + ] + ] + ] + }, + "id": 107729, + "properties": { + "name": "05014001", + "address": "rue Jean-Talon Ouest (MTL+MTR) 375", + "function": "stand alone retail", + "height": 16, + "year_of_construction": 1931 + } + } + ] +} \ No newline at end of file diff --git a/input_files/modified_buildings.geojson b/input_files/modified_buildings.geojson new file mode 100644 index 00000000..66240045 --- /dev/null +++ b/input_files/modified_buildings.geojson @@ -0,0 +1,1971 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.63060584508622, + 45.53176961264836 + ], + [ + -73.63058657261939, + 45.53180225023445 + ], + [ + -73.63059539331475, + 45.53180474620117 + ], + [ + -73.63040039297884, + 45.5321452465529 + ], + [ + -73.63040009325965, + 45.53214574630548 + ], + [ + -73.63063549262431, + 45.53220294643613 + ], + [ + -73.63063549344213, + 45.53220274667104 + ], + [ + -73.63067229323067, + 45.53219374668722 + ], + [ + -73.63065779260656, + 45.53216454641413 + ], + [ + -73.63109699255251, + 45.5320572467642 + ], + [ + -73.63109209405295, + 45.53190954657213 + ], + [ + -73.63109199290872, + 45.53190954668818 + ], + [ + -73.63060584508622, + 45.53176961264836 + ] + ] + ] + }, + "id": 103235, + "properties": { + "name": "05126259", + "address": "avenue Ball (MTL) 400", + "function": 7432, + "height": 10, + "year_of_construction": 2004 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.63018579380112, + 45.53230434613477 + ], + [ + -73.63018819239187, + 45.53230014655396 + ], + [ + -73.6302572931312, + 45.53218284580482 + ], + [ + -73.63027719367864, + 45.53218864686601 + ], + [ + -73.63027979326475, + 45.532184446154126 + ], + [ + -73.63028849317978, + 45.53216954660207 + ], + [ + -73.63026879259934, + 45.53216384609669 + ], + [ + -73.63033179236753, + 45.532056546764736 + ], + [ + -73.63035069353764, + 45.532062046607706 + ], + [ + -73.63036019211589, + 45.53204594575377 + ], + [ + -73.63036299318378, + 45.532040846771 + ], + [ + -73.63034699341978, + 45.53203654670358 + ], + [ + -73.63040599309858, + 45.53192864630121 + ], + [ + -73.63042479216523, + 45.53193374672026 + ], + [ + -73.63043209353052, + 45.53192034698479 + ], + [ + -73.63043469344954, + 45.5319157467404 + ], + [ + -73.63041969258992, + 45.53191154722422 + ], + [ + -73.63049679374387, + 45.53177684600561 + ], + [ + -73.63058657261939, + 45.53180225023445 + ], + [ + -73.63060584508622, + 45.53176961264836 + ], + [ + -73.630474992558, + 45.531731946463054 + ], + [ + -73.63047479259772, + 45.531731845909526 + ], + [ + -73.63046269220258, + 45.53175334607798 + ], + [ + -73.63016409268968, + 45.53167064600382 + ], + [ + -73.63011899213006, + 45.5317542465083 + ], + [ + -73.62980739221123, + 45.53167124626595 + ], + [ + -73.62985469248703, + 45.53158364719905 + ], + [ + -73.62981779235982, + 45.53157284698362 + ], + [ + -73.62980929308888, + 45.531587046198844 + ], + [ + -73.62955889298304, + 45.531513546398415 + ], + [ + -73.62955659250507, + 45.53151754699098 + ], + [ + -73.62953649268181, + 45.53155084672118 + ], + [ + -73.62945549180557, + 45.531526846264825 + ], + [ + -73.62948089299533, + 45.53148444586983 + ], + [ + -73.62919079338147, + 45.53139154653844 + ], + [ + -73.62881189193887, + 45.53128904547875 + ], + [ + -73.6286971926851, + 45.531488846277135 + ], + [ + -73.62869489260262, + 45.5314930466161 + ], + [ + -73.6287135930129, + 45.53149824641055 + ], + [ + -73.62870259187936, + 45.53151754684884 + ], + [ + -73.62868839317818, + 45.53151354686524 + ], + [ + -73.62868609263643, + 45.53151754654051 + ], + [ + -73.62856789305934, + 45.53171944596869 + ], + [ + -73.62856539300306, + 45.531723546647854 + ], + [ + -73.6285839927892, + 45.53172894634075 + ], + [ + -73.62852649272779, + 45.53182664624685 + ], + [ + -73.6285322923272, + 45.531828245933305 + ], + [ + -73.63018579380112, + 45.53230434613477 + ] + ] + ] + }, + "id": 123820, + "properties": { + "name": "03082101", + "address": "rue Saint-Roch (MTL) 415", + "function": 6812, + "height": 10, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62667799120685, + 45.53158934683715 + ], + [ + -73.62666969192776, + 45.53160344661468 + ], + [ + -73.62777849149147, + 45.5319220467539 + ], + [ + -73.62776869162744, + 45.53193884690511 + ], + [ + -73.62782749233723, + 45.53195574667849 + ], + [ + -73.62790199256328, + 45.53182874644308 + ], + [ + -73.62789969304914, + 45.531828146125896 + ], + [ + -73.62657819097497, + 45.531464647139565 + ], + [ + -73.62655659162637, + 45.53150144568036 + ], + [ + -73.62650289178617, + 45.531485946050644 + ], + [ + -73.62650279064268, + 45.531485946162675 + ], + [ + -73.62634779059971, + 45.531747046636184 + ], + [ + -73.62649109169882, + 45.531788845722375 + ], + [ + -73.62649689168671, + 45.53179064617578 + ], + [ + -73.62662619166629, + 45.531574046722106 + ], + [ + -73.62667799120685, + 45.53158934683715 + ] + ] + ] + }, + "id": 65579, + "properties": { + "name": "05186039", + "address": "rue Saint-Roch (MTL) 412", + "function": 1000, + "height": 12, + "year_of_construction": 2009 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62653127008136, + 45.53112129725997 + ], + [ + -73.62646885910878, + 45.531228438189366 + ], + [ + -73.62657766129188, + 45.53125933872024 + ], + [ + -73.62664286701025, + 45.531148792343195 + ], + [ + -73.62653127008136, + 45.53112129725997 + ] + ] + ] + }, + "id": 65729, + "properties": { + "name": "03078275", + "address": "terrasse Saint-Roch (MTL) 7575", + "function": 1000, + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6274297441946, + 45.53133427476224 + ], + [ + -73.62736323249167, + 45.53144703394477 + ], + [ + -73.6273642917802, + 45.531447246925325 + ], + [ + -73.62737069164203, + 45.53143744684459 + ], + [ + -73.6275075910617, + 45.531481446502426 + ], + [ + -73.62750869211919, + 45.53147974637789 + ], + [ + -73.62754044635489, + 45.53148890907962 + ], + [ + -73.62760553184677, + 45.53137856745493 + ], + [ + -73.6274297441946, + 45.53133427476224 + ] + ] + ] + }, + "id": 80038, + "properties": { + "name": "03078291", + "address": "terrasse Saint-Roch (MTL) 7655", + "function": 1000, + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62760553184677, + 45.53137856745493 + ], + [ + -73.62754044635489, + 45.53148890907962 + ], + [ + -73.6277102921388, + 45.531538046676694 + ], + [ + -73.62769879178762, + 45.531557546440624 + ], + [ + -73.62770213686377, + 45.531558521725636 + ], + [ + -73.62778203974688, + 45.53142305613577 + ], + [ + -73.62760553184677, + 45.53137856745493 + ] + ] + ] + }, + "id": 93399, + "properties": { + "name": "03078293", + "address": "terrasse Saint-Roch (MTL) 7665", + "function": 1000, + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62778203974688, + 45.53142305613577 + ], + [ + -73.62770213686377, + 45.531558521725636 + ], + [ + -73.62777509173357, + 45.531579746524756 + ], + [ + -73.62777979213378, + 45.53157144655376 + ], + [ + -73.62780931902587, + 45.53157960565247 + ], + [ + -73.62788617603148, + 45.53144930487308 + ], + [ + -73.62778203974688, + 45.53142305613577 + ] + ] + ] + }, + "id": 93400, + "properties": { + "name": "03078296", + "address": "terrasse Saint-Roch (MTL) 7675", + "function": 1000, + "height": 11, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62790319200322, + 45.531605546413616 + ], + [ + -73.62791312312658, + 45.53160828700013 + ], + [ + -73.62799127190428, + 45.53147579449675 + ], + [ + -73.62788617603148, + 45.53144930487308 + ], + [ + -73.62780931902587, + 45.53157960565247 + ], + [ + -73.62790319200322, + 45.531605546413616 + ] + ] + ] + }, + "id": 93401, + "properties": { + "name": "03078298", + "address": "terrasse Saint-Roch (MTL) 7685", + "function": 1000, + "height": 11, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62697000259865, + 45.53122572624327 + ], + [ + -73.6268988232959, + 45.53134639992811 + ], + [ + -73.62700685109635, + 45.53137092555236 + ], + [ + -73.62707821258952, + 45.53124994475302 + ], + [ + -73.62697000259865, + 45.53122572624327 + ] + ] + ] + }, + "id": 93438, + "properties": { + "name": "03078284", + "address": "terrasse Saint-Roch (MTL) 7605", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62675429841319, + 45.53117607513901 + ], + [ + -73.62668686851191, + 45.531290392570554 + ], + [ + -73.62676909166254, + 45.53131374665054 + ], + [ + -73.62679183379127, + 45.531320112064684 + ], + [ + -73.62686179270051, + 45.5312015076308 + ], + [ + -73.62685169121886, + 45.53119924675589 + ], + [ + -73.62685139169774, + 45.53119984638113 + ], + [ + -73.62675429841319, + 45.53117607513901 + ] + ] + ] + }, + "id": 93446, + "properties": { + "name": "03078279", + "address": "terrasse Saint-Roch (MTL) 7591", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62686179270051, + 45.5312015076308 + ], + [ + -73.62679183379127, + 45.531320112064684 + ], + [ + -73.62681089147276, + 45.53132544585018 + ], + [ + -73.62681049148276, + 45.53132634613298 + ], + [ + -73.6268988232959, + 45.53134639992811 + ], + [ + -73.62697000259865, + 45.53122572624327 + ], + [ + -73.62686179270051, + 45.5312015076308 + ] + ] + ] + }, + "id": 93447, + "properties": { + "name": "03078282", + "address": "terrasse Saint-Roch (MTL) 7595", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62700459560534, + 45.53073002598187 + ], + [ + -73.62693955812614, + 45.530839705841814 + ], + [ + -73.62703821351616, + 45.53088026078395 + ], + [ + -73.62710880537993, + 45.53076121006543 + ], + [ + -73.62700459560534, + 45.53073002598187 + ] + ] + ] + }, + "id": 93520, + "properties": { + "name": "03078263", + "address": "terrasse Saint-Roch (MTL) 7580", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62664286701025, + 45.531148792343195 + ], + [ + -73.62657766129188, + 45.53125933872024 + ], + [ + -73.62668686851191, + 45.531290392570554 + ], + [ + -73.62675429841319, + 45.53117607513901 + ], + [ + -73.62664286701025, + 45.531148792343195 + ] + ] + ] + }, + "id": 93561, + "properties": { + "name": "03078277", + "address": "terrasse Saint-Roch (MTL) 7585", + "function": 1000, + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62679974464352, + 45.53064775903074 + ], + [ + -73.62673084607161, + 45.530763953393276 + ], + [ + -73.62683744490143, + 45.53079804425261 + ], + [ + -73.62690500026098, + 45.53068411891262 + ], + [ + -73.62679974464352, + 45.53064775903074 + ] + ] + ] + }, + "id": 94322, + "properties": { + "name": "03078268", + "address": "terrasse Saint-Roch (MTL) 7568", + "function": 1000, + "height": 12, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62707821258952, + 45.53124994475302 + ], + [ + -73.62700685109635, + 45.53137092555236 + ], + [ + -73.62718380323986, + 45.53141108104035 + ], + [ + -73.62718404302073, + 45.53141067494611 + ], + [ + -73.62718584430692, + 45.53141120114588 + ], + [ + -73.62719376469626, + 45.531397773931786 + ], + [ + -73.62719196213214, + 45.53139724863342 + ], + [ + -73.62724680529958, + 45.5313042711058 + ], + [ + -73.62724500401828, + 45.53130374580682 + ], + [ + -73.6272529230982, + 45.53129031858981 + ], + [ + -73.62725472565945, + 45.53129084388724 + ], + [ + -73.6272554526503, + 45.531289612097986 + ], + [ + -73.62707821258952, + 45.53124994475302 + ] + ] + ] + }, + "id": 94362, + "properties": { + "name": "03078286", + "address": "terrasse Saint-Roch (MTL) 7615", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6272554526503, + 45.531289612097986 + ], + [ + -73.62725472565945, + 45.53129084388724 + ], + [ + -73.6272529230982, + 45.53129031858981 + ], + [ + -73.62724500401828, + 45.53130374580682 + ], + [ + -73.62724680529958, + 45.5313042711058 + ], + [ + -73.62719196213214, + 45.53139724863342 + ], + [ + -73.62719376469626, + 45.531397773931786 + ], + [ + -73.62718584430692, + 45.53141120114588 + ], + [ + -73.62718404302073, + 45.53141067494611 + ], + [ + -73.62718380323986, + 45.53141108104035 + ], + [ + -73.62718809185606, + 45.53141204629151 + ], + [ + -73.62718859139854, + 45.53141214651724 + ], + [ + -73.62719329196987, + 45.53139934647642 + ], + [ + -73.62722769115364, + 45.53140564663263 + ], + [ + -73.62722279176418, + 45.53141884642465 + ], + [ + -73.62736323249167, + 45.53144703394477 + ], + [ + -73.6274297441946, + 45.53133427476224 + ], + [ + -73.62725699156479, + 45.53129074687994 + ], + [ + -73.62725739199793, + 45.53129004635929 + ], + [ + -73.6272554526503, + 45.531289612097986 + ] + ] + ] + }, + "id": 94363, + "properties": { + "name": "03078289", + "address": "terrasse Saint-Roch (MTL) 7635", + "function": 1000, + "height": 12, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62512359160377, + 45.531264046944656 + ], + [ + -73.6250851905259, + 45.531332246387215 + ], + [ + -73.62563769184976, + 45.53149584622098 + ], + [ + -73.62563969073308, + 45.53149254611359 + ], + [ + -73.6257340913827, + 45.53133234653811 + ], + [ + -73.62569129143142, + 45.5313204464811 + ], + [ + -73.62578049104563, + 45.531161946981534 + ], + [ + -73.62549219093904, + 45.53108314664289 + ], + [ + -73.62549209196507, + 45.531083546280044 + ], + [ + -73.62546509047318, + 45.53107714659216 + ], + [ + -73.6254701913511, + 45.531067447026324 + ], + [ + -73.62533049181334, + 45.53103144666295 + ], + [ + -73.62535359142615, + 45.53098734721232 + ], + [ + -73.62544569072843, + 45.531011146726286 + ], + [ + -73.62554729046485, + 45.530809645782 + ], + [ + -73.62546249091181, + 45.53078494659155 + ], + [ + -73.62551209133717, + 45.53070074637418 + ], + [ + -73.62542759071023, + 45.530676245693314 + ], + [ + -73.62553289092882, + 45.53049764608528 + ], + [ + -73.62557219161332, + 45.53050914692229 + ], + [ + -73.6255722912505, + 45.53050904603077 + ], + [ + -73.62565679187234, + 45.53036344646201 + ], + [ + -73.62488289108137, + 45.53014124668131 + ], + [ + -73.62479949030566, + 45.53028474605729 + ], + [ + -73.62477589029727, + 45.530278046442376 + ], + [ + -73.6247755915975, + 45.53027844629712 + ], + [ + -73.62466729174152, + 45.53046144690007 + ], + [ + -73.62466699047945, + 45.53046184675732 + ], + [ + -73.62469519107506, + 45.53046934582853 + ], + [ + -73.62450889096515, + 45.53081434569499 + ], + [ + -73.62457459159388, + 45.530831847016294 + ], + [ + -73.62440419149841, + 45.53114754679586 + ], + [ + -73.62505559128462, + 45.53132124587238 + ], + [ + -73.62509379074659, + 45.531255646294554 + ], + [ + -73.62512359160377, + 45.531264046944656 + ] + ] + ] + }, + "id": 65, + "properties": { + "name": "03082001", + "address": "avenue Ogilvy (MTL) 405", + "function": 6000, + "height": 15, + "year_of_construction": 1960 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62750006907146, + 45.530928324910086 + ], + [ + -73.62743488438794, + 45.531038258967115 + ], + [ + -73.6275391034755, + 45.53106924108219 + ], + [ + -73.62760897900422, + 45.530951396642294 + ], + [ + -73.62756599205811, + 45.530937246099064 + ], + [ + -73.6275588909908, + 45.53094774614935 + ], + [ + -73.62750006907146, + 45.530928324910086 + ] + ] + ] + }, + "id": 97065, + "properties": { + "name": "03078251", + "address": "terrasse Saint-Roch (MTL) 7630", + "function": 1000, + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62720368526217, + 45.53081145043219 + ], + [ + -73.62719836541652, + 45.53082042235012 + ], + [ + -73.62719659232948, + 45.53081990241797 + ], + [ + -73.62714693184338, + 45.53090365171287 + ], + [ + -73.62714512929348, + 45.53090312551382 + ], + [ + -73.62713507626538, + 45.53092007886807 + ], + [ + -73.62723534019582, + 45.53096129772983 + ], + [ + -73.62730332093263, + 45.53084665001298 + ], + [ + -73.62720368526217, + 45.53081145043219 + ] + ] + ] + }, + "id": 98163, + "properties": { + "name": "03078258", + "address": "terrasse Saint-Roch (MTL) 7600", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62710880537993, + 45.53076121006543 + ], + [ + -73.62703821351616, + 45.53088026078395 + ], + [ + -73.62713507626538, + 45.53092007886807 + ], + [ + -73.62714512929348, + 45.53090312551382 + ], + [ + -73.62714693184338, + 45.53090365171287 + ], + [ + -73.62719659232948, + 45.53081990241797 + ], + [ + -73.62719836541652, + 45.53082042235012 + ], + [ + -73.62720368526217, + 45.53081145043219 + ], + [ + -73.62720339184231, + 45.53081134637763 + ], + [ + -73.6272054453655, + 45.53080848260343 + ], + [ + -73.62721412342673, + 45.53079384515937 + ], + [ + -73.6272123516227, + 45.53079332612586 + ], + [ + -73.627212939597, + 45.53079233384867 + ], + [ + -73.62710880537993, + 45.53076121006543 + ] + ] + ] + }, + "id": 98164, + "properties": { + "name": "03078260", + "address": "terrasse Saint-Roch (MTL) 7590", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62781529204196, + 45.53115134591709 + ], + [ + -73.62797744166184, + 45.53119955769833 + ], + [ + -73.62808528154298, + 45.53101656169505 + ], + [ + -73.62786289258736, + 45.53094704633779 + ], + [ + -73.62781479159199, + 45.531019146662224 + ], + [ + -73.62781411637542, + 45.53101892425772 + ], + [ + -73.62774753943285, + 45.531131205029084 + ], + [ + -73.62781529204196, + 45.53115134591709 + ] + ] + ] + }, + "id": 98923, + "properties": { + "name": "03116282", + "address": "terrasse Saint-Roch (MTL) 7660", + "function": 1000, + "height": 11, + "year_of_construction": 1974 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6274093889632, + 45.53087451134553 + ], + [ + -73.62733066541466, + 45.531007276756654 + ], + [ + -73.62743488438794, + 45.531038258967115 + ], + [ + -73.62750006907146, + 45.530928324910086 + ], + [ + -73.62739949156546, + 45.530895146689964 + ], + [ + -73.62741249132513, + 45.53087574606342 + ], + [ + -73.62741239123751, + 45.53087564629295 + ], + [ + -73.6274093889632, + 45.53087451134553 + ] + ] + ] + }, + "id": 105103, + "properties": { + "name": "03078253", + "address": "terrasse Saint-Roch (MTL) 7620", + "function": 1000, + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62730332093263, + 45.53084665001298 + ], + [ + -73.62723534019582, + 45.53096129772983 + ], + [ + -73.62732959157914, + 45.53100004594924 + ], + [ + -73.62732489124495, + 45.53100554650399 + ], + [ + -73.62733066541466, + 45.531007276756654 + ], + [ + -73.6274093889632, + 45.53087451134553 + ], + [ + -73.62736159221497, + 45.53085644549209 + ], + [ + -73.62735539199483, + 45.530865045865546 + ], + [ + -73.62730332093263, + 45.53084665001298 + ] + ] + ] + }, + "id": 107681, + "properties": { + "name": "03078255", + "address": "terrasse Saint-Roch (MTL) 7610", + "function": 1000, + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62665969112884, + 45.530608545558955 + ], + [ + -73.62659949197442, + 45.5307219460954 + ], + [ + -73.62673084607161, + 45.530763953393276 + ], + [ + -73.62679974464352, + 45.53064775903074 + ], + [ + -73.62678349166298, + 45.5306421467792 + ], + [ + -73.6267840915964, + 45.53064134615659 + ], + [ + -73.62665969112884, + 45.530608545558955 + ] + ] + ] + }, + "id": 108247, + "properties": { + "name": "03078270", + "address": "terrasse Saint-Roch (MTL) 7558", + "function": 1000, + "height": 12, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62638149087807, + 45.53108454628359 + ], + [ + -73.62632069239689, + 45.531186345705436 + ], + [ + -73.62646885910878, + 45.531228438189366 + ], + [ + -73.62653127008136, + 45.53112129725997 + ], + [ + -73.62638149087807, + 45.53108454628359 + ] + ] + ] + }, + "id": 111070, + "properties": { + "name": "03078272", + "address": "terrasse Saint-Roch (MTL) 7565", + "function": 1000, + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62760897900422, + 45.530951396642294 + ], + [ + -73.6275391034755, + 45.53106924108219 + ], + [ + -73.62764332139704, + 45.53110022310332 + ], + [ + -73.62771154762956, + 45.530985160946145 + ], + [ + -73.62760897900422, + 45.530951396642294 + ] + ] + ] + }, + "id": 112148, + "properties": { + "name": "03078248", + "address": "terrasse Saint-Roch (MTL) 7640", + "function": 1000, + "height": 12, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62690500026098, + 45.53068411891262 + ], + [ + -73.62683744490143, + 45.53079804425261 + ], + [ + -73.62684089134515, + 45.53079914632766 + ], + [ + -73.62693955812614, + 45.530839705841814 + ], + [ + -73.62700459560534, + 45.53073002598187 + ], + [ + -73.62699699071426, + 45.5307277470466 + ], + [ + -73.62700289124741, + 45.53071794664054 + ], + [ + -73.62690500026098, + 45.53068411891262 + ] + ] + ] + }, + "id": 113423, + "properties": { + "name": "03078265", + "address": "terrasse Saint-Roch (MTL) 7576", + "function": 1000, + "height": 12, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62799127190428, + 45.53147579449675 + ], + [ + -73.62791312312658, + 45.53160828700013 + ], + [ + -73.62800029210143, + 45.53163234642676 + ], + [ + -73.62800039196487, + 45.53163234631487 + ], + [ + -73.62809949226201, + 45.53150304718243 + ], + [ + -73.62809939239877, + 45.531503047294414 + ], + [ + -73.62799127190428, + 45.53147579449675 + ] + ] + ] + }, + "id": 116458, + "properties": { + "name": "03078301", + "address": "terrasse Saint-Roch (MTL) 7695", + "function": 1000, + "height": 10, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62771154762956, + 45.530985160946145 + ], + [ + -73.62764332139704, + 45.53110022310332 + ], + [ + -73.62774753943285, + 45.531131205029084 + ], + [ + -73.62781411637542, + 45.53101892425772 + ], + [ + -73.62771154762956, + 45.530985160946145 + ] + ] + ] + }, + "id": 118089, + "properties": { + "name": "03078246", + "address": "terrasse Saint-Roch (MTL) 7650", + "function": 1000, + "height": 11, + "year_of_construction": 1967 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62808528154298, + 45.53101656169505 + ], + [ + -73.62797744166184, + 45.53119955769833 + ], + [ + -73.6282289922282, + 45.531274346447226 + ], + [ + -73.628229692839, + 45.53127334683976 + ], + [ + -73.62834379276104, + 45.53109714634855 + ], + [ + -73.62808528154298, + 45.53101656169505 + ] + ] + ] + }, + "id": 124673, + "properties": { + "name": "03116281", + "address": "terrasse Saint-Roch (MTL) 7670", + "function": 1000, + "height": 11, + "year_of_construction": 1974 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.62306608986638, + 45.53123514589538 + ], + [ + -73.62307609011799, + 45.53123684661453 + ], + [ + -73.62307128947408, + 45.531251146625266 + ], + [ + -73.62307169042535, + 45.53125124697522 + ], + [ + -73.62324729035045, + 45.53128454694852 + ], + [ + -73.62324749110766, + 45.53128384665737 + ], + [ + -73.6232837901444, + 45.53114324637413 + ], + [ + -73.62354719026658, + 45.531176747141714 + ], + [ + -73.62354719132621, + 45.53117664635862 + ], + [ + -73.62373849147549, + 45.53086894638473 + ], + [ + -73.62381089067591, + 45.53089124602803 + ], + [ + -73.62387648993575, + 45.53078564721059 + ], + [ + -73.6237958908445, + 45.53075994610609 + ], + [ + -73.62387469036925, + 45.530637746251344 + ], + [ + -73.62389849084242, + 45.5306453465733 + ], + [ + -73.62402016196077, + 45.530424373385436 + ], + [ + -73.62400124661674, + 45.53041888420673 + ], + [ + -73.6240288982657, + 45.53037181240913 + ], + [ + -73.62370894342085, + 45.53027896844428 + ], + [ + -73.62371270490526, + 45.530272563816474 + ], + [ + -73.62369550245748, + 45.530267572142506 + ], + [ + -73.62366339055015, + 45.53030374624078 + ], + [ + -73.62352199140788, + 45.5305327471539 + ], + [ + -73.62354028982347, + 45.53053714647435 + ], + [ + -73.6234729907425, + 45.530675846612866 + ], + [ + -73.62347579097046, + 45.53067654636016 + ], + [ + -73.62353679058056, + 45.530686746668756 + ], + [ + -73.6235217906812, + 45.53073114654062 + ], + [ + -73.62344559093653, + 45.530718345920064 + ], + [ + -73.6234348905377, + 45.53075004620763 + ], + [ + -73.6224527899842, + 45.530586646872344 + ], + [ + -73.62245609060858, + 45.530576646124366 + ], + [ + -73.62245539007843, + 45.53057654609339 + ], + [ + -73.62233359060535, + 45.53055644642029 + ], + [ + -73.62231499003069, + 45.530612246449806 + ], + [ + -73.62233099021513, + 45.53061484694738 + ], + [ + -73.62229219028784, + 45.530731346535255 + ], + [ + -73.62236219082739, + 45.530743045964314 + ], + [ + -73.62224229077214, + 45.53109754615554 + ], + [ + -73.62306608986638, + 45.53123514589538 + ] + ] + ] + }, + "id": 107729, + "properties": { + "name": "05014001", + "address": "rue Jean-Talon Ouest (MTL+MTR) 375", + "function": 5499, + "height": 16, + "year_of_construction": 1931 + } + } + ] +} \ No newline at end of file diff --git a/pv_athena.py b/pv_athena.py index a38fa480..8a8257ed 100644 --- a/pv_athena.py +++ b/pv_athena.py @@ -87,7 +87,7 @@ for building in city.buildings: system_catalogue_handler='montreal_future', roof_percentage_coverage=0.75, facade_coverage_percentage=0, - csv_output=False, + csv_output=True, output_path=pv_assessment_path) pv_modeller.enrich() results = pv_modeller.results