From 04a56b56956f36bef791a14b03623ede0bb0d8b8 Mon Sep 17 00:00:00 2001 From: jgavalda Date: Mon, 29 Jan 2024 11:46:06 -0500 Subject: [PATCH] Rechanged the Minimal.idf to give the necessary results, without additional stuff not used by the tool --- input_files/output_buildings.geojson | 1541 ++++++++++++++++++++++++++ main.py | 8 +- 2 files changed, 1545 insertions(+), 4 deletions(-) create mode 100644 input_files/output_buildings.geojson diff --git a/input_files/output_buildings.geojson b/input_files/output_buildings.geojson new file mode 100644 index 0000000..83aa906 --- /dev/null +++ b/input_files/output_buildings.geojson @@ -0,0 +1,1541 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61499907425616, + 45.603685248360506 + ], + [ + -73.61484748292155, + 45.603764822318034 + ], + [ + -73.61494329227624, + 45.603857459456094 + ], + [ + -73.61494809318485, + 45.603854959404416 + ], + [ + -73.6150962923078, + 45.6037802594975 + ], + [ + -73.61499907425616, + 45.603685248360506 + ] + ] + ] + }, + "id": 75420, + "properties": { + "name": "02089355", + "address": "avenue Gervais (MTN) 10987", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61548175720743, + 45.60349084775409 + ], + [ + -73.61533235786851, + 45.603567897925885 + ], + [ + -73.61542919379944, + 45.60366205883057 + ], + [ + -73.61557949384787, + 45.60358595963936 + ], + [ + -73.61548175720743, + 45.60349084775409 + ] + ] + ] + }, + "id": 75421, + "properties": { + "name": "02089356", + "address": "avenue Gervais (MTN) 10990", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61497439347845, + 45.60388565933905 + ], + [ + -73.61507593486577, + 45.603983952307814 + ], + [ + -73.61522751108303, + 45.603904378065494 + ], + [ + -73.61512769316396, + 45.60380765909074 + ], + [ + -73.61497439347845, + 45.60388565933905 + ] + ] + ] + }, + "id": 75422, + "properties": { + "name": "02089358", + "address": "avenue Gervais (MTN) 10991", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6153107613968, + 45.602896656610994 + ], + [ + -73.61516310498037, + 45.60297280858217 + ], + [ + -73.6152588923976, + 45.60306765906593 + ], + [ + -73.61540859365985, + 45.60299215908094 + ], + [ + -73.6153107613968, + 45.602896656610994 + ] + ] + ] + }, + "id": 75889, + "properties": { + "name": "02079338", + "address": "boulevard Lacordaire (MTN+SLN) 10973", + "function": "1000", + "height": 10, + "year_of_construction": 1971 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61474519230998, + 45.60366585952367 + ], + [ + -73.61484748292155, + 45.603764822318034 + ], + [ + -73.61499907425616, + 45.603685248360506 + ], + [ + -73.61489939399719, + 45.603587759691656 + ], + [ + -73.61474519230998, + 45.60366585952367 + ] + ] + ] + }, + "id": 76332, + "properties": { + "name": "02089351", + "address": "avenue Gervais (MTN) 10983", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61523719338359, + 45.603475359439884 + ], + [ + -73.61533235786851, + 45.603567897925885 + ], + [ + -73.61548175720743, + 45.60349084775409 + ], + [ + -73.61546359304512, + 45.60347315931254 + ], + [ + -73.61546709391335, + 45.60347186002269 + ], + [ + -73.61540349291307, + 45.60341295950539 + ], + [ + -73.61539589297817, + 45.60341765888239 + ], + [ + -73.61538069329073, + 45.603402759597124 + ], + [ + -73.61523719338359, + 45.603475359439884 + ] + ] + ] + }, + "id": 76333, + "properties": { + "name": "02089353", + "address": "avenue Gervais (MTN) 10986", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61640369353074, + 45.60417035963754 + ], + [ + -73.61629369428339, + 45.60422805881179 + ], + [ + -73.61640639324784, + 45.60433395986971 + ], + [ + -73.61654018298667, + 45.604263817805226 + ], + [ + -73.61642865685593, + 45.604157276805324 + ], + [ + -73.61640369353074, + 45.60417035963754 + ] + ] + ] + }, + "id": 76384, + "properties": { + "name": "02084306", + "address": "rue de Charleroi (MTN) 5790", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61553937805786, + 45.60311568566028 + ], + [ + -73.61539043055541, + 45.60319250330074 + ], + [ + -73.61548819332873, + 45.60328755945339 + ], + [ + -73.61563809274514, + 45.603211659446934 + ], + [ + -73.61553937805786, + 45.60311568566028 + ] + ] + ] + }, + "id": 76496, + "properties": { + "name": "02079342", + "address": "boulevard Lacordaire (MTN+SLN) 10981", + "function": "1000", + "height": 11, + "year_of_construction": 1971 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6155180923952, + 45.603316559453134 + ], + [ + -73.61561794359203, + 45.603412102886914 + ], + [ + -73.61576884552163, + 45.603334276965214 + ], + [ + -73.61566909317466, + 45.60323885953777 + ], + [ + -73.6155180923952, + 45.603316559453134 + ] + ] + ] + }, + "id": 76508, + "properties": { + "name": "02079344", + "address": "boulevard Lacordaire (MTN+SLN) 10985", + "function": "1000", + "height": 10, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61501949376128, + 45.604499859390366 + ], + [ + -73.61511584356916, + 45.6045902300629 + ], + [ + -73.61541108866092, + 45.60443527347241 + ], + [ + -73.61531469368838, + 45.60434485990031 + ], + [ + -73.61501949376128, + 45.604499859390366 + ] + ] + ] + }, + "id": 77673, + "properties": { + "name": "02089406", + "address": "avenue Mass\u00e9 (MTN) 11004", + "function": "3019", + "height": 8, + "year_of_construction": 1971 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61611959244938, + 45.60338005962458 + ], + [ + -73.61594169401721, + 45.60347005928077 + ], + [ + -73.61594509261393, + 45.60347325921668 + ], + [ + -73.61645719376018, + 45.603966759690735 + ], + [ + -73.61646189354188, + 45.60396435865956 + ], + [ + -73.61664419372582, + 45.60386945954627 + ], + [ + -73.61612479409757, + 45.60337735935422 + ], + [ + -73.61611959244938, + 45.60338005962458 + ] + ] + ] + }, + "id": 78120, + "properties": { + "name": "02161587", + "address": "boulevard Lacordaire (MTN+SLN) 11001", + "function": "1000", + "height": 20, + "year_of_construction": 1975 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61668479364916, + 45.603080759922875 + ], + [ + -73.61653869393507, + 45.60315645946636 + ], + [ + -73.61663999220812, + 45.60325181426906 + ], + [ + -73.61678733814342, + 45.6031749147532 + ], + [ + -73.61668849299188, + 45.603078759427206 + ], + [ + -73.61668479364916, + 45.603080759922875 + ] + ] + ] + }, + "id": 78835, + "properties": { + "name": "02161584", + "address": "boulevard Lacordaire (MTN+SLN) 10990", + "function": "1000", + "height": 11, + "year_of_construction": 1968 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61548419244404, + 45.60370805910522 + ], + [ + -73.61548799330288, + 45.603711758951924 + ], + [ + -73.61599319327114, + 45.60419225965971 + ], + [ + -73.6161776937, + 45.60409495922138 + ], + [ + -73.61566799266951, + 45.60361845911205 + ], + [ + -73.61548419244404, + 45.60370805910522 + ] + ] + ] + }, + "id": 79573, + "properties": { + "name": "02089365", + "address": "avenue Gervais (MTN) 11000", + "function": "1000", + "height": 20, + "year_of_construction": 1975 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61541108866092, + 45.60443527347241 + ], + [ + -73.61511584356916, + 45.6045902300629 + ], + [ + -73.61520479279986, + 45.60467365965111 + ], + [ + -73.61549999312633, + 45.604518659686555 + ], + [ + -73.61541108866092, + 45.60443527347241 + ] + ] + ] + }, + "id": 80067, + "properties": { + "name": "02089410", + "address": "avenue Mass\u00e9 (MTN) 11008", + "function": "4299", + "height": 8, + "year_of_construction": 1971 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6149045901747, + 45.6039641306204 + ], + [ + -73.61461371294497, + 45.60411679507161 + ], + [ + -73.61470259234297, + 45.604200659744315 + ], + [ + -73.61499399374732, + 45.604048458852276 + ], + [ + -73.6149045901747, + 45.6039641306204 + ] + ] + ] + }, + "id": 80319, + "properties": { + "name": "02089394", + "address": "avenue Mass\u00e9 (MTN) 10988", + "function": "4299", + "height": 6, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61568598567183, + 45.60434179851926 + ], + [ + -73.61553609932277, + 45.60442050152183 + ], + [ + -73.61563409291918, + 45.60451255997145 + ], + [ + -73.61578409388832, + 45.60443406008638 + ], + [ + -73.61568598567183, + 45.60434179851926 + ] + ] + ] + }, + "id": 80512, + "properties": { + "name": "02089371", + "address": "avenue Gervais (MTN) 11011", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61533169293268, + 45.604224359476795 + ], + [ + -73.61540089270618, + 45.604294959322246 + ], + [ + -73.61540489323033, + 45.60429285958335 + ], + [ + -73.61555229346972, + 45.60421715928984 + ], + [ + -73.61545509938888, + 45.604123953577336 + ], + [ + -73.61530872718082, + 45.604200803588036 + ], + [ + -73.61533169293268, + 45.604224359476795 + ] + ] + ] + }, + "id": 99414, + "properties": { + "name": "02089367", + "address": "avenue Gervais (MTN) 11003", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61496919336695, + 45.60322265920964 + ], + [ + -73.61511969316, + 45.60314545992759 + ], + [ + -73.61504009260437, + 45.60306935892922 + ], + [ + -73.61503949342476, + 45.60307035924083 + ], + [ + -73.61502235119765, + 45.603053907861224 + ], + [ + -73.61487354785686, + 45.60313064999774 + ], + [ + -73.61496919336695, + 45.60322265920964 + ] + ] + ] + }, + "id": 104173, + "properties": { + "name": "02089341", + "address": "avenue Gervais (MTN) 10974", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61554655816128, + 45.6045669243175 + ], + [ + -73.61540146930669, + 45.60464370205659 + ], + [ + -73.61555258356289, + 45.60478555642111 + ], + [ + -73.61570017980591, + 45.60471112990033 + ], + [ + -73.61554655816128, + 45.6045669243175 + ] + ] + ] + }, + "id": 107490, + "properties": { + "name": "02084313", + "address": "rue de Charleroi (MTN) 5816", + "function": "6911", + "height": 6, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61656359358409, + 45.60408655945245 + ], + [ + -73.61642865685593, + 45.604157276805324 + ], + [ + -73.61654018298667, + 45.604263817805226 + ], + [ + -73.61667629277012, + 45.604192459346706 + ], + [ + -73.61656359358409, + 45.60408655945245 + ] + ] + ] + }, + "id": 108496, + "properties": { + "name": "02084304", + "address": "rue de Charleroi (MTN) 5780", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61522751108303, + 45.603904378065494 + ], + [ + -73.61507593486577, + 45.603983952307814 + ], + [ + -73.61517089374749, + 45.60407595932929 + ], + [ + -73.61532409240606, + 45.603997959821726 + ], + [ + -73.61522751108303, + 45.603904378065494 + ] + ] + ] + }, + "id": 109074, + "properties": { + "name": "02089360", + "address": "avenue Gervais (MTN) 10995", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6153572929352, + 45.604030159911986 + ], + [ + -73.61535609297731, + 45.60403075950881 + ], + [ + -73.61522309302832, + 45.60409075923978 + ], + [ + -73.61521139412798, + 45.60409585956201 + ], + [ + -73.61523629264065, + 45.60412425909076 + ], + [ + -73.61525709396977, + 45.604148859178096 + ], + [ + -73.61528549312007, + 45.604182059341426 + ], + [ + -73.61528889342873, + 45.6041804596164 + ], + [ + -73.61530872718082, + 45.604200803588036 + ], + [ + -73.61545509938888, + 45.604123953577336 + ], + [ + -73.6153572929352, + 45.604030159911986 + ] + ] + ] + }, + "id": 109706, + "properties": { + "name": "02089362", + "address": "avenue Gervais (MTN) 10999", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61576884552163, + 45.603334276965214 + ], + [ + -73.61561794359203, + 45.603412102886914 + ], + [ + -73.61571379390122, + 45.60350375943118 + ], + [ + -73.61571979320091, + 45.603500559866994 + ], + [ + -73.6158646934334, + 45.60342595948153 + ], + [ + -73.61576884552163, + 45.603334276965214 + ] + ] + ] + }, + "id": 109910, + "properties": { + "name": "02079346", + "address": "boulevard Lacordaire (MTN+SLN) 10989", + "function": "1000", + "height": 10, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61529359337898, + 45.603098559215155 + ], + [ + -73.61539043055541, + 45.60319250330074 + ], + [ + -73.61553937805786, + 45.60311568566028 + ], + [ + -73.61544359362264, + 45.60302255947877 + ], + [ + -73.61529359337898, + 45.603098559215155 + ] + ] + ] + }, + "id": 111315, + "properties": { + "name": "02079340", + "address": "boulevard Lacordaire (MTN+SLN) 10977", + "function": "1000", + "height": 11, + "year_of_construction": 1971 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61525171267749, + 45.603272554303544 + ], + [ + -73.61510151451574, + 45.603350015303654 + ], + [ + -73.61519989263974, + 45.603444559978435 + ], + [ + -73.61535039270667, + 45.6033673594954 + ], + [ + -73.61525171267749, + 45.603272554303544 + ] + ] + ] + }, + "id": 111737, + "properties": { + "name": "02089349", + "address": "avenue Gervais (MTN) 10982", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61466909326306, + 45.60294075967212 + ], + [ + -73.6147560927694, + 45.60300445927575 + ], + [ + -73.61488339239519, + 45.60291865965929 + ], + [ + -73.61479629308985, + 45.602855059232944 + ], + [ + -73.61466909326306, + 45.60294075967212 + ] + ] + ] + }, + "id": 112401, + "properties": { + "name": "02089337", + "address": "avenue Gervais (MTN) 10966", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61558099301227, + 45.604250459856104 + ], + [ + -73.61544219316183, + 45.60432605881322 + ], + [ + -73.61551509246426, + 45.60439205943221 + ], + [ + -73.61550919284737, + 45.60439515990335 + ], + [ + -73.61553609932277, + 45.60442050152183 + ], + [ + -73.61568598567183, + 45.60434179851926 + ], + [ + -73.61558609369766, + 45.60424785959365 + ], + [ + -73.61558099301227, + 45.604250459856104 + ] + ] + ] + }, + "id": 112778, + "properties": { + "name": "02089369", + "address": "avenue Gervais (MTN) 11007", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61607209347314, + 45.604309659159796 + ], + [ + -73.6162024935288, + 45.60443546010515 + ], + [ + -73.6163624938394, + 45.604353759400325 + ], + [ + -73.61623219361022, + 45.604227959434056 + ], + [ + -73.61607209347314, + 45.604309659159796 + ] + ] + ] + }, + "id": 113480, + "properties": { + "name": "02084308", + "address": "rue de Charleroi (MTN) 5800", + "function": "1000", + "height": 12, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61524659260225, + 45.604725659891784 + ], + [ + -73.61524149334252, + 45.6047283591184 + ], + [ + -73.61534759366955, + 45.60482706025275 + ], + [ + -73.61532907638387, + 45.60483680517976 + ], + [ + -73.61537174161367, + 45.60487685569534 + ], + [ + -73.61555258356289, + 45.60478555642111 + ], + [ + -73.61540146930669, + 45.60464370205659 + ], + [ + -73.61524659260225, + 45.604725659891784 + ] + ] + ] + }, + "id": 117387, + "properties": { + "name": "02084315", + "address": "rue de Charleroi (MTN) 5820", + "function": "5010", + "height": 6, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61500489257263, + 45.60325715865036 + ], + [ + -73.61510151451574, + 45.603350015303654 + ], + [ + -73.61525171267749, + 45.603272554303544 + ], + [ + -73.61523579309446, + 45.603257259800856 + ], + [ + -73.61524089242211, + 45.60325465865491 + ], + [ + -73.6152384932169, + 45.60325305938246 + ], + [ + -73.61517659385046, + 45.60321045919253 + ], + [ + -73.61518189239541, + 45.603206859039936 + ], + [ + -73.61517229318241, + 45.6031986586932 + ], + [ + -73.6151536931299, + 45.60318085996218 + ], + [ + -73.61500489257263, + 45.60325715865036 + ] + ] + ] + }, + "id": 123896, + "properties": { + "name": "02089345", + "address": "avenue Gervais (MTN) 10978", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61669589268313, + 45.60391675925622 + ], + [ + -73.6165553935463, + 45.60398966002483 + ], + [ + -73.61655869329074, + 45.60399275926241 + ], + [ + -73.6165756931893, + 45.6040094589064 + ], + [ + -73.61656779313041, + 45.604013459501346 + ], + [ + -73.61658689362272, + 45.60403175959242 + ], + [ + -73.61664515347228, + 45.60408822546676 + ], + [ + -73.61679892940774, + 45.604008915943076 + ], + [ + -73.61670089350399, + 45.60391425982651 + ], + [ + -73.61669589268313, + 45.60391675925622 + ] + ] + ] + }, + "id": 124076, + "properties": { + "name": "02079359", + "address": "boulevard Lacordaire (MTN+SLN) 11011", + "function": "1000", + "height": 11, + "year_of_construction": 1969 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.6155524935578, + 45.604563759920616 + ], + [ + -73.61554655816128, + 45.6045669243175 + ], + [ + -73.61570017980591, + 45.60471112990033 + ], + [ + -73.61573350584231, + 45.60469433146339 + ], + [ + -73.61561000037996, + 45.60457839681456 + ], + [ + -73.61558099302259, + 45.60459255975183 + ], + [ + -73.6155524935578, + 45.604563759920616 + ] + ] + ] + }, + "id": 124654, + "properties": { + "name": "02084312", + "address": "rue de Charleroi (MTN) 5812", + "function": "5010", + "height": 6, + "year_of_construction": 1972 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61584539357277, + 45.604463459181765 + ], + [ + -73.61561000037996, + 45.60457839681456 + ], + [ + -73.61573350584231, + 45.60469433146339 + ], + [ + -73.61596319409757, + 45.60457855893118 + ], + [ + -73.61584799361155, + 45.60446605974511 + ], + [ + -73.61584539357277, + 45.604463459181765 + ] + ] + ] + }, + "id": 125121, + "properties": { + "name": "02084310", + "address": "rue de Charleroi (MTN) 5810", + "function": "5010", + "height": 12, + "year_of_construction": 1973 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61492369248967, + 45.60295895928684 + ], + [ + -73.61477449245115, + 45.603035358860474 + ], + [ + -73.61487354785686, + 45.60313064999774 + ], + [ + -73.61502235119765, + 45.603053907861224 + ], + [ + -73.61492369248967, + 45.60295895928684 + ] + ] + ] + }, + "id": 126038, + "properties": { + "name": "02089339", + "address": "avenue Gervais (MTN) 10970", + "function": "1000", + "height": 11, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61475299219998, + 45.60424585963872 + ], + [ + -73.61493869293061, + 45.604420060358365 + ], + [ + -73.61523069361186, + 45.604266659695625 + ], + [ + -73.6150449924855, + 45.60409245944637 + ], + [ + -73.61475299219998, + 45.60424585963872 + ] + ] + ] + }, + "id": 126602, + "properties": { + "name": "02089402", + "address": "avenue Mass\u00e9 (MTN) 11000", + "function": "6376", + "height": 9, + "year_of_construction": 1970 + } + }, + { + "type": "Feature", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -73.61461159369163, + 45.60488725981014 + ], + [ + -73.61479419349527, + 45.60505945994124 + ], + [ + -73.61511239311238, + 45.60489326022291 + ], + [ + -73.61492989266371, + 45.60472095971479 + ], + [ + -73.61461159369163, + 45.60488725981014 + ] + ] + ] + }, + "id": 129969, + "properties": { + "name": "02158904", + "address": "avenue Mass\u00e9 (MTN) 11015", + "function": "4299", + "height": 8, + "year_of_construction": 1970 + } + } + ] +} \ No newline at end of file diff --git a/main.py b/main.py index 9c6f290..818de4b 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ from sra_engine import SraEngine try: - file_path = (Path(__file__).parent / 'input_files' / 'summerschool_all_buildings.geojson') + file_path = (Path(__file__).parent / 'input_files' / 'output_buildings.geojson') construction_format = 'nrcan' usage_format = 'nrcan' energy_systems_format = 'montreal_custom' @@ -23,9 +23,9 @@ try: print('[simulation start]') city = GeometryFactory('geojson', path=file_path, - height_field='citygml_me', - year_of_construction_field='ANNEE_CONS', - function_field='CODE_UTILI', + height_field='height', + year_of_construction_field='year_of_construction', + function_field='function', function_to_hub=Dictionaries().montreal_function_to_hub_function).city print(f'city created from {file_path}')