Skip to content

rajkaran/geojson-to-polygon

Repository files navigation

Converting GeoJSOn into WKT (well-known text)

Steps for conversion through python scripts

  • Create a list of municipalities where sunday gun hunting is allowed. Taking that list from https://www.ontario.ca/page/sunday-gun-hunting official website.
  • Total number of municiplaities in Ontario are 687 but sunday gun hunting is only allowed in 183 so, we need to filter down the Geojson list to 183 municipalities. Along with that some reagions have multiple entries such as Ottawa has Island and Mainland entry so we needs to store both of them into our database. This step requires lot of manual work so be careful and take time to finish it.
  • Break the resulting geojson list into small chunks. Run this python script split-geojson.py it takes list of municiplaities where sunday gun hunting is allowed along with original Municipal_Boundary_Ontario.geojson file. This will create multiple json files with few geojson to process.
  • Once we have gullible chunks we will proess them one by one. We have a script ready create-well-known-text.py to build csv for well-known text. This is the format of geo-coordinates our application processes to show regions on the map. In every step chnage the values of 2 variable before executing the script file_path and output_csv_path.

build INSERT query from csv

  • Last step for us is to push the resulting csv file to the database by converting into a INSERT query.
    • we will make conversion in Notepad++. csv is semicolon separated.
    • replace of new line charater with '),\n('.
    • replace all semicolon with ', '.
    • Delete the first line and last line and copy the rest and paste on the DB weaver under the INSERT command. resulting query would look like below.
    • After pushing data into the database revert all the changes to csv
    • Whenever the geocoordinates got too big to fit in the database use https://mapshaper.org/ website to shrink its size by using simplify feature and then export it as geojson. process this geojson through create-well-known-text.py script to create csv file and then INSERT again into database.
INSERT INTO municipality_geometry (ogfId, municipalType, municipalName, municipalAreaExtentType, municipalNamePrefix, municipalNameShortform, upperTierMunicipality, geometry) VALUES
('319585785', 'Lower Tier Municipality', 'TOWNSHIP OF FARADAY', 'Mainland', 'TOWNSHIP OF', 'FARADAY', 'COUNTY OF HASTINGS', 'POLYGON ((-77.78803028472852 44.95099788312845, -77.79267908715313 44.961110784646685, -77.79136768710828 44.96537438543472, -77.802858192628 44.985067088278434, -77.8014953927758 44.99165068946444, -77.80428269404038 44.99559349001126, -77.8033846941929 45.00054139089663, -77.79760319260703 45.00388379172929, -77.79987399354518 45.0060707919996, -77.79851859334715 45.00878329252402, -77.79915219388866 45.012497793129185, -77.79505449279206 45.01517129377114, -77.79310569250954 45.01909539452906, -77.79403899297446 45.02087269478998, -77.80790999815599 45.02811839539678, -77.8266630044076 45.02956029479143, -77.83583120887006 45.04582529714786, -77.8481445126156 45.04279629607194, -77.85199411453404 45.050112097143646, -77.8822528237566 45.04289249453685, -77.90448853467525 45.08325280039645, -78.03612907440554 45.047877088361126, -78.00432075839386 44.98579637923836, -77.95792863603306 44.905630767662, -77.86952860923427 44.92794107549324, -77.78803028472852 44.95099788312845))'),
('319586236', 'Lower Tier Municipality', 'TOWNSHIP OF ESSA', 'Mainland', 'TOWNSHIP OF', 'ESSA', 'COUNTY OF SIMCOE', 'POLYGON ((-79.72795155188582 44.29368978018843, -79.74538846373088 44.36122649096006, -79.85205669578197 44.33851528195424, -79.86185479993517 44.34942688335651, -79.90249881208207 44.34017427981773, -79.8999333112302 44.33984357988423, -79.89868011063487 44.33776077958713, -79.89963591074181 44.33562717917512, -79.9027896119126 44.33735917932078, -79.90500081235182 44.334481378720845, -79.9027160112535 44.33054317815481, -79.90592451198131 44.32733707745052, -79.90982121315338 44.32653447712563, -79.90468991120672 44.32326437681083, -79.88669460508277 44.319338077000786, -79.88306080260584 44.30521647475026, -79.88056980235241 44.31106027587337, -79.87567360060457 44.309113475773856, -79.86980199673981 44.28774547238439, -79.86004779285209 44.279482671431516, -79.85738589114729 44.27028596997776, -79.87334089592902 44.26681426861665, -79.86915139311367 44.25090236608048, -79.90210840297371 44.24358036324229, -79.88294038986918 44.16813445116517, -79.84084757722918 44.176945354695015, -79.8379831753245 44.16620955298013, -79.83056187310324 44.167847453616744, -79.82908117213148 44.16243255275321, -79.72129083979867 44.18566126189481, -79.72395794162031 44.196201063586315, -79.70430753574571 44.20069616529624, -79.72010364657284 44.26337597534608, -79.7127595443734 44.26502317597955, -79.71590464648068 44.27694327788153, -79.72316474865414 44.27530507725355, -79.72795155188582 44.29368978018843))'),
('319586186', 'Lower Tier Municipality', 'TOWNSHIP OF ST. CLAIR', 'Water', 'TOWNSHIP OF', 'ST. CLAIR', 'COUNTY OF LAMBTON', 'POLYGON ((-82.45591798389701 42.912507006890806, -82.46002668517491 42.912541906691246, -82.47034888605076 42.88742210177467, -82.46825818246832 42.85568369631567, -82.47274418211117 42.83674679276968, -82.47886328295755 42.82535739046537, -82.48203708236466 42.80825158730401, -82.4807173814178 42.80241088634435, -82.47194337720404 42.78616618392872, -82.46783097447089 42.770293281344195, -82.46736537360356 42.762419679983196, -82.48391407606755 42.73340747405558, -82.4836618746188 42.718452871436426, -82.49503007641523 42.699632867556964, -82.51050997804305 42.6650427606928, -82.50970837547334 42.63961465624974, -82.50094187247159 42.63644045612575, -82.48574166742533 42.632675656217025, -82.48341846659748 42.63147985612144, -82.48769926819492 42.63447395643703, -82.48919896861122 42.63395005627005, -82.48797516830953 42.634794656479855, -82.49237346965208 42.634593356225835, -82.49175546961672 42.63630345655819, -82.49292476983348 42.634712256219366, -82.49344887017975 42.63673165654959, -82.49547427067017 42.635237356185286, -82.4963812711534 42.6374588565321, -82.4968232711147 42.635535056170795, -82.49689977133785 42.63772235655282, -82.50213337305354 42.63877945647906, -82.50252577336833 42.64089945683345, -82.50507167432879 42.64279335704088, -82.50696887673793 42.66275126046514, -82.50330897648773 42.67240816234912, -82.49695327531934 42.681145764204985, -82.49216337497981 42.693644666645085, -82.48570127338408 42.69806946774611, -82.480869271851 42.69766376791515, -82.4857844734946 42.69899576790512, -82.48043767292279 42.710834970256, -82.48254757365933 42.711744070311, -82.48018767291659 42.71161267040532, -82.47673607266417 42.720527372146556, -82.47860377385177 42.72717647322373, -82.4782759744185 42.73446637452285, -82.4725804735432 42.744157976511666, -82.46562777205195 42.751379478128314, -82.46304827205833 42.760157179800586, -82.46443937352966 42.77148628172303, -82.47248817818004 42.79494078544305, -82.47079067771065 42.795556885635996, -82.47335777850233 42.7955148855005, -82.4710044777999 42.795806285669165, -82.47141557800387 42.796638485794816, -82.47368027862093 42.79571798552009, -82.47702648025655 42.802221686495365, -82.47606138005563 42.8032874867307, -82.47836228091768 42.8049058869, -82.47678648128891 42.814237388617165, -82.46693788032572 42.83690409308741, -82.4613613819159 42.87285219967074, -82.45536578146726 42.88811110264493, -82.4586019841185 42.905909005600975, -82.45591798389701 42.912507006890806), (-82.49915397198004 42.637116456333835, -82.49850347167197 42.63594515615962, -82.50119947259981 42.63697265620681, -82.50071587251234 42.63765425635107, -82.49915397198004 42.637116456333835), (-82.50137377266662 42.63711445622314, -82.50373957353622 42.6386233563717, -82.5040529738957 42.64150085686362, -82.50230007308926 42.63860605644019, -82.50097757261437 42.63788505637878, -82.50137377266662 42.63711445622314), (-82.49632717538981 42.68403556474524, -82.49734667545215 42.68126646420663, -82.49791887562283 42.68119596416573, -82.49675247551431 42.683958064710446, -82.49632717538981 42.68403556474524), (-82.48798017435394 42.70095756814127, -82.49092797505453 42.6986407675865, -82.49142817506785 42.697094367289274, -82.4927316755061 42.697473667291135, -82.49047277508637 42.70052876794164, -82.48798017435394 42.70095756814127), (-82.48907077447352 42.69857486766739, -82.49114587502118 42.69753926738167, -82.48762457423851 42.700899068148644, -82.48732467407183 42.700092468021566, -82.48907077447352 42.69857486766739), (-82.48732507426067 42.70215466838466, -82.48700767402187 42.70061896813006, -82.4878450744029 42.701949868322686, -82.4900800750032 42.70094826803503, -82.49268967561345 42.6987889675249, -82.49297477557857 42.69744346727372, -82.49186027517393 42.69679166721443, -82.49406157582305 42.69643866704265, -82.49318937585826 42.6997730676733, -82.4879380745074 42.70277706846371, -82.48732507426067 42.70215466838466), (-82.47842497447348 42.73456317453246, -82.47858417452515 42.73458837452895, -82.47870937457532 42.734712974544614, -82.47850147450953 42.73469757455226, -82.47842497447348 42.73456317453246), (-82.46951817289562 42.747439377241456, -82.46955397290334 42.74740297723328, -82.4696651729426 42.74745547723694, -82.46964157293867 42.747491877244514, -82.46951817289562 42.747439377241456), (-82.46670507244059 42.75197827817997, -82.46685297249117 42.752030278181735, -82.46658727242156 42.75216877821933, -82.46666917243282 42.75201487818818, -82.46670507244059 42.75197827817997), (-82.46616528089139 42.84563119465711, -82.46616408088597 42.845577094647695, -82.46628658092467 42.84558449464288, -82.46627548092542 42.845629694651365, -82.46616528089139 42.84563119465711), (-82.46621718507687 42.89074610256375, -82.46737268535728 42.88990290235823, -82.46651028516497 42.890715402543755, -82.46770738547568 42.89006070236909, -82.46553048495642 42.89174550277322, -82.46621718507687 42.89074610256375), (-82.46557778439023 42.885468301671004, -82.46595018457273 42.88619300177934, -82.46561418449562 42.886485401847416, -82.46556408447597 42.886441001842115, -82.46557778439023 42.885468301671004), (-82.46505598400745 42.883079801278555, -82.46428748349342 42.88009970079474, -82.46606088460948 42.886218501778316, -82.46599778458246 42.88613830176742, -82.46505598400745 42.883079801278555), (-82.46775378505002 42.88530540153357, -82.46770288512265 42.88626060170351, -82.46730678503106 42.88659880178258, -82.46664368477035 42.8860039017115, -82.46775378505002 42.88530540153357), (-82.46641358470926 42.88611510174254, -82.46732458505822 42.886832701822684, -82.466121484769 42.88773960204179, -82.46558148450133 42.88665690187907, -82.46641358470926 42.88611510174254), (-82.46544918470958 42.88935120235781, -82.46864758542284 42.8863385016699, -82.46760858482108 42.88331710119243, -82.4688446852971 42.884318901306166, -82.46904178579291 42.88901690211946, -82.46760658538614 42.8894315022639, -82.4641857845484 42.89184370285774, -82.46544918470958 42.88935120235781), (-82.46690448443526 42.88150710091049, -82.46700308446906 42.88154180091164, -82.46742138474904 42.88316630117539, -82.46704868456557 42.88243270106551, -82.46690448443526 42.88150710091049), (-82.46568358392645 42.88009990072492, -82.46642868419832 42.88054070076494, -82.46749618496877 42.885290701543894, -82.46743378494533 42.88524640153927, -82.46568358392645 42.88009990072492), (-82.46738978456852 42.88132080085356, -82.46629378410911 42.880029000682, -82.46413568342741 42.87989460076636, -82.46488308351753 42.87836310046056, -82.4639301833739 42.88000520079608, -82.4632290830965 42.87935690071747, -82.46489798348557 42.8779668003904, -82.46695418340231 42.87016919892074, -82.4689973849844 42.88042670061642, -82.46738978456852 42.88132080085356), (-82.46529198399868 42.88219410111152, -82.46457858357256 42.87997890075902, -82.46665828468826 42.88506740154671, -82.4665308847255 42.885897501698516, -82.46529198399868 42.88219410111152), (-82.46132778398119 42.89529320360507, -82.45921558267935 42.8883051024864, -82.46373648332236 42.88009770082195, -82.46545528430406 42.88494770158589, -82.46539388447586 42.88701050195044, -82.46604548478382 42.888154902118366, -82.46207058419488 42.89511260353625, -82.46355088445557 42.89296860308657, -82.46303738453943 42.895595503572466, -82.46132778398119 42.89529320360507))'),
('319586180', 'Lower Tier Municipality', 'MUNICIPALITY OF DUTTON/DUNWICH', 'Water', 'MUNICIPALITY OF', 'DUTTON/DUNWICH', 'COUNTY OF ELGIN', 'POLYGON ((-81.22098886821473 42.563239205492245, -81.33068800989675 42.64819241538887, -81.35436421650371 42.63933961267598, -81.36359151872723 42.631907510909556, -81.38473712423873 42.61960860770366, -81.39873542742626 42.60624110465029, -81.42710073623368 42.60584170321559, -81.44032564017758 42.60381960221941, -81.45872324521086 42.59587609991956, -81.46427844646914 42.5905131986971, -81.46773164687554 42.58291609717767, -81.48629625243564 42.5803802958324, -81.51037075941669 42.574509293627294, -81.23427375432507 42.35550566765792, -81.22098886821473 42.563239205492245))'),
('319585839', 'Lower Tier Municipality', 'TOWNSHIP OF SOUTH FRONTENAC', 'Mainland', 'TOWNSHIP OF', 'SOUTH FRONTENAC', 'COUNTY OF FRONTENAC', 'POLYGON ((-76.5221525505484 44.71840479883986, -76.52624055219295 44.72201739929131, -76.5311931535502 44.71886429853197, -76.54412975960636 44.740375301707374, -76.67511749936887 44.70315408961922, -76.67471649814985 44.69031508740966, -76.66497529173655 44.65218848121117, -76.65552078446913 44.602693173014885, -76.64403777753436 44.564884466927595, -76.63621137219432 44.53172736148609, -76.67008898285331 44.52677185916917, -76.73810350457384 44.520751055197096, -76.77533221689826 44.522681153930414, -76.83659723682801 44.52174005112344, -76.71278388218718 44.35184812677374, -76.64898036166643 44.35541803012718, -76.56796283537638 44.35728483390887, -76.56833563395782 44.338651830626205, -76.40238568035072 44.34579503891885, -76.38848037685302 44.35853294174202, -76.37244207144265 44.35647624205894, -76.36209246818288 44.357972542758645, -76.3577551670843 44.36186154362425, -76.36185866864957 44.36459124392988, -76.3595266683667 44.37043204505307, -76.35032596535864 44.370426645440695, -76.33440956085191 44.378919247602305, -76.33287176059736 44.38194464819788, -76.32537355865816 44.38819094960977, -76.32190185826896 44.3972813513503, -76.31758425715464 44.40090775216827, -76.31947765791925 44.402677552398664, -76.3189634578962 44.40444495273013, -76.31365015667684 44.41075845406103, -76.31271955674269 44.41526595489026, -76.30959825592846 44.41778375546321, -76.30769165609725 44.42742765723335, -76.29640025339435 44.43948945982271, -76.29569075387471 44.448153461369856, -76.27934984942017 44.45901726396141, -76.2777526492262 44.46301446472851, -76.27908164976628 44.464291464895965, -76.27445804854815 44.4678811657193, -76.27238074819043 44.47179816649245, -76.25266774242387 44.48015286878591, -76.25564544477332 44.49684997158119, -76.26464504724437 44.491070270190605, -76.3096590648533 44.52583157436467, -76.5221525505484 44.71840479883986))'),
('319586038', 'Lower Tier Municipality', 'MUNICIPALITY OF THAMES CENTRE', 'Mainland', 'MUNICIPALITY OF', 'THAMES CENTRE', 'COUNTY OF MIDDLESEX', 'POLYGON ((-80.94732892192887 43.009609597895015, -80.95010762238807 43.004970096941626, -80.95415892359397 43.00423329661715, -80.9547236235849 43.00213989621999, -80.95701962424941 43.00151049599867, -80.95914822453005 42.99715719512692, -80.9618490254033 42.99744629504854, -80.9638863258191 42.99493469450677, -80.97414012894741 42.99393339383813, -80.97426222862995 42.989935093125226, -80.97797012952935 42.98696849242283, -80.9770473291305 42.985739392249734, -80.9843711314675 42.98618189197676, -80.98284523114141 42.98789699235325, -80.98641603234341 42.98881609234449, -80.98530193219665 42.99109419280075, -80.98675163279258 42.99267929301148, -80.99375413498704 42.99265259267086, -81.0234281494568 43.05046680145734, -81.037617553518 43.04609240000268, -81.13225339992742 43.23145222804509, -81.24241663147586 43.19803791683135, -81.17856610021296 43.073793298086635, -81.19098400405038 43.07317179737638, -81.19281880449557 43.071727697033275, -81.1790043990214 43.059020695462756, -81.16883429543147 43.05455349516713, -81.16612609409604 43.04914049434383, -81.15032738955466 43.05372639591547, -81.14774768828104 43.04854979512747, -81.13198318376632 43.05332319673017, -81.12673028116876 43.04272999511569, -81.13458718341597 43.04031789431113, -81.12630217932045 43.02360659176264, -81.12986368034582 43.022588791411295, -81.12926117983072 43.01894699079763, -81.12713477913967 43.01867379085197, -81.12021907577729 43.00532998882978, -81.11531447409345 43.0036937887772, -81.11439157365358 43.002010588524485, -81.1248140766346 42.99881188745744, -81.12176017514798 42.99289138655897, -81.12941977734319 42.9905923857839, -81.12896347691178 42.98736638523609, -81.13138977720193 42.9821045841897, -81.12991737638784 42.97815768356334, -81.12649907546894 42.979863284029314, -81.12258467400144 42.97716798374163, -81.11086656657844 42.93510547686838, -81.10853526586756 42.93532477701927, -81.10708216489755 42.929543276066155, -81.11641346774246 42.92866177546162, -81.11489166674183 42.922776374493296, -81.1267761703634 42.921639673720776, -81.11978796545782 42.89108736864756, -81.10521316103582 42.89269206963165, -81.10477056063179 42.88970296912342, -81.08229865376548 42.89164287054547, -81.08066175268483 42.88524116948971, -80.89873799809783 42.912795583078235, -80.9230424135267 43.00084859750946, -80.93384251678776 42.99939929673593, -80.94732892192887 43.009609597895015))'),
('319586097', 'Single Tier Municipality', 'TOWNSHIP OF PAPINEAU-CAMERON', 'Water', 'TOWNSHIP OF', 'PAPINEAU-CAMERON', '', 'MULTIPOLYGON (((-78.52055025259948 46.29871257421092, -78.52613025444633 46.298793073956, -78.51819095146827 46.29517397374639, -78.49648044397398 46.29177507423331, -78.49514094367964 46.2932489745383, -78.49127074223568 46.291561874448426, -78.48435343994964 46.29149977477, -78.47720503777808 46.29334957541493, -78.47384553655111 46.292150275380074, -78.47411573653301 46.29107617519168, -78.46830303455218 46.29042557536403, -78.4648489334706 46.29099707562291, -78.46711973433453 46.29215457570316, -78.46456963356106 46.292827175935294, -78.46264633279083 46.291461275804295, -78.45660013101141 46.29360427644409, -78.44689212766293 46.292118676666334, -78.43098422264374 46.29438187779773, -78.41594041753412 46.29288207827251, -78.41125661579018 46.29087707816885, -78.40964491539928 46.29228947847676, -78.40379201340026 46.29159617864329, -78.40536471417803 46.2942001789937, -78.43084612268316 46.29523417794363, -78.47504353713349 46.2940297756297, -78.48389154021108 46.29564467546922, -78.50054944556021 46.29423117443924, -78.52055025259948 46.29871257421092), (-78.46268113289487 46.29238927595423, -78.46249623284066 46.29245717597414, -78.46247203282904 46.29242057596935, -78.46256553285377 46.29235957595488, -78.46268113289487 46.29238927595423), (-78.47183573585457 46.29180877542065, -78.47196043585109 46.291361475341624, -78.47248483604032 46.29152627534341, -78.47235663602292 46.29177547539024, -78.47183573585457 46.29180877542065), (-78.46761193447098 46.29189547563726, -78.46753653444057 46.29183987563178, -78.46768303448106 46.291761975612026, -78.46771823450084 46.29184377562375, -78.46761193447098 46.29189547563726), (-78.46589753399093 46.29274847585877, -78.46576223395857 46.29287157588536, -78.4656106338993 46.29277807587736, -78.46569153391987 46.29271697586352, -78.46589753399093 46.29274847585877), (-78.49939904499887 46.292406174196365, -78.4994056450145 46.2925411742181, -78.4993016449809 46.29254807422422, -78.49933494497581 46.292386674196244, -78.49939904499887 46.292406174196365), (-78.48826154149248 46.29405207499953, -78.48790364136204 46.293927074996255, -78.4878550413387 46.293853974986625, -78.4886178415972 46.29392477496162, -78.48826154149248 46.29405207499953), (-78.48897204159255 46.29270847474596, -78.48898234160224 46.29277177475581, -78.4888526415592 46.29276887476155, -78.48885464155538 46.29272407475416, -78.48897204159255 46.29270847474596), (-78.49228344268307 46.292700174585754, -78.49239814272565 46.292747674588014, -78.49220024266715 46.29281547460858, -78.4922045426596 46.29272537459366, -78.49228344268307 46.292700174585754), (-78.48858694142794 46.29233117470281, -78.48901724159406 46.2925744747219, -78.48794784125181 46.292676874789905, -78.48836524135709 46.29235327471704, -78.48858694142794 46.29233117470281), (-78.48336733976441 46.292900275046115, -78.48340873977276 46.292847175035455, -78.48352323981523 46.292894675037715, -78.48341783978387 46.292928475048264, -78.48336733976441 46.292900275046115), (-78.47944753855361 46.29371397536697, -78.47962743861689 46.2937539753649, -78.47924823849826 46.29381767539347, -78.47924973849517 46.29378177538755, -78.47944753855361 46.29371397536697), (-78.45941113192451 46.29346867628724, -78.45917373185384 46.293544276310946, -78.45898053178703 46.29351307631515, -78.4592988318774 46.29336717627604, -78.45941113192451 46.29346867628724), (-78.46154213265147 46.29371397622521, -78.46109353249096 46.293587076226, -78.46100823245096 46.29346817621064, -78.46198313277004 46.29344497616014, -78.46154213265147 46.29371397622521), (-78.47885553834733 46.29360197537706, -78.47930263848218 46.29347667533517, -78.47949563854986 46.29351717533249, -78.47917553846248 46.293699075377575, -78.47885553834733 46.29360197537706), (-78.46495123373163 46.293276575990404, -78.46472673369394 46.2936405760606, -78.4640337334478 46.293463376064864, -78.46417223347494 46.293277176027836, -78.46495123373163 46.293276575990404), (-78.46535933385451 46.29315947595168, -78.46541653386184 46.29304397593008, -78.46576173398712 46.2931594759324, -78.46554873392816 46.293271875961025, -78.46535933385451 46.29315947595168), (-78.45842353160036 46.29348267633684, -78.4588286317007 46.29314947626302, -78.45922733184018 46.293230576257166, -78.45902343179228 46.29342397629852, -78.45842353160036 46.29348267633684), (-78.45782443140695 46.29352347637225, -78.4579077314229 46.29340837634944, -78.45835283156165 46.29332807631496, -78.45814943151298 46.29351267635487, -78.45782443140695 46.29352347637225), (-78.45834723160019 46.293732976381406, -78.45792493144748 46.29359787637954, -78.45883523174416 46.29356387633041, -78.45882033174371 46.293608576338414, -78.45834723160019 46.293732976381406), (-78.45984593211014 46.29389237633563, -78.45904103184479 46.29389257637426, -78.45888853178701 46.2938170763692, -78.45955923198987 46.29363407630718, -78.45984593211014 46.29389237633563), (-78.48144683926998 46.29428917536507, -78.48123843920267 46.29430257537725, -78.481214139191 46.29426597537245, -78.48138533924244 46.29421587535605, -78.48144683926998 46.29428917536507), (-78.48149533929329 46.294362175374665, -78.48147813929656 46.29445177539014, -78.48128543922905 46.294411675392794, -78.48135273924599 46.29435907538097, -78.48149533929329 46.294362175374665), (-78.48293213980504 46.29474487536827, -78.48281243977164 46.29480517538389, -78.48261793970707 46.294800875392504, -78.48280363975968 46.294714975369516, -78.48293213980504 46.29474487536827), (-78.48267193974831 46.295035975428306, -78.48294823985975 46.29524017544839, -78.48223723961848 46.29517057547112, -78.48231803963901 46.29510937545723, -78.48267193974831 46.295035975428306), (-78.48354264003363 46.29501917538377, -78.48373744012618 46.295302575420735, -78.48289373981925 46.29501397541408, -78.48328733993996 46.294923575380395, -78.48354264003363 46.29501917538377), (-78.4876121412788 46.29405577503126, -78.48416114024788 46.29512277537104, -78.48158823929175 46.294040175317626, -78.48568844045096 46.2921142748064, -78.4876121412788 46.29405577503126), (-78.52332165347154 46.29830037401047, -78.52341095350475 46.29833817401237, -78.52346175352429 46.29836627401448, -78.52323085344139 46.29829827401446, -78.52332165347154 46.29830037401047), (-78.52439805382946 46.29833267396403, -78.5242501537921 46.29844637398975, -78.52381675363128 46.29826597398106, -78.52410375372283 46.29823607396238, -78.52439805382946 46.29833267396403), (-78.5247490539729 46.298610073992464, -78.52474585397906 46.29868207400437, -78.52460525392792 46.298634074003296, -78.52460725392407 46.29858907399585, -78.5247490539729 46.298610073992464)), ((-78.62569898938708 46.3200948726386, -78.63758869341581 46.32121127224695, -78.6864148092047 46.318313569416205, -78.68641320900656 46.31635116909645, -78.63275439170691 46.32005237229129, -78.60368778194231 46.31816807338575, -78.5845469751504 46.31332747351833, -78.57466497185992 46.31298307393795, -78.56075436695446 46.3097707740833, -78.53259615680977 46.301119874025225, -78.53249985699254 46.30326407437992, -78.54925236300721 46.308201674380506, -78.5979938801172 46.318673973742676, -78.62569898938708 46.3200948726386)))'),
('319585858', 'Single Tier Municipality', 'TOWNSHIP OF MCKELLAR', 'Mainland', 'TOWNSHIP OF', 'MCKELLAR', '', 'POLYGON ((-79.73473036521806 45.45390347603379, -79.80108639856675 45.57264569245306, -79.96986944872461 45.527412576609365, -79.90483681575344 45.408185660057065, -79.73473036521806 45.45390347603379))'),
('319586156', 'Lower Tier Municipality', 'TOWNSHIP OF ALNWICK/HALDIMAND', 'Mainland', 'TOWNSHIP OF', 'ALNWICK/HALDIMAND', 'COUNTY OF NORTHUMBERLAND', 'POLYGON ((-77.9740277745047 44.147984135925284, -78.03054770353398 44.27217295506199, -78.04516860737213 44.26191925261968, -78.05954271188475 44.26034585169987, -78.08182091857825 44.254467149674596, -78.09140292071852 44.243458447326155, -78.1145815265207 44.22402454289735, -78.14514473377838 44.19391303627263, -78.17844474257079 44.17132493083344, -78.08207959386318 43.96715439941605, -78.07147189026186 43.965045499519135, -78.06343048798885 43.96879120053579, -78.03437697863593 43.969005301868854, -78.00813936966289 43.963044201990265, -77.9764120606326 43.977190505887535, -77.96607265728964 43.97711740633451, -77.9344003464774 43.970192906525014, -77.92037324239948 43.975477408076564, -77.90800233857365 43.977449808972224, -77.89884953590116 43.98077110996199, -77.9740277745047 44.147984135925284), (-78.09788801906707 44.200342839519024, -78.09542091782097 44.195172738728054, -78.10176001972793 44.1935414381587, -78.10237212003278 44.19477443834622, -78.09953001923712 44.196189238720756, -78.09788801906707 44.200342839519024), (-78.13983142936736 44.16288583109806, -78.13959652928843 44.162850431102434, -78.1395805292823 44.162839831101316, -78.13995652939528 44.162741931067366, -78.13983142936736 44.16288583109806), (-78.12603132524977 44.16680423240239, -78.12434712470306 44.1667734324727, -78.12584832515624 44.1664074323413, -78.12603132524977 44.16680423240239), (-78.04165519952504 44.184574639291206, -78.0378385983751 44.185542239631204, -78.03594269744264 44.18184933907151, -78.03680099773601 44.18203343906516, -78.03866449834204 44.18207593898907, -78.04028959883385 44.18168893884868, -78.04165519952504 44.184574639291206), (-78.0646239067552 44.18233863787102, -78.06024760587022 44.18844993913393, -78.05667420473164 44.18863943932732, -78.05478790377073 44.184584838704225, -78.0646239067552 44.18233863787102), (-78.06541980696838 44.18183013774659, -78.0664066072649 44.18157123765712, -78.066475807293 44.18163753766555, -78.06566200709246 44.18235873782799, -78.06541980696838 44.18183013774659), (-78.0751073091418 44.17077883538277, -78.07792460975453 44.16734193465631, -78.08259211212076 44.17724763617618, -78.06833260782813 44.18088813745149, -78.0751073091418 44.17077883538277), (-78.07782270965976 44.16662753453613, -78.07636030893026 44.16365923408341, -78.07982450998064 44.16286293378896, -78.0799745100836 44.16349213389209, -78.07782270965976 44.16662753453613), (-78.06722580725553 44.178406937068, -78.06189440455476 44.16711163533503, -78.07612080885765 44.16371453410379, -78.07769100964099 44.16690233459002, -78.07078860828935 44.17704983667125, -78.06792110761599 44.179974137310374, -78.06722580725553 44.178406937068), (-78.05495310331854 44.178745737677545, -78.05076470118567 44.1697422362933, -78.06011210401451 44.167524235487, -78.06655450729222 44.181334837609214, -78.05727710450218 44.18374073844529, -78.05495310331854 44.178745737677545), (-78.03575699734866 44.1814568390113, -78.03255479567385 44.17406143786348, -78.03636439682718 44.17315943753532, -78.04020749879236 44.18151643882223, -78.0368434977342 44.1818536390319, -78.03863219831753 44.18191303896211, -78.04368829984477 44.18067653851964, -78.03865929833842 44.182053838985475, -78.03681179773544 44.18198673905653, -78.03575699734866 44.1814568390113), (-78.03341779662097 44.18178543917346, -78.02838539509615 44.18296343960461, -78.03072289579099 44.18226143937735, -78.02831659506087 44.18281293958141, -78.02501729338316 44.17574633849535, -78.03231459560091 44.174115837883754, -78.03561939732889 44.18174243906729, -78.03511069715827 44.18167123907768, -78.03341779662097 44.18178543917346), (-78.03760229830408 44.18560473965274, -78.0390469990146 44.188417540078966, -78.03182839684285 44.19028624072864, -78.02839489510097 44.18298413960781, -78.03564409734102 44.18179063907464, -78.03760229830408 44.18560473965274), (-78.05481940416347 44.18900123947367, -78.05636390495216 44.192342639987444, -78.05366160400746 44.19152013996517, -78.05274450353959 44.189541639661, -78.04560450139114 44.191383040302526, -78.04380040046338 44.18740413968896, -78.05299880323257 44.18504803886533, -78.05481940416347 44.18900123947367), (-78.06574000732247 44.18472333823717, -78.0681379085436 44.18987123902797, -78.06174660662545 44.19157403961192, -78.06038080592951 44.18863743916071, -78.06513700701554 44.183429338038394, -78.06574000732247 44.18472333823717), (-78.08246671236378 44.18051873675276, -78.08472851352974 44.185537337527066, -78.06903750881399 44.189635938946566, -78.06582640717663 44.18271693788312, -78.08123501172884 44.17778473633079, -78.08246671236378 44.18051873675276), (-78.0966081164603 44.17506273516562, -78.09956121797458 44.181521836160286, -78.08496461360065 44.18547523750563, -78.0814722118002 44.17772443630967, -78.09608191619044 44.173911134988224, -78.0966081164603 44.17506273516562), (-78.09703001663611 44.175518335226165, -78.09932101780112 44.180416835978235, -78.09978181804078 44.1814636361402, -78.09616071621416 44.17389053498106, -78.09703001663611 44.175518335226165), (-78.1048584190504 44.17419153464305, -78.10546491936296 44.17553613485049, -78.10724862028215 44.179489235460245, -78.10361301845953 44.172016934319444, -78.1048584190504 44.17419153464305), (-78.12711492580273 44.16914323276194, -78.12925702689746 44.1737850334758, -78.10896992079827 44.17902793530244, -78.10546621901705 44.17154193415324, -78.12366082449608 44.16694293253312, -78.12611992529425 44.16698673243024, -78.12711492580273 44.16914323276194), (-78.14160303029735 44.16700903173814, -78.14380953126437 44.16993913215025, -78.12949242696796 44.17372163345411, -78.12638632538068 44.16699113241901, -78.14160303029735 44.16700903173814), (-78.14215383046525 44.16689383169322, -78.14233493050047 44.16662553163828, -78.14253983060577 44.16707663170777, -78.14232553053412 44.16704833171248, -78.14215383046525 44.16689383169322), (-78.14075352993294 44.16597183159526, -78.1414233302195 44.16678073170636, -78.1260871252283 44.16634903232038, -78.13940182922865 44.16288643111751, -78.13880272919822 44.16476593147249, -78.14075352993294 44.16597183159526), (-78.14006952943004 44.16272183105875, -78.14030832950091 44.16265023103551, -78.1422530304584 44.16644563161054, -78.13970762946741 44.164500231385425, -78.14006952943004 44.16272183105875), (-78.08091531032476 44.16276713372331, -78.09155201353207 44.160119732783734, -78.09773291666986 44.173287334805195, -78.082828812192 44.17718673615494, -78.0781024097947 44.167142034613434, -78.08091531032476 44.16276713372331))'),
('319585807', 'Lower Tier Municipality', 'MUNICIPALITY OF MEAFORD', 'Islands', 'MUNICIPALITY OF', 'MEAFORD', 'COUNTY OF GREY', 'MULTIPOLYGON (((-80.72142561034222 44.72057370442787, -80.72127311031029 44.720744404464256, -80.72174121043965 44.7205387044062, -80.72166591040852 44.720466504397805, -80.72142561034222 44.72057370442787)), ((-80.77504362669004 44.712634400413776, -80.7750685267033 44.71268860042166, -80.77516952673825 44.712715900421216, -80.7751067267093 44.71262550040911, -80.77504362669004 44.712634400413776)), ((-80.77174702567552 44.713024100644084, -80.7717845256955 44.71310530065591, -80.77193602574296 44.713096500646884, -80.77191112572797 44.713024500635996, -80.77174702567552 44.713024100644084)), ((-80.72059041011319 44.72095890453444, -80.72076741016184 44.72087840451208, -80.72057851008996 44.7207609045017, -80.72052731008863 44.72091380453002, -80.72059041011319 44.72095890453444)))'),
;

About

Converting geojson to Polygons. Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages