feat: move python files to scripts directory

This commit is contained in:
Majid Rezaei 2024-12-06 14:06:47 -05:00
parent 514c7b09cb
commit 882760221d
7 changed files with 52 additions and 53 deletions

View File

@ -5,10 +5,9 @@ from hub.imports.construction_factory import ConstructionFactory
from hub.imports.results_factory import ResultFactory from hub.imports.results_factory import ResultFactory
from hub.exports.exports_factory import ExportsFactory from hub.exports.exports_factory import ExportsFactory
from hub.imports.weather_factory import WeatherFactory from hub.imports.weather_factory import WeatherFactory
from pv_assessment.electricity_demand_calculator import HourlyElectricityDemand
from pv_assessment.pv_system_assessment import PvSystemAssessment from pv_assessment.pv_system_assessment import PvSystemAssessment
from pv_assessment.solar_calculator import SolarCalculator from pv_assessment.solar_calculator import SolarCalculator
import random_assignation from scripts import random_assignation
import subprocess import subprocess
from pathlib import Path from pathlib import Path
import hub.helpers.constants as cte import hub.helpers.constants as cte

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<CitySim name="Cote-Saint-Luc_sra.xml"> <CitySim name="Cote-Saint-Luc_sra.xml">
<Simulation beginMonth="1" beginDay="1" endMonth="12" endDay="31"/> <Simulation beginMonth="1" beginDay="1" endMonth="12" endDay="31"/>
<Climate location="C:\Users\ab_reza\Majid\Concordia\Repositories\hub\out_files\sra_outputs\Cote-Saint-Luc.cli" city="Montreal Int'l"/> <Climate location="C:\Users\majid\PycharmProjects\hub\out_files\sra_outputs\Cote-Saint-Luc.cli" city="Montreal Int'l"/>
<District> <District>
<FarFieldObstructions/> <FarFieldObstructions/>
<Building Name="b23f32c4-1c76-4216-9f86-27296382da7f" id="0" key="b23f32c4-1c76-4216-9f86-27296382da7f" Simulate="true"> <Building Name="3c641355-e273-4bab-82ed-307a540ead6b" id="0" key="3c641355-e273-4bab-82ed-307a540ead6b" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="252.8418025788851" y="145.27913990989327" z="0.0"/> <V0 x="252.8418025788851" y="145.27913990989327" z="0.0"/>
<V1 x="253.3381420248188" y="138.13906684331596" z="0.0"/> <V1 x="253.3381420248188" y="138.13906684331596" z="0.0"/>
@ -58,7 +58,7 @@
<V5 x="252.8418025788851" y="145.27913990989327" z="0.0"/> <V5 x="252.8418025788851" y="145.27913990989327" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="5531917c-0c62-47e5-9803-0704a9817a9b" id="1" key="5531917c-0c62-47e5-9803-0704a9817a9b" Simulate="true"> <Building Name="d9a5bf79-b6b5-42ff-b857-4578e1aef9fd" id="1" key="d9a5bf79-b6b5-42ff-b857-4578e1aef9fd" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="270.578862213064" y="134.87987110204995" z="0.0"/> <V0 x="270.578862213064" y="134.87987110204995" z="0.0"/>
<V1 x="254.0689794565551" y="133.55688273441046" z="0.0"/> <V1 x="254.0689794565551" y="133.55688273441046" z="0.0"/>
@ -112,7 +112,7 @@
<V5 x="270.578862213064" y="134.87987110204995" z="0.0"/> <V5 x="270.578862213064" y="134.87987110204995" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="a6c06392-895e-4b36-b2aa-2118ea15cc9c" id="2" key="a6c06392-895e-4b36-b2aa-2118ea15cc9c" Simulate="true"> <Building Name="0d9ab7cb-f551-41b2-a9aa-9f1eae8f2927" id="2" key="0d9ab7cb-f551-41b2-a9aa-9f1eae8f2927" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="250.8321075150743" y="170.1839821897447" z="0.0"/> <V0 x="250.8321075150743" y="170.1839821897447" z="0.0"/>
<V1 x="251.39264970831573" y="163.01171941123903" z="0.0"/> <V1 x="251.39264970831573" y="163.01171941123903" z="0.0"/>
@ -166,7 +166,7 @@
<V5 x="250.8321075150743" y="170.1839821897447" z="0.0"/> <V5 x="250.8321075150743" y="170.1839821897447" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="8bb4e50e-2567-4e60-8d47-9f26c285c04b" id="3" key="8bb4e50e-2567-4e60-8d47-9f26c285c04b" Simulate="true"> <Building Name="c370d0ab-3074-4115-96a9-3ab933a2c0af" id="3" key="c370d0ab-3074-4115-96a9-3ab933a2c0af" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="230.2969871191308" y="57.582884550094604" z="0.0"/> <V0 x="230.2969871191308" y="57.582884550094604" z="0.0"/>
<V1 x="222.83410140452906" y="56.97401947900653" z="0.0"/> <V1 x="222.83410140452906" y="56.97401947900653" z="0.0"/>
@ -220,7 +220,7 @@
<V5 x="230.2969871191308" y="57.582884550094604" z="0.0"/> <V5 x="230.2969871191308" y="57.582884550094604" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="f6603391-ae30-409c-8bfc-a41e253557b0" id="4" key="f6603391-ae30-409c-8bfc-a41e253557b0" Simulate="true"> <Building Name="97d46c78-16f8-4be1-861a-187378045997" id="4" key="97d46c78-16f8-4be1-861a-187378045997" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="257.04113928135484" y="43.77400845102966" z="0.0"/> <V0 x="257.04113928135484" y="43.77400845102966" z="0.0"/>
<V1 x="255.26565298205242" y="59.80467318370938" z="0.0"/> <V1 x="255.26565298205242" y="59.80467318370938" z="0.0"/>
@ -274,7 +274,7 @@
<V5 x="257.04113928135484" y="43.77400845102966" z="0.0"/> <V5 x="257.04113928135484" y="43.77400845102966" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="6f71edd9-d178-4b85-b8ea-ff9e57783caa" id="5" key="6f71edd9-d178-4b85-b8ea-ff9e57783caa" Simulate="true"> <Building Name="eeec0579-354d-4d99-b620-3bb3ca611e86" id="5" key="eeec0579-354d-4d99-b620-3bb3ca611e86" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="161.94040444353595" y="46.68048408906907" z="0.0"/> <V0 x="161.94040444353595" y="46.68048408906907" z="0.0"/>
<V1 x="155.8381583476439" y="46.162260512821376" z="0.0"/> <V1 x="155.8381583476439" y="46.162260512821376" z="0.0"/>
@ -360,7 +360,7 @@
<V9 x="161.94040444353595" y="46.68048408906907" z="0.0"/> <V9 x="161.94040444353595" y="46.68048408906907" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="10ab592a-6afd-4836-9a50-e24c232c8986" id="6" key="10ab592a-6afd-4836-9a50-e24c232c8986" Simulate="true"> <Building Name="a07b8abe-8db4-4ed8-8096-255f3f1514a1" id="6" key="a07b8abe-8db4-4ed8-8096-255f3f1514a1" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="142.55380115052685" y="49.16670080833137" z="0.0"/> <V0 x="142.55380115052685" y="49.16670080833137" z="0.0"/>
<V1 x="135.28164442814887" y="48.563829503022134" z="0.0"/> <V1 x="135.28164442814887" y="48.563829503022134" z="0.0"/>
@ -414,7 +414,7 @@
<V5 x="142.55380115052685" y="49.16670080833137" z="0.0"/> <V5 x="142.55380115052685" y="49.16670080833137" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="294872dd-06a4-4e0f-b052-31d8084a92a1" id="7" key="294872dd-06a4-4e0f-b052-31d8084a92a1" Simulate="true"> <Building Name="a65b7661-c4a5-498c-947e-dd30c8ad909e" id="7" key="a65b7661-c4a5-498c-947e-dd30c8ad909e" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="40.47238557226956" y="116.77790292073041" z="0.0"/> <V0 x="40.47238557226956" y="116.77790292073041" z="0.0"/>
<V1 x="42.913086648099124" y="117.01612604223192" z="0.0"/> <V1 x="42.913086648099124" y="117.01612604223192" z="0.0"/>
@ -500,7 +500,7 @@
<V9 x="40.47238557226956" y="116.77790292073041" z="0.0"/> <V9 x="40.47238557226956" y="116.77790292073041" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="abbd5a33-8aa4-47ec-9e76-bdc761f9012f" id="8" key="abbd5a33-8aa4-47ec-9e76-bdc761f9012f" Simulate="true"> <Building Name="0420838e-0526-49eb-8aca-2fd255e4c2d6" id="8" key="0420838e-0526-49eb-8aca-2fd255e4c2d6" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="296.6744439410977" y="155.11623749695718" z="0.0"/> <V0 x="296.6744439410977" y="155.11623749695718" z="0.0"/>
<V1 x="284.9478677478619" y="154.35616981890053" z="0.0"/> <V1 x="284.9478677478619" y="154.35616981890053" z="0.0"/>
@ -586,7 +586,7 @@
<V9 x="296.6744439410977" y="155.11623749695718" z="0.0"/> <V9 x="296.6744439410977" y="155.11623749695718" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="431297b8-95d8-47dd-b69d-8ad53a03cf6d" id="9" key="431297b8-95d8-47dd-b69d-8ad53a03cf6d" Simulate="true"> <Building Name="71cde47c-8a81-44e0-8aed-46c9fd95ced1" id="9" key="71cde47c-8a81-44e0-8aed-46c9fd95ced1" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="292.7744867946021" y="112.32210690993816" z="0.0"/> <V0 x="292.7744867946021" y="112.32210690993816" z="0.0"/>
<V1 x="294.4589671883732" y="96.12307637743652" z="0.0"/> <V1 x="294.4589671883732" y="96.12307637743652" z="0.0"/>
@ -640,7 +640,7 @@
<V5 x="292.7744867946021" y="112.32210690993816" z="0.0"/> <V5 x="292.7744867946021" y="112.32210690993816" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="776006af-e60f-41a9-885c-5259037b3b08" id="10" key="776006af-e60f-41a9-885c-5259037b3b08" Simulate="true"> <Building Name="ef8d21c9-1763-47f1-970c-a97ff0b92e02" id="10" key="ef8d21c9-1763-47f1-970c-a97ff0b92e02" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="303.16726066498086" y="137.51073548011482" z="0.0"/> <V0 x="303.16726066498086" y="137.51073548011482" z="0.0"/>
<V1 x="286.6108673112467" y="136.38574585784227" z="0.0"/> <V1 x="286.6108673112467" y="136.38574585784227" z="0.0"/>
@ -694,7 +694,7 @@
<V5 x="303.16726066498086" y="137.51073548011482" z="0.0"/> <V5 x="303.16726066498086" y="137.51073548011482" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="aeae21ad-4f23-40bd-929e-8b5e8d7e84e3" id="11" key="aeae21ad-4f23-40bd-929e-8b5e8d7e84e3" Simulate="true"> <Building Name="e3679226-3978-493e-8c36-0b0d012d8056" id="11" key="e3679226-3978-493e-8c36-0b0d012d8056" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="286.40124527877197" y="111.75790410116315" z="0.0"/> <V0 x="286.40124527877197" y="111.75790410116315" z="0.0"/>
<V1 x="272.7985890493728" y="110.60445892624557" z="0.0"/> <V1 x="272.7985890493728" y="110.60445892624557" z="0.0"/>
@ -748,7 +748,7 @@
<V5 x="286.40124527877197" y="111.75790410116315" z="0.0"/> <V5 x="286.40124527877197" y="111.75790410116315" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="9e484fdc-ec57-40fb-8437-01436b0cac5d" id="12" key="9e484fdc-ec57-40fb-8437-01436b0cac5d" Simulate="true"> <Building Name="0152c24c-2fc7-490a-a2a3-4cec42f8bedb" id="12" key="0152c24c-2fc7-490a-a2a3-4cec42f8bedb" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="43.80990503076464" y="107.2875590370968" z="0.0"/> <V0 x="43.80990503076464" y="107.2875590370968" z="0.0"/>
<V1 x="45.04905711021274" y="93.15399473905563" z="0.0"/> <V1 x="45.04905711021274" y="93.15399473905563" z="0.0"/>
@ -802,7 +802,7 @@
<V5 x="43.80990503076464" y="107.2875590370968" z="0.0"/> <V5 x="43.80990503076464" y="107.2875590370968" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="a39dcb02-3339-455c-8e8e-d5a121e27e78" id="13" key="a39dcb02-3339-455c-8e8e-d5a121e27e78" Simulate="true"> <Building Name="0a2c6b9f-e883-4516-baf0-0ac612a669af" id="13" key="0a2c6b9f-e883-4516-baf0-0ac612a669af" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="298.9377388032153" y="174.1576697267592" z="0.0"/> <V0 x="298.9377388032153" y="174.1576697267592" z="0.0"/>
<V1 x="283.49676595814526" y="172.6676832586527" z="0.0"/> <V1 x="283.49676595814526" y="172.6676832586527" z="0.0"/>
@ -856,7 +856,7 @@
<V5 x="298.9377388032153" y="174.1576697267592" z="0.0"/> <V5 x="298.9377388032153" y="174.1576697267592" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="d624fdaa-2c20-4e64-880e-b19006941018" id="14" key="d624fdaa-2c20-4e64-880e-b19006941018" Simulate="true"> <Building Name="547541af-2a0a-4ada-9fe2-28634a4e9dd6" id="14" key="547541af-2a0a-4ada-9fe2-28634a4e9dd6" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="125.93713739328086" y="105.8988503003493" z="0.0"/> <V0 x="125.93713739328086" y="105.8988503003493" z="0.0"/>
<V1 x="127.28732038382441" y="91.81687696278095" z="0.0"/> <V1 x="127.28732038382441" y="91.81687696278095" z="0.0"/>
@ -910,7 +910,7 @@
<V5 x="125.93713739328086" y="105.8988503003493" z="0.0"/> <V5 x="125.93713739328086" y="105.8988503003493" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="17843d4d-3214-4923-8bc0-79d5dd19fd8d" id="15" key="17843d4d-3214-4923-8bc0-79d5dd19fd8d" Simulate="true"> <Building Name="5a3522cb-814d-4e99-a9df-831d2ce4b6e0" id="15" key="5a3522cb-814d-4e99-a9df-831d2ce4b6e0" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="98.4712375276722" y="96.095612809062" z="0.0"/> <V0 x="98.4712375276722" y="96.095612809062" z="0.0"/>
<V1 x="99.0164845706895" y="89.29334461782128" z="0.0"/> <V1 x="99.0164845706895" y="89.29334461782128" z="0.0"/>
@ -964,7 +964,7 @@
<V5 x="98.4712375276722" y="96.095612809062" z="0.0"/> <V5 x="98.4712375276722" y="96.095612809062" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="3abafab9-b4a0-4cb1-a404-91f6b0c9fbfd" id="16" key="3abafab9-b4a0-4cb1-a404-91f6b0c9fbfd" Simulate="true"> <Building Name="27c37400-181a-4ccf-a522-0faed81ec71f" id="16" key="27c37400-181a-4ccf-a522-0faed81ec71f" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="140.6616774983704" y="122.77136287558824" z="0.0"/> <V0 x="140.6616774983704" y="122.77136287558824" z="0.0"/>
<V1 x="137.80999981379136" y="122.42402574419975" z="0.0"/> <V1 x="137.80999981379136" y="122.42402574419975" z="0.0"/>
@ -1018,7 +1018,7 @@
<V5 x="140.6616774983704" y="122.77136287558824" z="0.0"/> <V5 x="140.6616774983704" y="122.77136287558824" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="5ab172af-292c-421f-a54d-fed7587b5abc" id="17" key="5ab172af-292c-421f-a54d-fed7587b5abc" Simulate="true"> <Building Name="a95c3a6f-2209-4f33-b518-382bab20592f" id="17" key="a95c3a6f-2209-4f33-b518-382bab20592f" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="144.18880078056827" y="88.20479937829077" z="0.0"/> <V0 x="144.18880078056827" y="88.20479937829077" z="0.0"/>
<V1 x="140.19795685261488" y="87.83892779797316" z="0.0"/> <V1 x="140.19795685261488" y="87.83892779797316" z="0.0"/>
@ -1072,7 +1072,7 @@
<V5 x="144.18880078056827" y="88.20479937829077" z="0.0"/> <V5 x="144.18880078056827" y="88.20479937829077" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="02d89af0-7e64-4760-9c8b-314645592e1c" id="18" key="02d89af0-7e64-4760-9c8b-314645592e1c" Simulate="true"> <Building Name="f7fed744-cb23-4c69-820a-e2542fae13f5" id="18" key="f7fed744-cb23-4c69-820a-e2542fae13f5" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="235.28080077655613" y="27.29358737077564" z="0.0"/> <V0 x="235.28080077655613" y="27.29358737077564" z="0.0"/>
<V1 x="219.56258505024016" y="26.081432830542326" z="0.0"/> <V1 x="219.56258505024016" y="26.081432830542326" z="0.0"/>
@ -1110,7 +1110,7 @@
<V3 x="235.28080077655613" y="27.29358737077564" z="0.0"/> <V3 x="235.28080077655613" y="27.29358737077564" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="4f911860-6560-4f23-9308-754157e631b4" id="19" key="4f911860-6560-4f23-9308-754157e631b4" Simulate="true"> <Building Name="60a1dc07-02e1-4298-8370-ed7a06e78e8a" id="19" key="60a1dc07-02e1-4298-8370-ed7a06e78e8a" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="182.71344033209607" y="6.228593356907368" z="0.0"/> <V0 x="182.71344033209607" y="6.228593356907368" z="0.0"/>
<V1 x="198.75047450652346" y="8.043766552582383" z="0.0"/> <V1 x="198.75047450652346" y="8.043766552582383" z="0.0"/>
@ -1148,7 +1148,7 @@
<V3 x="182.71344033209607" y="6.228593356907368" z="0.0"/> <V3 x="182.71344033209607" y="6.228593356907368" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="48edd03b-9e9c-4d70-b168-416edd67420c" id="20" key="48edd03b-9e9c-4d70-b168-416edd67420c" Simulate="true"> <Building Name="4d2a20ec-b1a4-4e2b-babe-d87506c308dd" id="20" key="4d2a20ec-b1a4-4e2b-babe-d87506c308dd" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="268.1755224764347" y="110.04401918128133" z="0.0"/> <V0 x="268.1755224764347" y="110.04401918128133" z="0.0"/>
<V1 x="254.96527183707803" y="108.77242698986083" z="0.0"/> <V1 x="254.96527183707803" y="108.77242698986083" z="0.0"/>
@ -1202,7 +1202,7 @@
<V5 x="268.1755224764347" y="110.04401918128133" z="0.0"/> <V5 x="268.1755224764347" y="110.04401918128133" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="931de8dc-1cd4-4863-8d84-9de81eda1691" id="21" key="931de8dc-1cd4-4863-8d84-9de81eda1691" Simulate="true"> <Building Name="bec85416-a0bd-47a9-a205-2b4e4aacdd19" id="21" key="bec85416-a0bd-47a9-a205-2b4e4aacdd19" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="103.23020217986777" y="0.0" z="0.0"/> <V0 x="103.23020217986777" y="0.0" z="0.0"/>
<V1 x="119.48931491049007" y="0.8167491620406508" z="0.0"/> <V1 x="119.48931491049007" y="0.8167491620406508" z="0.0"/>
@ -1240,7 +1240,7 @@
<V3 x="103.23020217986777" y="0.0" z="0.0"/> <V3 x="103.23020217986777" y="0.0" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="cbeb0460-1e82-4d29-baa7-63974cc9fbec" id="22" key="cbeb0460-1e82-4d29-baa7-63974cc9fbec" Simulate="true"> <Building Name="f406c54b-9b52-4a58-b6dd-83d07f048789" id="22" key="f406c54b-9b52-4a58-b6dd-83d07f048789" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="102.8413198562339" y="45.28462457936257" z="0.0"/> <V0 x="102.8413198562339" y="45.28462457936257" z="0.0"/>
<V1 x="103.3680181959644" y="41.80345819145441" z="0.0"/> <V1 x="103.3680181959644" y="41.80345819145441" z="0.0"/>
@ -1294,7 +1294,7 @@
<V5 x="102.8413198562339" y="45.28462457936257" z="0.0"/> <V5 x="102.8413198562339" y="45.28462457936257" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="3f49bfb3-db6d-46d0-8077-8b9021e17380" id="23" key="3f49bfb3-db6d-46d0-8077-8b9021e17380" Simulate="true"> <Building Name="1b0b0484-9203-4d8c-a3cb-bd290e32cc44" id="23" key="1b0b0484-9203-4d8c-a3cb-bd290e32cc44" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="123.08897100854665" y="0.6125756837427616" z="0.0"/> <V0 x="123.08897100854665" y="0.6125756837427616" z="0.0"/>
<V1 x="139.1994163529016" y="2.0641534524038434" z="0.0"/> <V1 x="139.1994163529016" y="2.0641534524038434" z="0.0"/>
@ -1332,7 +1332,7 @@
<V3 x="123.08897100854665" y="0.6125756837427616" z="0.0"/> <V3 x="123.08897100854665" y="0.6125756837427616" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="cedc5cba-2ac7-474a-b4ff-92e692cee94b" id="24" key="cedc5cba-2ac7-474a-b4ff-92e692cee94b" Simulate="true"> <Building Name="353042ed-4438-4bb6-ba34-b028d8776412" id="24" key="353042ed-4438-4bb6-ba34-b028d8776412" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="192.7265291819349" y="181.77622536942363" z="0.0"/> <V0 x="192.7265291819349" y="181.77622536942363" z="0.0"/>
<V1 x="185.50249281479046" y="180.65373811591417" z="0.0"/> <V1 x="185.50249281479046" y="180.65373811591417" z="0.0"/>
@ -1386,7 +1386,7 @@
<V5 x="192.7265291819349" y="181.77622536942363" z="0.0"/> <V5 x="192.7265291819349" y="181.77622536942363" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="6e11f9e9-2eba-48b5-8ec2-a8c8794456ea" id="25" key="6e11f9e9-2eba-48b5-8ec2-a8c8794456ea" Simulate="true"> <Building Name="bc5ef907-4fac-4b41-a772-dbb9633422b4" id="25" key="bc5ef907-4fac-4b41-a772-dbb9633422b4" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="173.38094454118982" y="175.19476821552962" z="0.0"/> <V0 x="173.38094454118982" y="175.19476821552962" z="0.0"/>
<V1 x="166.99390063714236" y="174.68341152742505" z="0.0"/> <V1 x="166.99390063714236" y="174.68341152742505" z="0.0"/>
@ -1440,7 +1440,7 @@
<V5 x="173.38094454118982" y="175.19476821552962" z="0.0"/> <V5 x="173.38094454118982" y="175.19476821552962" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="150d424f-b415-425e-8195-dc46d98b0f68" id="26" key="150d424f-b415-425e-8195-dc46d98b0f68" Simulate="true"> <Building Name="6e930a64-2cb2-47b1-83bb-4d659dbd3eca" id="26" key="6e930a64-2cb2-47b1-83bb-4d659dbd3eca" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="171.4377039419487" y="146.03789254836738" z="0.0"/> <V0 x="171.4377039419487" y="146.03789254836738" z="0.0"/>
<V1 x="171.69056517304853" y="139.0847764769569" z="0.0"/> <V1 x="171.69056517304853" y="139.0847764769569" z="0.0"/>
@ -1494,7 +1494,7 @@
<V5 x="171.4377039419487" y="146.03789254836738" z="0.0"/> <V5 x="171.4377039419487" y="146.03789254836738" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="58b1cda3-ca0e-4da3-9670-58f216b6d388" id="27" key="58b1cda3-ca0e-4da3-9670-58f216b6d388" Simulate="true"> <Building Name="cc069979-172f-4ae6-acb2-977693feba4b" id="27" key="cc069979-172f-4ae6-acb2-977693feba4b" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="56.65284207742661" y="152.1312268320471" z="0.0"/> <V0 x="56.65284207742661" y="152.1312268320471" z="0.0"/>
<V1 x="52.45622698077932" y="151.6878424808383" z="0.0"/> <V1 x="52.45622698077932" y="151.6878424808383" z="0.0"/>
@ -1548,7 +1548,7 @@
<V5 x="56.65284207742661" y="152.1312268320471" z="0.0"/> <V5 x="56.65284207742661" y="152.1312268320471" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="202cf9bc-21ac-4509-b2a7-d8da756eaeec" id="28" key="202cf9bc-21ac-4509-b2a7-d8da756eaeec" Simulate="true"> <Building Name="a703b129-486f-49d7-9362-db55da494ed1" id="28" key="a703b129-486f-49d7-9362-db55da494ed1" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="26.105375934392214" y="165.79280115570873" z="0.0"/> <V0 x="26.105375934392214" y="165.79280115570873" z="0.0"/>
<V1 x="18.860310770571232" y="165.08516912069172" z="0.0"/> <V1 x="18.860310770571232" y="165.08516912069172" z="0.0"/>
@ -1602,7 +1602,7 @@
<V5 x="26.105375934392214" y="165.79280115570873" z="0.0"/> <V5 x="26.105375934392214" y="165.79280115570873" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="bb8fca73-40fc-463b-8757-701b30b41daf" id="29" key="bb8fca73-40fc-463b-8757-701b30b41daf" Simulate="true"> <Building Name="220a3f19-9d04-479b-a6f7-01bd8e179d9e" id="29" key="220a3f19-9d04-479b-a6f7-01bd8e179d9e" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="40.640232062898576" y="138.289224088192" z="0.0"/> <V0 x="40.640232062898576" y="138.289224088192" z="0.0"/>
<V1 x="41.87146586552262" y="124.3089344855398" z="0.0"/> <V1 x="41.87146586552262" y="124.3089344855398" z="0.0"/>
@ -1656,7 +1656,7 @@
<V5 x="40.640232062898576" y="138.289224088192" z="0.0"/> <V5 x="40.640232062898576" y="138.289224088192" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="8c46e6bb-dcc4-4e11-bdc0-81b6ac4e3d49" id="30" key="8c46e6bb-dcc4-4e11-bdc0-81b6ac4e3d49" Simulate="true"> <Building Name="c51d3e05-2cb6-4347-b6fa-88a3345fd2cc" id="30" key="c51d3e05-2cb6-4347-b6fa-88a3345fd2cc" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="158.69041680265218" y="3.605831961147487" z="0.0"/> <V0 x="158.69041680265218" y="3.605831961147487" z="0.0"/>
<V1 x="157.29599809460342" y="17.84460875764489" z="0.0"/> <V1 x="157.29599809460342" y="17.84460875764489" z="0.0"/>
@ -1694,7 +1694,7 @@
<V3 x="158.69041680265218" y="3.605831961147487" z="0.0"/> <V3 x="158.69041680265218" y="3.605831961147487" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="5ea282c2-c56e-4e8f-80e1-baf4812afec6" id="31" key="5ea282c2-c56e-4e8f-80e1-baf4812afec6" Simulate="true"> <Building Name="9c74f70b-deb6-45fb-bf68-b68e5bec75e1" id="31" key="9c74f70b-deb6-45fb-bf68-b68e5bec75e1" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="314.173139271792" y="34.186089124530554" z="0.0"/> <V0 x="314.173139271792" y="34.186089124530554" z="0.0"/>
<V1 x="294.6644852575846" y="32.81448222976178" z="0.0"/> <V1 x="294.6644852575846" y="32.81448222976178" z="0.0"/>
@ -1748,7 +1748,7 @@
<V5 x="314.173139271792" y="34.186089124530554" z="0.0"/> <V5 x="314.173139271792" y="34.186089124530554" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="c691be6f-455a-494c-82b0-43bc61618f13" id="32" key="c691be6f-455a-494c-82b0-43bc61618f13" Simulate="true"> <Building Name="1627ba9d-e849-431b-9093-a88226018491" id="32" key="1627ba9d-e849-431b-9093-a88226018491" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="291.22722493717447" y="31.70701546035707" z="0.0"/> <V0 x="291.22722493717447" y="31.70701546035707" z="0.0"/>
<V1 x="272.7032928704284" y="28.966235221363604" z="0.0"/> <V1 x="272.7032928704284" y="28.966235221363604" z="0.0"/>
@ -1786,7 +1786,7 @@
<V3 x="291.22722493717447" y="31.70701546035707" z="0.0"/> <V3 x="291.22722493717447" y="31.70701546035707" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="a288d5b1-c637-488b-b9de-07708b60fc23" id="33" key="a288d5b1-c637-488b-b9de-07708b60fc23" Simulate="true"> <Building Name="36fe4a33-b701-4a7c-a88c-60eb8fb06764" id="33" key="36fe4a33-b701-4a7c-a88c-60eb8fb06764" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="106.09180145524442" y="147.80015710834414" z="0.0"/> <V0 x="106.09180145524442" y="147.80015710834414" z="0.0"/>
<V1 x="104.87396091967821" y="159.6595618519932" z="0.0"/> <V1 x="104.87396091967821" y="159.6595618519932" z="0.0"/>
@ -1840,7 +1840,7 @@
<V5 x="106.09180145524442" y="147.80015710834414" z="0.0"/> <V5 x="106.09180145524442" y="147.80015710834414" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="0e8e2bde-9ca3-45be-beca-264e6b82e9df" id="34" key="0e8e2bde-9ca3-45be-beca-264e6b82e9df" Simulate="true"> <Building Name="4e9558a3-8bcb-4b83-ab17-23cf73055c6a" id="34" key="4e9558a3-8bcb-4b83-ab17-23cf73055c6a" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="94.70581825589761" y="130.792430896312" z="0.0"/> <V0 x="94.70581825589761" y="130.792430896312" z="0.0"/>
<V1 x="95.3922145976685" y="123.9156803227961" z="0.0"/> <V1 x="95.3922145976685" y="123.9156803227961" z="0.0"/>
@ -1942,7 +1942,7 @@
<V11 x="94.70581825589761" y="130.792430896312" z="0.0"/> <V11 x="94.70581825589761" y="130.792430896312" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="329b5d80-5e31-444e-abcc-ac897e93e191" id="35" key="329b5d80-5e31-444e-abcc-ac897e93e191" Simulate="true"> <Building Name="e4621a8d-9d23-444d-a9cb-1ba4edba283b" id="35" key="e4621a8d-9d23-444d-a9cb-1ba4edba283b" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="133.68293505441397" y="157.30510208569467" z="0.0"/> <V0 x="133.68293505441397" y="157.30510208569467" z="0.0"/>
<V1 x="133.27703123539686" y="162.1950120460242" z="0.0"/> <V1 x="133.27703123539686" y="162.1950120460242" z="0.0"/>
@ -1996,7 +1996,7 @@
<V5 x="133.68293505441397" y="157.30510208569467" z="0.0"/> <V5 x="133.68293505441397" y="157.30510208569467" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="5fec1291-607e-43e4-89b9-fb40740ac36b" id="36" key="5fec1291-607e-43e4-89b9-fb40740ac36b" Simulate="true"> <Building Name="23ad5d8d-cede-4a05-bf81-1f8ed19bf2ed" id="36" key="23ad5d8d-cede-4a05-bf81-1f8ed19bf2ed" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="86.73493772139773" y="172.17876095697284" z="0.0"/> <V0 x="86.73493772139773" y="172.17876095697284" z="0.0"/>
<V1 x="87.44805078301579" y="165.24625734891742" z="0.0"/> <V1 x="87.44805078301579" y="165.24625734891742" z="0.0"/>
@ -2050,7 +2050,7 @@
<V5 x="86.73493772139773" y="172.17876095697284" z="0.0"/> <V5 x="86.73493772139773" y="172.17876095697284" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="71bf70cb-c0cc-4716-aefa-b819e09cfcca" id="37" key="71bf70cb-c0cc-4716-aefa-b819e09cfcca" Simulate="true"> <Building Name="81b70c8d-9537-498a-bcaf-e5f6231524e5" id="37" key="81b70c8d-9537-498a-bcaf-e5f6231524e5" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="270.04081647330895" y="28.961183870211244" z="0.0"/> <V0 x="270.04081647330895" y="28.961183870211244" z="0.0"/>
<V1 x="253.07060858560726" y="27.26723333168775" z="0.0"/> <V1 x="253.07060858560726" y="27.26723333168775" z="0.0"/>
@ -2088,7 +2088,7 @@
<V3 x="270.04081647330895" y="28.961183870211244" z="0.0"/> <V3 x="270.04081647330895" y="28.961183870211244" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="045ae2b1-2804-4b1d-b634-1eaf250aa09d" id="38" key="045ae2b1-2804-4b1d-b634-1eaf250aa09d" Simulate="true"> <Building Name="1de20706-ae87-46d0-a6bf-7ef7adde50fc" id="38" key="1de20706-ae87-46d0-a6bf-7ef7adde50fc" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="218.4297827826813" y="119.01233381498605" z="0.0"/> <V0 x="218.4297827826813" y="119.01233381498605" z="0.0"/>
<V1 x="206.43092924635857" y="118.11396356951445" z="0.0"/> <V1 x="206.43092924635857" y="118.11396356951445" z="0.0"/>
@ -2142,7 +2142,7 @@
<V5 x="218.4297827826813" y="119.01233381498605" z="0.0"/> <V5 x="218.4297827826813" y="119.01233381498605" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="f1421899-916e-468d-b19c-4ef36559caad" id="39" key="f1421899-916e-468d-b19c-4ef36559caad" Simulate="true"> <Building Name="c244038b-e77b-445f-a17e-33b9568a041e" id="39" key="c244038b-e77b-445f-a17e-33b9568a041e" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="1.6098596770316362" y="147.3981438195333" z="0.0"/> <V0 x="1.6098596770316362" y="147.3981438195333" z="0.0"/>
<V1 x="15.217196955345571" y="148.71815025806427" z="0.0"/> <V1 x="15.217196955345571" y="148.71815025806427" z="0.0"/>
@ -2196,7 +2196,7 @@
<V5 x="1.6098596770316362" y="147.3981438195333" z="0.0"/> <V5 x="1.6098596770316362" y="147.3981438195333" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="cd67bc34-9e39-4ee6-b128-8686ab47ae81" id="40" key="cd67bc34-9e39-4ee6-b128-8686ab47ae81" Simulate="true"> <Building Name="1ec3aa37-05cf-4ac4-98cc-0dc96e84dccd" id="40" key="1ec3aa37-05cf-4ac4-98cc-0dc96e84dccd" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="212.41115822130814" y="182.8532010242343" z="0.0"/> <V0 x="212.41115822130814" y="182.8532010242343" z="0.0"/>
<V1 x="205.41073146369308" y="182.30983972549438" z="0.0"/> <V1 x="205.41073146369308" y="182.30983972549438" z="0.0"/>
@ -2250,7 +2250,7 @@
<V5 x="212.41115822130814" y="182.8532010242343" z="0.0"/> <V5 x="212.41115822130814" y="182.8532010242343" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="f46623ec-bd96-425b-81d4-45b784c8c19b" id="41" key="f46623ec-bd96-425b-81d4-45b784c8c19b" Simulate="true"> <Building Name="ef89ceed-0c0c-4416-b93f-c30bbe5dff17" id="41" key="ef89ceed-0c0c-4416-b93f-c30bbe5dff17" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="215.29329879162833" y="156.3347719591111" z="0.0"/> <V0 x="215.29329879162833" y="156.3347719591111" z="0.0"/>
<V1 x="203.0281209377572" y="155.24067481886595" z="0.0"/> <V1 x="203.0281209377572" y="155.24067481886595" z="0.0"/>
@ -2304,7 +2304,7 @@
<V5 x="215.29329879162833" y="156.3347719591111" z="0.0"/> <V5 x="215.29329879162833" y="156.3347719591111" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="19882f64-3c2d-4ff1-972e-e5f5b91af1d2" id="42" key="19882f64-3c2d-4ff1-972e-e5f5b91af1d2" Simulate="true"> <Building Name="2ad2e146-7dd5-4c6e-aa90-9190cde4bbb0" id="42" key="2ad2e146-7dd5-4c6e-aa90-9190cde4bbb0" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="221.1843020725064" y="138.1693693548441" z="0.0"/> <V0 x="221.1843020725064" y="138.1693693548441" z="0.0"/>
<V1 x="205.09280527196825" y="136.97576061077416" z="0.0"/> <V1 x="205.09280527196825" y="136.97576061077416" z="0.0"/>
@ -2358,7 +2358,7 @@
<V5 x="221.1843020725064" y="138.1693693548441" z="0.0"/> <V5 x="221.1843020725064" y="138.1693693548441" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="93d429e3-0928-44c4-a186-8ff88edae365" id="43" key="93d429e3-0928-44c4-a186-8ff88edae365" Simulate="true"> <Building Name="ceeeef51-e443-4303-b468-9cba40035477" id="43" key="ceeeef51-e443-4303-b468-9cba40035477" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="99.42549244500697" y="84.18990346044302" z="0.0"/> <V0 x="99.42549244500697" y="84.18990346044302" z="0.0"/>
<V1 x="95.00459082284942" y="83.87207418587059" z="0.0"/> <V1 x="95.00459082284942" y="83.87207418587059" z="0.0"/>
@ -2444,7 +2444,7 @@
<V9 x="99.42549244500697" y="84.18990346044302" z="0.0"/> <V9 x="99.42549244500697" y="84.18990346044302" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="cdc951b2-b860-4bcc-9dd7-53a9b80c6623" id="44" key="cdc951b2-b860-4bcc-9dd7-53a9b80c6623" Simulate="true"> <Building Name="c0145c04-f1f6-410f-8481-7ef9fe8b408a" id="44" key="c0145c04-f1f6-410f-8481-7ef9fe8b408a" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="92.60565218282863" y="111.51006636023521" z="0.0"/> <V0 x="92.60565218282863" y="111.51006636023521" z="0.0"/>
<V1 x="109.35519357491285" y="113.17880994919688" z="0.0"/> <V1 x="109.35519357491285" y="113.17880994919688" z="0.0"/>
@ -2498,7 +2498,7 @@
<V5 x="92.60565218282863" y="111.51006636023521" z="0.0"/> <V5 x="92.60565218282863" y="111.51006636023521" z="0.0"/>
</Floor> </Floor>
</Building> </Building>
<Building Name="ed891db7-8753-4893-be99-b4066b17edb6" id="45" key="ed891db7-8753-4893-be99-b4066b17edb6" Simulate="true"> <Building Name="7eef4c34-0e5b-46f2-a1ec-2150c3cbff97" id="45" key="7eef4c34-0e5b-46f2-a1ec-2150c3cbff97" Simulate="true">
<Wall id="2" ShortWaveReflectance="0.3"> <Wall id="2" ShortWaveReflectance="0.3">
<V0 x="122.31837747106329" y="140.26624751836061" z="0.0"/> <V0 x="122.31837747106329" y="140.26624751836061" z="0.0"/>
<V1 x="123.94154656957835" y="126.46405025944114" z="0.0"/> <V1 x="123.94154656957835" y="126.46405025944114" z="0.0"/>

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@ import geopandas as gpd
from shapely.geometry import Polygon, MultiPolygon from shapely.geometry import Polygon, MultiPolygon
from shapely.geometry.polygon import orient from shapely.geometry.polygon import orient
input_file = 'data/selected_buildings.geojson' input_file = '../data/selected_buildings.geojson'
output_file = 'data/selected_buildings_corrected.geojson' output_file = 'data/selected_buildings_corrected.geojson'

View File

@ -1,7 +1,7 @@
import json import json
from collections import defaultdict from collections import defaultdict
input_filename = "./data/cerc_cmm_corrected.geojson" input_filename = "../data/cerc_cmm_corrected.geojson"
with open(input_filename, "r", encoding="utf-8") as f: with open(input_filename, "r", encoding="utf-8") as f:
data = json.load(f) data = json.load(f)

View File

@ -11,7 +11,7 @@ points = [
bounding_polygon = Polygon(points) bounding_polygon = Polygon(points)
geojson_path = './data/cerc_cmm_corrected.geojson' geojson_path = '../data/cerc_cmm_corrected.geojson'
gdf = gpd.read_file(geojson_path) gdf = gpd.read_file(geojson_path)
filtered_gdf = gdf[gdf.intersects(bounding_polygon)] filtered_gdf = gdf[gdf.intersects(bounding_polygon)]