feature: process road and building geojson files

This commit is contained in:
Majid Rezaei 2024-06-24 18:49:19 -04:00 committed by majidrezaei93
parent 24e4d7b53d
commit d906fb9fc0
8 changed files with 3999 additions and 1 deletions

View File

@ -0,0 +1,81 @@
{
"type": "FeatureCollection",
"name": "lachine_group_mach_buildings",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665576136530092, 45.435517165119393 ], [ -73.665576136530092, 45.435901290585491 ], [ -73.665308918814546, 45.435901290585491 ], [ -73.665308918814546, 45.435517165119393 ], [ -73.665576136530092, 45.435517165119393 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 2 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665576136530092, 45.43643906623803 ], [ -73.665576136530092, 45.436936759233234 ], [ -73.665302238371666, 45.436936759233234 ], [ -73.665302238371666, 45.43643906623803 ], [ -73.665576136530092, 45.43643906623803 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 3 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665158608849552, 45.436672881739128 ], [ -73.665158608849552, 45.436839892811349 ], [ -73.664574070096791, 45.436839892811349 ], [ -73.664574070096791, 45.436672881739128 ], [ -73.665158608849552, 45.436672881739128 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 4 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664821246483683, 45.436512551109814 ], [ -73.664821246483683, 45.43657434520653 ], [ -73.664590771204018, 45.43657434520653 ], [ -73.664590771204018, 45.436512551109814 ], [ -73.664821246483683, 45.436512551109814 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 5 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664816236151509, 45.436448251847004 ], [ -73.664816236151509, 45.43650253044548 ], [ -73.664592441314738, 45.43650253044548 ], [ -73.664592441314738, 45.436448251847004 ], [ -73.664816236151509, 45.436448251847004 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 6 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664815401096149, 45.436378107196674 ], [ -73.664815401096149, 45.43643489096123 ], [ -73.664594111425458, 45.43643489096123 ], [ -73.664594111425458, 45.436378107196674 ], [ -73.664815401096149, 45.436378107196674 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 7 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664814566040789, 45.436312972878511 ], [ -73.664814566040789, 45.436370591698427 ], [ -73.664594111425458, 45.436370591698427 ], [ -73.664594111425458, 45.436312972878511 ], [ -73.664814566040789, 45.436312972878511 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 8 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664816236151509, 45.436248673615708 ], [ -73.664816236151509, 45.436299611992737 ], [ -73.664592441314738, 45.436299611992737 ], [ -73.664592441314738, 45.436248673615708 ], [ -73.664816236151509, 45.436248673615708 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 9 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664815401096149, 45.436177693910018 ], [ -73.664815401096149, 45.436235312729927 ], [ -73.664592441314738, 45.436235312729927 ], [ -73.664592441314738, 45.436177693910018 ], [ -73.664815401096149, 45.436177693910018 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 10 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664813730985429, 45.436109219370408 ], [ -73.664813730985429, 45.436169343356404 ], [ -73.664593276370098, 45.436169343356404 ], [ -73.664593276370098, 45.436109219370408 ], [ -73.664813730985429, 45.436109219370408 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 11 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665584487083734, 45.436100868816794 ], [ -73.665584487083734, 45.43628124077479 ], [ -73.664913102573422, 45.43628124077479 ], [ -73.664913102573422, 45.436100868816794 ], [ -73.665584487083734, 45.436100868816794 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 11 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66557947675156, 45.43537604076338 ], [ -73.66529722803952, 45.435372700541933 ], [ -73.665293887818066, 45.434841605332281 ], [ -73.665582816973, 45.434661233374285 ], [ -73.66557947675156, 45.43537604076338 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 12 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66516695940318, 45.435753485786591 ], [ -73.66516695940318, 45.435917156637359 ], [ -73.664530647218029, 45.435917156637359 ], [ -73.664530647218029, 45.435753485786591 ], [ -73.66516695940318, 45.435753485786591 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 13 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664857988919579, 45.435593155157257 ], [ -73.664587430982593, 45.435591485046537 ], [ -73.664589101093313, 45.435324267330991 ], [ -73.664857988919579, 45.435157256258769 ], [ -73.664857988919579, 45.435593155157257 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 14 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665409960513287, 45.434485871748457 ], [ -73.665227918444572, 45.434611130052616 ], [ -73.664611647588089, 45.434125127832466 ], [ -73.664788679324644, 45.434004879860467 ], [ -73.665409960513287, 45.434485871748457 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 15 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665122701469073, 45.434667913817172 ], [ -73.664730225449361, 45.434928451089831 ], [ -73.6645598741557, 45.434796512342778 ], [ -73.664954020286132, 45.434537645180839 ], [ -73.665122701469073, 45.434667913817172 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 16 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664749431722669, 45.434258736690239 ], [ -73.66469264795812, 45.434303829679735 ], [ -73.664553193712806, 45.434181911597015 ], [ -73.664611647588089, 45.43413598355216 ], [ -73.664749431722669, 45.434258736690239 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 17 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664679287072332, 45.434305499790462 ], [ -73.664619998141703, 45.434352262890677 ], [ -73.664486389283923, 45.434232014918685 ], [ -73.664543173048472, 45.434189427095269 ], [ -73.664679287072332, 45.434305499790462 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 18 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664606637255915, 45.434355603112124 ], [ -73.664547348325286, 45.434399025990899 ], [ -73.664409564190706, 45.434278778018907 ], [ -73.664464677844535, 45.434234520084765 ], [ -73.664606637255915, 45.434355603112124 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 19 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664533152384152, 45.434401531156986 ], [ -73.664478038730309, 45.434439943703595 ], [ -73.664334409208209, 45.434324706063762 ], [ -73.664396203304932, 45.434279613074267 ], [ -73.664533152384152, 45.434401531156986 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 20 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664464677844535, 45.434442448869675 ], [ -73.664405388913892, 45.434486706803817 ], [ -73.664265099613232, 45.434367293887178 ], [ -73.664323553488515, 45.434325541119122 ], [ -73.664464677844535, 45.434442448869675 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 21 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664389522862038, 45.434490047025257 ], [ -73.664336914374289, 45.434531799793312 ], [ -73.664187439464655, 45.4344140569874 ], [ -73.664248398506018, 45.434373139274705 ], [ -73.664389522862038, 45.434490047025257 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 21 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664316873045621, 45.434532634848672 ], [ -73.664264264557872, 45.434576057727455 ], [ -73.664121470091132, 45.434464160309062 ], [ -73.664179088911041, 45.434421572485647 ], [ -73.664316873045621, 45.434532634848672 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 22 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664525636885912, 45.435077090944098 ], [ -73.663657179310391, 45.435634907925305 ], [ -73.663523570452611, 45.435528020839087 ], [ -73.664385347585252, 45.434956842972106 ], [ -73.664525636885912, 45.435077090944098 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 23 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664248398506032, 45.434890038543216 ], [ -73.664098088541039, 45.434996925629434 ], [ -73.663747365289382, 45.434729707913888 ], [ -73.663901015475815, 45.434632841492004 ], [ -73.664248398506032, 45.434890038543216 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 24 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663470126909502, 45.4355213403962 ], [ -73.663293095172946, 45.435621547039531 ], [ -73.662895608821074, 45.435224060687652 ], [ -73.663089341664843, 45.435087111608432 ], [ -73.663470126909502, 45.4355213403962 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 26 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663733169348234, 45.434914463912534 ], [ -73.663676385583685, 45.43495705173595 ], [ -73.663538601449105, 45.434849329594364 ], [ -73.663588704770774, 45.434804236604869 ], [ -73.663733169348234, 45.434914463912534 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 27 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663665529863991, 45.43495872184667 ], [ -73.663602900711908, 45.435004649891532 ], [ -73.663461776355874, 45.434891082362419 ], [ -73.663518560120437, 45.434848494539004 ], [ -73.663665529863991, 45.43495872184667 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 28 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663592880047574, 45.435007990112979 ], [ -73.663534426172291, 45.435049742881034 ], [ -73.663395806982351, 45.434937845462642 ], [ -73.66345008558082, 45.434896092694586 ], [ -73.663592880047574, 45.435007990112979 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 29 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663516890009717, 45.435051412991754 ], [ -73.663464281521968, 45.43509233070445 ], [ -73.663316476723054, 45.434978763175337 ], [ -73.663381611041217, 45.434937010407282 ], [ -73.663516890009717, 45.435051412991754 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 30 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66344758041474, 45.43509483587053 ], [ -73.663389126539457, 45.435138258749312 ], [ -73.663248002183437, 45.43502302110948 ], [ -73.66330645605872, 45.434979598230697 ], [ -73.66344758041474, 45.43509483587053 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 31 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663374930598323, 45.435141598970752 ], [ -73.663317311778414, 45.435184186794174 ], [ -73.6631736822563, 45.435074794541869 ], [ -73.663237146463743, 45.435028866497007 ], [ -73.663374930598323, 45.435141598970752 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 33 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663299775615826, 45.435188362070974 ], [ -73.663253012515597, 45.435225939562223 ], [ -73.66312775421143, 45.435100681258064 ], [ -73.663164496647326, 45.435074794541869 ], [ -73.663299775615826, 45.435188362070974 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 34 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664583255705864, 45.433868139545069 ], [ -73.664172408468204, 45.434123666485561 ], [ -73.664018758281756, 45.433881500430843 ], [ -73.664464677844592, 45.433757912237397 ], [ -73.664583255705864, 45.433868139545069 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 36 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663997046842368, 45.434095274603287 ], [ -73.663908530974098, 45.434299028111397 ], [ -73.663263868235319, 45.4338180362234 ], [ -73.663449250525488, 45.433677746922733 ], [ -73.663997046842368, 45.434095274603287 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 37 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.6637064475767, 45.434445997854951 ], [ -73.663504364179317, 45.43456624582695 ], [ -73.662851350886925, 45.434083583828233 ], [ -73.663046753841428, 45.433941624416846 ], [ -73.6637064475767, 45.434445997854951 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 38 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662968258637491, 45.434270636229108 ], [ -73.662757824686494, 45.434439317412057 ], [ -73.662552401067657, 45.434307378664997 ], [ -73.662782876347322, 45.434150388257109 ], [ -73.662968258637491, 45.434270636229108 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 39 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66293652653377, 45.434915298967887 ], [ -73.662712731696985, 45.435022186054105 ], [ -73.662311905123659, 45.434559565384056 ], [ -73.662473905863706, 45.434394224422554 ], [ -73.66293652653377, 45.434915298967887 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 40 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663361569712563, 45.434631380145106 ], [ -73.663303950892654, 45.434673132913161 ], [ -73.66315948631518, 45.434562070550136 ], [ -73.66321543502437, 45.434516142505274 ], [ -73.663361569712563, 45.434631380145106 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 41 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663290590006866, 45.434677308189968 ], [ -73.663232136131597, 45.434720731068744 ], [ -73.663091846830923, 45.434609668705718 ], [ -73.663146125429407, 45.434566245826943 ], [ -73.663290590006866, 45.434677308189968 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 42 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663216270079729, 45.434723236234831 ], [ -73.66316449664734, 45.434764153947526 ], [ -73.663019197014521, 45.434652256529134 ], [ -73.66307514572371, 45.434610503761078 ], [ -73.663216270079729, 45.434723236234831 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 43 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663141115097233, 45.434767494168966 ], [ -73.663085166388043, 45.434810917047749 ], [ -73.662943206976649, 45.434697349518636 ], [ -73.662999155685853, 45.434655596750581 ], [ -73.663141115097233, 45.434767494168966 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 44 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663070135391536, 45.434816762435275 ], [ -73.663019197014521, 45.434858515203331 ], [ -73.662871392215592, 45.434744947674218 ], [ -73.662927340924796, 45.434701524795443 ], [ -73.663070135391536, 45.434816762435275 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 45 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662996650519759, 45.434860185314051 ], [ -73.662951557530263, 45.434894422583859 ], [ -73.662833814724351, 45.434779184944027 ], [ -73.662863041661993, 45.434745782729578 ], [ -73.662996650519759, 45.434860185314051 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 46 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.663172847200954, 45.435882293076048 ], [ -73.662980784467905, 45.435974149165773 ], [ -73.662469730586906, 45.435426352848886 ], [ -73.662670143873569, 45.435326146205554 ], [ -73.663172847200954, 45.435882293076048 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 47 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662810433174229, 45.43604596392683 ], [ -73.662235915085787, 45.436202954334718 ], [ -73.662090615452954, 45.436059324812604 ], [ -73.662660123209236, 45.435883963186775 ], [ -73.662810433174229, 45.43604596392683 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 49 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662297709182511, 45.435972479055053 ], [ -73.662105646449461, 45.436029262819609 ], [ -73.661788325412232, 45.435740333664661 ], [ -73.661988738698909, 45.435651817796384 ], [ -73.662297709182511, 45.435972479055053 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 50 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662593318780353, 45.435580838090694 ], [ -73.662531524683629, 45.435615075360495 ], [ -73.662412946822357, 45.435490652111696 ], [ -73.6624805863066, 45.435453909675807 ], [ -73.662593318780353, 45.435580838090694 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 51 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662513153465682, 45.435615910415862 ], [ -73.662448854202879, 45.435650982741024 ], [ -73.66233946195058, 45.435532404879751 ], [ -73.662402091102663, 45.435497332554583 ], [ -73.662513153465682, 45.435615910415862 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 52 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662432988151025, 45.435650982741024 ], [ -73.662369523943582, 45.435684384955472 ], [ -73.662258461580549, 45.435568312260273 ], [ -73.662323595898712, 45.435533239935111 ], [ -73.662432988151025, 45.435650982741024 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 53 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662352822836354, 45.435686890121552 ], [ -73.662289358628911, 45.435719457280634 ], [ -73.662175791099799, 45.435603384585441 ], [ -73.662237585196522, 45.43556914731564 ], [ -73.662352822836354, 45.435686890121552 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 55 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66194114054332, 45.436273098985055 ], [ -73.661677263049199, 45.436343243635385 ], [ -73.661206291825536, 45.435825509311499 ], [ -73.661329880018982, 45.435608394917615 ], [ -73.66194114054332, 45.436273098985055 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 56 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66139668444788, 45.436279779427942 ], [ -73.660862249016759, 45.43652027537194 ], [ -73.660715279273205, 45.436369965406946 ], [ -73.661122786289425, 45.435985839940834 ], [ -73.66139668444788, 45.436279779427942 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 57 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.662522339074641, 45.435170825908394 ], [ -73.662298544237871, 45.435284393437506 ], [ -73.661954501429094, 45.43490360819284 ], [ -73.662118172279875, 45.434716555791951 ], [ -73.662522339074641, 45.435170825908394 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 58 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.661974542757761, 45.435144104136839 ], [ -73.661837593678541, 45.435317795651947 ], [ -73.661937800321866, 45.435448064288281 ], [ -73.661633840170424, 45.435578332924614 ], [ -73.661476849762536, 45.435397960966611 ], [ -73.661857635007209, 45.434987113728951 ], [ -73.661974542757761, 45.435144104136839 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 59 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.661874336114423, 45.434512802283841 ], [ -73.661557015077207, 45.434873546199839 ], [ -73.661276436475873, 45.434596307819952 ], [ -73.661730706592309, 45.434339110768732 ], [ -73.661874336114423, 45.434512802283841 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 60 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.661430086662321, 45.434997134393285 ], [ -73.661279776697313, 45.435174166129841 ], [ -73.660915692559868, 45.434796721106615 ], [ -73.661126126510879, 45.434666452470282 ], [ -73.661430086662321, 45.434997134393285 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 61 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.661116105846546, 45.435397960966611 ], [ -73.660999198095979, 45.435591693810395 ], [ -73.660474783329207, 45.435050577936394 ], [ -73.660688557501658, 45.434916969078614 ], [ -73.661116105846546, 45.435397960966611 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 62 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.660895651231215, 45.435731983111054 ], [ -73.660367896242988, 45.435969138833613 ], [ -73.660204225392206, 45.435808808204278 ], [ -73.660765382594874, 45.435554951374499 ], [ -73.660895651231215, 45.435731983111054 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 63 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.660384597350216, 45.435625096024836 ], [ -73.660144101406217, 45.435728642889615 ], [ -73.65980673904032, 45.435357878309283 ], [ -73.660060595870107, 45.435240970558723 ], [ -73.660384597350216, 45.435625096024836 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 64 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.664149026918068, 45.43368108714418 ], [ -73.664008737617408, 45.433764592680291 ], [ -73.663905190752629, 45.433641004486844 ], [ -73.664022098503182, 45.433567519615067 ], [ -73.664149026918068, 45.43368108714418 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 65 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665702229889732, 45.434185460582285 ], [ -73.665541899260404, 45.434289007447063 ], [ -73.66499076272207, 45.433878160209403 ], [ -73.665151093351398, 45.433767932901738 ], [ -73.665702229889732, 45.434185460582285 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 67 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666320170856977, 45.433948304859719 ], [ -73.666116417348874, 45.434091934381826 ], [ -73.665458393724322, 45.433600921829495 ], [ -73.665672167896759, 45.433420549871499 ], [ -73.666320170856977, 45.433948304859719 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 68 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.667141865332312, 45.433403848764272 ], [ -73.666363593735753, 45.433928263531051 ], [ -73.666186561999197, 45.433787974230384 ], [ -73.666948132488528, 45.433276920349385 ], [ -73.667141865332312, 45.433403848764272 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 69 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666854606288084, 45.43323349747061 ], [ -73.666650852779981, 45.433380467214164 ], [ -73.666386975285874, 45.433193414813275 ], [ -73.666667553887208, 45.43309654839139 ], [ -73.666854606288084, 45.43323349747061 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 70 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666557326579536, 45.433019723298166 ], [ -73.666103056463101, 45.433126610384384 ], [ -73.666062973805765, 45.433086527727056 ], [ -73.66488387563588, 45.433373786771277 ], [ -73.664810390764103, 45.433223476806276 ], [ -73.66597278782676, 45.432929537319168 ], [ -73.665889282290649, 45.432729124032498 ], [ -73.666066314027205, 45.432672340267942 ], [ -73.666557326579536, 45.433019723298166 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 71 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666499707759627, 45.433347900055082 ], [ -73.666428728053944, 45.43336627127303 ], [ -73.666371944289381, 45.433208445809782 ], [ -73.666382800009075, 45.433205940643695 ], [ -73.666499707759627, 45.433347900055082 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 72 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.66641870738961, 45.43336710632839 ], [ -73.666365263846487, 45.433379632158804 ], [ -73.666308480081938, 45.433234332525977 ], [ -73.666358583403607, 45.433215961308029 ], [ -73.66641870738961, 45.43336710632839 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 73 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666347727683913, 45.433381302269531 ], [ -73.66628676864255, 45.433395498210665 ], [ -73.666231654988721, 45.433251868688558 ], [ -73.66628342842111, 45.43322932219381 ], [ -73.666347727683913, 45.433381302269531 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 74 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666273407756776, 45.433394663155305 ], [ -73.666216623992213, 45.433409694151806 ], [ -73.666164850559824, 45.433286105958359 ], [ -73.666220799269027, 45.433265229574332 ], [ -73.666273407756776, 45.433394663155305 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 75 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666198252774265, 45.433413034373253 ], [ -73.666139798898996, 45.433431405591193 ], [ -73.666081345023713, 45.433293621456613 ], [ -73.666144809231156, 45.433272745072586 ], [ -73.666198252774265, 45.433413034373253 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 77 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666128108123942, 45.43343307570192 ], [ -73.666069654248659, 45.433449776809141 ], [ -73.66601454059483, 45.433305312231667 ], [ -73.666063808861139, 45.433289446179806 ], [ -73.666128108123942, 45.43343307570192 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 78 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.666054623252165, 45.433449776809141 ], [ -73.665997839487602, 45.433469818137809 ], [ -73.665944395944493, 45.433337879390749 ], [ -73.666004519930496, 45.433312827729921 ], [ -73.666054623252165, 45.433449776809141 ] ] ] ] } },
{ "type": "Feature", "properties": { "id": 79 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -73.665984478601828, 45.433469818137809 ], [ -73.665933540224799, 45.433484014078942 ], [ -73.665870911072716, 45.433348735110442 ], [ -73.665926024726545, 45.433331198947862 ], [ -73.665984478601828, 45.433469818137809 ] ] ] ] } }
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

59
input_files/roads.geojson Normal file
View File

@ -0,0 +1,59 @@
{
"type": "FeatureCollection",
"name": "lachine_roadfs",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.655941392168089, 45.438925041309489 ], [ -73.657152204012931, 45.43822016359244 ] ] ] } },
{ "type": "Feature", "properties": { "id": 2 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.65799428420533, 45.439875168451188 ], [ -73.657152204012931, 45.43822016359244 ] ] ] } },
{ "type": "Feature", "properties": { "id": 3 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.657152204012931, 45.43822016359244 ], [ -73.658021724700404, 45.437676498783908 ] ] ] } },
{ "type": "Feature", "properties": { "id": 4 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.658021724700404, 45.437676498783908 ], [ -73.65945549056768, 45.436925315231434 ] ] ] } },
{ "type": "Feature", "properties": { "id": 5 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.65945549056768, 45.436925315231434 ], [ -73.659733325580234, 45.437405523895116 ] ] ] } },
{ "type": "Feature", "properties": { "id": 6 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.659733325580234, 45.437405523895116 ], [ -73.659760766075294, 45.43955617269603 ] ] ] } },
{ "type": "Feature", "properties": { "id": 6 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.65945549056768, 45.436925315231434 ], [ -73.660776064392778, 45.436618324692851 ] ] ] } },
{ "type": "Feature", "properties": { "id": 7 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.660776064392778, 45.436618324692851 ], [ -73.66216180939368, 45.436314764216171 ] ] ] } },
{ "type": "Feature", "properties": { "id": 8 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.66216180939368, 45.436314764216171 ], [ -73.662238985786118, 45.43707109286148 ] ] ] } },
{ "type": "Feature", "properties": { "id": 9 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662238985786118, 45.43707109286148 ], [ -73.66113450585965, 45.437331777564616 ] ] ] } },
{ "type": "Feature", "properties": { "id": 10 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.66113450585965, 45.437331777564616 ], [ -73.661148654864903, 45.438600578893194 ], [ -73.661155086230949, 45.43917029073414 ] ] ] } },
{ "type": "Feature", "properties": { "id": 11 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662238985786118, 45.43707109286148 ], [ -73.662293866776253, 45.438587180213958 ] ] ] } },
{ "type": "Feature", "properties": { "id": 12 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662293866776253, 45.438587180213958 ], [ -73.661148654864903, 45.438600578893194 ] ] ] } },
{ "type": "Feature", "properties": { "id": 20 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.66216180939368, 45.436314764216171 ], [ -73.661602816496156, 45.435697031508866 ] ] ] } },
{ "type": "Feature", "properties": { "id": 21 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.661602816496156, 45.435697031508866 ], [ -73.661321551421707, 45.435408906310663 ] ] ] } },
{ "type": "Feature", "properties": { "id": 22 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.661321551421707, 45.435408906310663 ], [ -73.660731580777764, 45.43475033442904 ] ] ] } },
{ "type": "Feature", "properties": { "id": 23 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.66216180939368, 45.436314764216171 ], [ -73.663461910036972, 45.435909695345643 ] ] ] } },
{ "type": "Feature", "properties": { "id": 24 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663461910036972, 45.435909695345643 ], [ -73.662721016670162, 45.435203102597654 ] ] ] } },
{ "type": "Feature", "properties": { "id": 25 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662721016670162, 45.435203102597654 ], [ -73.661602816496156, 45.435697031508866 ] ] ] } },
{ "type": "Feature", "properties": { "id": 26 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662721016670162, 45.435203102597654 ], [ -73.662117325778667, 45.434523950344733 ] ] ] } },
{ "type": "Feature", "properties": { "id": 27 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662117325778667, 45.434523950344733 ], [ -73.661321551421707, 45.435408906310663 ] ] ] } },
{ "type": "Feature", "properties": { "id": 28 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662117325778667, 45.434523950344733 ], [ -73.661774319590322, 45.434187804280157 ] ] ] } },
{ "type": "Feature", "properties": { "id": 29 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.661774319590322, 45.434187804280157 ], [ -73.660731580777764, 45.43475033442904 ] ] ] } },
{ "type": "Feature", "properties": { "id": 30 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.660776064392778, 45.436618324692851 ], [ -73.660539497312286, 45.436314442647884 ] ] ] } },
{ "type": "Feature", "properties": { "id": 31 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.660539497312286, 45.436314442647884 ], [ -73.661321551421707, 45.435408906310663 ] ] ] } },
{ "type": "Feature", "properties": { "id": 32 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.660539497312286, 45.436314442647884 ], [ -73.659579079984923, 45.435306004454155 ] ] ] } },
{ "type": "Feature", "properties": { "id": 33 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.659579079984923, 45.435306004454155 ], [ -73.660731580777764, 45.43475033442904 ] ] ] } },
{ "type": "Feature", "properties": { "id": 35 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663461910036972, 45.435909695345643 ], [ -73.664422327364335, 45.435326584825454 ] ] ] } },
{ "type": "Feature", "properties": { "id": 36 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.664422327364335, 45.435326584825454 ], [ -73.664717312686321, 45.435086480493617 ] ] ] } },
{ "type": "Feature", "properties": { "id": 37 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.664717312686321, 45.435086480493617 ], [ -73.665794352117715, 45.434421048488232 ] ] ] } },
{ "type": "Feature", "properties": { "id": 38 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.662721016670162, 45.435203102597654 ], [ -73.663914678205586, 45.434434768735763 ] ] ] } },
{ "type": "Feature", "properties": { "id": 39 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663914678205586, 45.434434768735763 ], [ -73.664717312686321, 45.435086480493617 ] ] ] } },
{ "type": "Feature", "properties": { "id": 40 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.664422327364335, 45.435326584825454 ], [ -73.664449767859409, 45.435998876954613 ] ] ] } },
{ "type": "Feature", "properties": { "id": 41 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.664449767859409, 45.435998876954613 ], [ -73.664449767859409, 45.436959294281969 ] ] ] } },
{ "type": "Feature", "properties": { "id": 42 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.664449767859409, 45.436959294281969 ], [ -73.665753191375117, 45.437000455024574 ] ] ] } },
{ "type": "Feature", "properties": { "id": 43 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.664449767859409, 45.435998876954613 ], [ -73.66576691162264, 45.436005737078375 ] ] ] } },
{ "type": "Feature", "properties": { "id": 44 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663914678205586, 45.434434768735763 ], [ -73.663050302610969, 45.433776196854147 ] ] ] } },
{ "type": "Feature", "properties": { "id": 45 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663050302610969, 45.433776196854147 ], [ -73.662117325778667, 45.434523950344733 ] ] ] } },
{ "type": "Feature", "properties": { "id": 46 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663914678205586, 45.434434768735763 ], [ -73.665135780236099, 45.433652714626341 ] ] ] } },
{ "type": "Feature", "properties": { "id": 47 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.665135780236099, 45.433652714626341 ], [ -73.663873517462989, 45.433323428685533 ] ] ] } },
{ "type": "Feature", "properties": { "id": 48 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663873517462989, 45.433323428685533 ], [ -73.663050302610969, 45.433776196854147 ] ] ] } },
{ "type": "Feature", "properties": { "id": 49 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.665135780236099, 45.433652714626341 ], [ -73.665657149642371, 45.433988860690917 ] ] ] } },
{ "type": "Feature", "properties": { "id": 50 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.665657149642371, 45.433988860690917 ], [ -73.665794352117715, 45.434421048488232 ] ] ] } },
{ "type": "Feature", "properties": { "id": 51 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.665794352117715, 45.434421048488232 ], [ -73.66576691162264, 45.436005737078375 ] ] ] } },
{ "type": "Feature", "properties": { "id": 52 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.66576691162264, 45.436005737078375 ], [ -73.665753191375117, 45.437000455024574 ] ] ] } },
{ "type": "Feature", "properties": { "id": 53 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.663873517462989, 45.433323428685533 ], [ -73.666116777934761, 45.432548234699873 ] ] ] } },
{ "type": "Feature", "properties": { "id": 54 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.666116777934761, 45.432548234699873 ], [ -73.66736532046032, 45.433501791903467 ] ] ] } },
{ "type": "Feature", "properties": { "id": 56 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.66736532046032, 45.433501791903467 ], [ -73.665794352117715, 45.434421048488232 ] ] ] } },
{ "type": "Feature", "properties": { "id": 57 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.665135780236099, 45.433652714626341 ], [ -73.665712030632506, 45.433282267942928 ] ] ] } },
{ "type": "Feature", "properties": { "id": 59 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.665712030632506, 45.433282267942928 ], [ -73.666730759011898, 45.433035303487308 ] ] ] } },
{ "type": "Feature", "properties": { "id": 60 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.666730759011898, 45.433035303487308 ], [ -73.666116777934761, 45.432548234699873 ] ] ] } },
{ "type": "Feature", "properties": { "id": 61 }, "geometry": { "type": "MultiLineString", "coordinates": [ [ [ -73.666730759011898, 45.433035303487308 ], [ -73.66736532046032, 45.433501791903467 ] ] ] } }
]
}

View File

@ -0,0 +1,900 @@
{
"type": "FeatureCollection",
"name": "lachine_roadfs",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65594139216809,
45.43892504130949
],
[
-73.65715220401293,
45.43822016359244
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65799428420533,
45.43987516845119
],
[
-73.65715220401293,
45.43822016359244
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65715220401293,
45.43822016359244
],
[
-73.6580217247004,
45.43767649878391
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6580217247004,
45.43767649878391
],
[
-73.65945549056768,
45.436925315231434
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65945549056768,
45.436925315231434
],
[
-73.65973332558023,
45.437405523895116
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65973332558023,
45.437405523895116
],
[
-73.6597607660753,
45.43955617269603
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65945549056768,
45.436925315231434
],
[
-73.66077606439278,
45.43661832469285
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66077606439278,
45.43661832469285
],
[
-73.66216180939368,
45.43631476421617
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66216180939368,
45.43631476421617
],
[
-73.66223898578612,
45.43707109286148
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66223898578612,
45.43707109286148
],
[
-73.66113450585965,
45.437331777564616
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66113450585965,
45.437331777564616
],
[
-73.6611486548649,
45.438600578893194
],
[
-73.66115508623095,
45.43917029073414
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66223898578612,
45.43707109286148
],
[
-73.66229386677625,
45.43858718021396
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66229386677625,
45.43858718021396
],
[
-73.6611486548649,
45.438600578893194
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66216180939368,
45.43631476421617
],
[
-73.66160281649616,
45.435697031508866
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66160281649616,
45.435697031508866
],
[
-73.66132155142171,
45.43540890631066
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66132155142171,
45.43540890631066
],
[
-73.66073158077776,
45.43475033442904
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66216180939368,
45.43631476421617
],
[
-73.66346191003697,
45.43590969534564
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66346191003697,
45.43590969534564
],
[
-73.66272101667016,
45.435203102597654
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66272101667016,
45.435203102597654
],
[
-73.66160281649616,
45.435697031508866
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66272101667016,
45.435203102597654
],
[
-73.66211732577867,
45.43452395034473
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66211732577867,
45.43452395034473
],
[
-73.66132155142171,
45.43540890631066
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66211732577867,
45.43452395034473
],
[
-73.66177431959032,
45.43418780428016
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66177431959032,
45.43418780428016
],
[
-73.66073158077776,
45.43475033442904
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66077606439278,
45.43661832469285
],
[
-73.66053949731229,
45.436314442647884
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66053949731229,
45.436314442647884
],
[
-73.66132155142171,
45.43540890631066
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66053949731229,
45.436314442647884
],
[
-73.65957907998492,
45.435306004454155
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.65957907998492,
45.435306004454155
],
[
-73.66073158077776,
45.43475033442904
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66346191003697,
45.43590969534564
],
[
-73.66442232736433,
45.435326584825454
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66442232736433,
45.435326584825454
],
[
-73.66471731268632,
45.43508648049362
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66471731268632,
45.43508648049362
],
[
-73.66579435211771,
45.43442104848823
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66272101667016,
45.435203102597654
],
[
-73.66391467820559,
45.43443476873576
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66391467820559,
45.43443476873576
],
[
-73.66471731268632,
45.43508648049362
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66442232736433,
45.435326584825454
],
[
-73.66444976785941,
45.43599887695461
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66444976785941,
45.43599887695461
],
[
-73.66444976785941,
45.43695929428197
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66444976785941,
45.43695929428197
],
[
-73.66575319137512,
45.437000455024574
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66444976785941,
45.43599887695461
],
[
-73.66576691162264,
45.436005737078375
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66391467820559,
45.43443476873576
],
[
-73.66305030261097,
45.43377619685415
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66305030261097,
45.43377619685415
],
[
-73.66211732577867,
45.43452395034473
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66391467820559,
45.43443476873576
],
[
-73.6651357802361,
45.43365271462634
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6651357802361,
45.43365271462634
],
[
-73.66387351746299,
45.43332342868553
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66387351746299,
45.43332342868553
],
[
-73.66305030261097,
45.43377619685415
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6651357802361,
45.43365271462634
],
[
-73.66565714964237,
45.43398886069092
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66565714964237,
45.43398886069092
],
[
-73.66579435211771,
45.43442104848823
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66579435211771,
45.43442104848823
],
[
-73.66576691162264,
45.436005737078375
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66576691162264,
45.436005737078375
],
[
-73.66575319137512,
45.437000455024574
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66387351746299,
45.43332342868553
],
[
-73.66611677793476,
45.43254823469987
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66611677793476,
45.43254823469987
],
[
-73.66736532046032,
45.43350179190347
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.66736532046032,
45.43350179190347
],
[
-73.66579435211771,
45.43442104848823
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6651357802361,
45.43365271462634
],
[
-73.6657120306325,
45.43328226794293
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6657120306325,
45.43328226794293
],
[
-73.6667307590119,
45.43303530348731
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6667307590119,
45.43303530348731
],
[
-73.66611677793476,
45.43254823469987
]
]
},
"properties": {}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-73.6667307590119,
45.43303530348731
],
[
-73.66736532046032,
45.43350179190347
]
]
},
"properties": {}
}
]
}

View File

@ -0,0 +1,61 @@
import json
import random
def right_hand_rule(polygon):
"""
Ensure coordinates follow the right-hand rule for polygons.
The right-hand rule implies that the vertices of the exterior ring of the polygon are ordered counterclockwise.
"""
def is_clockwise(coords):
total = 0
for i in range(len(coords)):
x1, y1 = coords[i]
x2, y2 = coords[(i + 1) % len(coords)]
total += (x2 - x1) * (y2 + y1)
return total > 0
for coords in polygon:
if is_clockwise(coords):
coords.reverse()
def process_geojson(geojson):
for i, feature in enumerate(geojson['features']):
# Check and correct the coordinate order
if feature['geometry']['type'] == "MultiPolygon":
for polygon in feature['geometry']['coordinates']:
right_hand_rule(polygon)
# Change geometry type to Polygon
feature['geometry']['type'] = "Polygon"
feature['geometry']['coordinates'] = feature['geometry']['coordinates'][0]
# Remove 'id' attribute from properties
if 'id' in feature['properties']:
del feature['properties']['id']
# Add new properties
feature['id'] = i + 1
feature['properties'].update({
"name": str(i + 1),
"address": "",
"function": random.choice([1000, 6199]),
"height": round(random.uniform(13, 30), 2),
"year_of_construction": 2023
})
# Load the GeoJSON file
with open('../../input_files/lachine_group_mach_buildings.geojson', 'r') as file:
geojson = json.load(file)
# Process the GeoJSON data
process_geojson(geojson)
# Save the processed GeoJSON to a new file
with open('processed_output.geojson', 'w') as file:
json.dump(geojson, file, indent=4)
print("GeoJSON processing complete.")

View File

@ -0,0 +1,48 @@
import json
import random
# Function to process the GeoJSON for roads
def process_roads_geojson(geojson):
# Create the new structure
new_geojson = {
"type": "FeatureCollection",
"name": "lachine_roadfs",
"crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}},
"features": []
}
for i, feature in enumerate(geojson['features']):
# Convert MultiLineString to LineString if necessary
coordinates = feature['geometry']['coordinates']
if feature['geometry']['type'] == "MultiLineString":
coordinates = coordinates[0]
# Add the new properties
new_feature = {
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": coordinates
},
"properties": {
}
}
new_geojson['features'].append(new_feature)
return new_geojson
# Load the original GeoJSON file
with open('../../input_files/roads.geojson', 'r') as file:
original_geojson = json.load(file)
# Process the GeoJSON data
processed_geojson = process_roads_geojson(original_geojson)
# Save the processed GeoJSON to a new file
with open('processed_roads_output.geojson', 'w') as file:
json.dump(processed_geojson, file, indent=4)
print("GeoJSON roads processing complete.")

View File

@ -25,7 +25,7 @@ def road_processor(x, y, diff):
])
# Define input and output file paths
geojson_file = Path("./input_files/roads.json").resolve()
geojson_file = Path("./input_files/roads_output.geojson").resolve()
output_file = Path('./input_files/output_roads.geojson').resolve()
# Initialize a list to store the roads in the region