r-spatial / lwgeom

bindings to the liblwgeom library
https://r-spatial.github.io/lwgeom/
58 stars 23 forks source link

st_make_valid broke my shape #48

Closed BastienFR closed 4 years ago

BastienFR commented 4 years ago

I've encountered a problem with the function st_make_valid and I wanted to share it here to make people aware of this behavior. It may be a bug, but it may also be data specific so I'm not sure something could be change in the package to fix it.

Anyway, I've notice that using st_make_valid on a shape made the st_write function fail for a specific dataset.

Here is a reproducible example:

Preparing the session:

library(sf)
library(dplyr)
library(lwgeom)

First, copy paste the dput of the shape. Sorry the dput is enormous, I couldn't make it smaller and still reproduce the behavior.

Click to see the dput of the shape fsa.raw <- structure(list(FSA = c("S4R", "S4S", "S4T", "S4V", "S4W", "S4X" ), FSA_NAME = c("REGINA", "REGINA", "REGINA", "REGINA", "REGINA", "REGINA"), PR = c("47", "47", "47", "47", "47", "47"), geometry = structure(list( structure(list(list(structure(c(5302796.69950482, 5302882.76781702, 5302897.75194831, 5302963.92581344, 5302983.71723835, 5302966.90444534, 5303004.80258904, 5303025.82401457, 5303048.90488679, 5303008.76564428, 5303024.97156681, 5303170.31662308, 5303383.54436708, 5303455.00266521, 5303610.19156592, 5303683.97391793, 5303714.73317942, 5303769.09722665, 5303806.06535403, 5303793.4050644, 5303926.96035945, 5303941.71399835, 5304177.84575214, 5304580.28235237, 5304603.31619287, 5304649.15294485, 5305385.42042901, 5305438.70104347, 5305659.0726907, 5306134.75324817, 5306161.53403289, 5306170.6904644, 5306261.0409186, 5306336.97638294, 5306415.202418, 5306442.48981033, 5306448.71291325, 5306491.85980936, 5307900.12159158, 5307814.8253358, 5307795.39290828, 5307783.92337024, 5307775.92031494, 5307766.80654505, 5307601.72868778, 5307560.82227562, 5307660.06973123, 5307606.8151466, 5307578.45514534, 5307572.53020014, 5307564.92985865, 5307530.61659238, 5307517.76579659, 5307499.23485141, 5307487.75047581, 5307481.18246677, 5307477.86270126, 5307479.2917742, 5307418.40962723, 5307402.29000447, 5307412.01428315, 5307391.81270566, 5307337.58421414, 5307301.8398401, 5307263.13577138, 5307260.70781339, 5307246.06811244, 5307231.22400297, 5307200.57191991, 5307218.56883934, 5307208.87522744, 5307195.90421984, 5307188.36622379, 5307157.50795511, 5307140.00410709, 5307137.52282835, 5307150.68132808, 5307158.44867881, 5307154.64023672, 5307134.02617258, 5307112.97145875, 5307091.82717975, 5307107.13714621, 5307084.59164035, 5307057.28028867, 5307082.62694767, 5307058.37127431, 5307023.52495338, 5307048.84877023, 5307022.28103474, 5306989.37357892, 5307010.48294056, 5306981.25994254, 5306959.49432941, 5306926.93629089, 5306883.76115598, 5306853.53923801, 5306841.68776176, 5306835.7966516, 5306737.09296662, 5306651.08479513, 5306640.73145373, 5306546.78843747, 5306444.49621354, 5306148.72049882, 5306135.10573859, 5306085.18095938, 5306036.49273787, 5305999.43705546, 5305936.66252955, 5305836.60292955, 5305736.07507448, 5305634.57857665, 5305565.9621904, 5305536.9368422, 5305530.63779651, 5305435.4412331, 5305418.85047533, 5305338.08988664, 5305332.62153456, 5305326.39176804, 5305316.84088997, 5305336.67126969, 5305395.38764299, 5305567.91600103, 5305601.59755381, 5305518.01595488, 5305473.15682798, 5305427.89238874, 5305448.76704368, 5305392.07175117, 5305343.93512983, 5305245.27438053, 5305044.05625524, 5304944.75450767, 5304745.68382405, 5304655.02318057, 5304547.94034564, 5304438.92681572, 5304297.79633179, 5304110.63026871, 5304025.67288907, 5303882.36701777, 5303741.09086798, 5303696.7794375, 5303299.95792929, 5303198.88191322, 5303094.44701761, 5303050.90098993, 5302993.86090102, 5302889.84203459, 5302784.67724703, 5302683.08363118, 5302579.30638664, 5302479.83906707, 5302164.90948177, 5302173.30005962, 5302183.73438136, 5302236.27647685, 5302234.4596447, 5302334.32782954, 5302394.59613077, 5302473.04148911, 5302489.22956471, 5302508.78663473, 5302517.90398791, 5302547.6485361, 5302576.73879313, 5302604.54978913, 5302598.24231826, 5302606.5874547, 5302662.79969881, 5302693.72433851, 5302740.54973267, 5302790.50921451, 5302796.69950482, 1684171.10974753, 1684598.40054166, 1684595.23154874, 1684750.52635756, 1684874.40913766, 1684931.46695196, 1684956.25362074, 1685054.03013613, 1685172.49896622, 1685212.63663509, 1685217.23448856, 1685162.19066118, 1685098.50605808, 1685102.11557984, 1685083.69232614, 1685073.62263036, 1685065.88643034, 1685058.42070243, 1685051.11342006, 1685008.42115535, 1684982.78943057, 1685022.68448468, 1684921.52155991, 1684888.34362864, 1684885.46066061, 1684877.14555265, 1684718.97531731, 1684706.89694596, 1684663.77666833, 1684579.72715782, 1684572.25300448, 1684569.82790735, 1685008.42494656, 1685098.65375769, 1685085.35567786, 1685080.03738242, 1685078.77304069, 1685070.0071802, 1684865.75078532, 1684454.80131648, 1684355.79941568, 1684300.67149882, 1684251.27437257, 1684209.8909787, 1683412.7001403, 1683213.86176301, 1683193.28110419, 1683098.31269759, 1683040.51263609, 1683029.41029019, 1683015.37419304, 1682959.1201576, 1682940.50490462, 1682911.64070306, 1682865.31800969, 1682827.25438878, 1682822.96092643, 1682684.05169841, 1682504.2737247, 1682424.79979867, 1682360.51577594, 1682252.74537519, 1682094.4179687, 1681926.35774038, 1681757.20362263, 1681581.4810164, 1681508.59064795, 1681435.40290618, 1681421.7518473, 1681388.63811813, 1681347.59426377, 1681292.87840815, 1681247.89770573, 1681236.43324532, 1681154.75328691, 1681139.67802939, 1681138.47665389, 1681123.1289131, 1681107.19394759, 1681023.322278, 1680927.68645339, 1680896.97959839, 1680887.55254934, 1680755.07815189, 1680726.29928297, 1680714.83651763, 1680590.27187383, 1680559.52151371, 1680543.32197454, 1680417.30644464, 1680390.79114239, 1680384.3646823, 1680256.62923344, 1680223.22538082, 1680114.22836046, 1680106.39072154, 1680133.63184344, 1680142.35786229, 1680146.71386206, 1680158.60906903, 1680143.20704298, 1680137.2922797, 1680130.38850394, 1680146.63087223, 1680205.31168071, 1680208.18855192, 1680217.53404114, 1680227.64511506, 1680235.05609469, 1680246.7866563, 1680268.34797566, 1680288.31331209, 1680308.47779756, 1680321.9650163, 1680327.74869549, 1680329.02838997, 1680347.91777154, 1680351.40161585, 1680368.26325062, 1680369.37444064, 1680370.64036159, 1680392.45158445, 1680504.93454401, 1680793.87913727, 1681658.4971893, 1681734.17940907, 1681752.63219265, 1681761.29739696, 1681867.58767102, 1681972.06349829, 1681983.81310597, 1681996.19450569, 1682017.71877538, 1682056.48623745, 1682075.21253153, 1682113.55740842, 1682131.54882121, 1682155.59309352, 1682179.35557509, 1682208.52833588, 1682247.30277927, 1682274.19506473, 1682323.46991296, 1682359.35250152, 1682369.28034821, 1682451.02228613, 1682470.94155117, 1682490.64454083, 1682500.08446544, 1682512.61410481, 1682532.23733502, 1682554.01620624, 1682572.81130583, 1682593.97362172, 1682611.88831616, 1682671.16376756, 1682683.67883251, 1682702.32584447, 1682764.88610883, 1682786.710066, 1682907.47529073, 1682976.13781621, 1683034.65698505, 1683053.25954768, 1683076.36880098, 1683087.15502088, 1683122.41301495, 1683161.53052134, 1683180.24663625, 1683210.43777696, 1683337.90335245, 1683639.64524998, 1683819.52186966, 1684016.25161306, 1684140.75872377, 1684171.10974753), .Dim = c(176L, 2L)))), class = c("XY", "MULTIPOLYGON", "sfg")), structure(list(list(structure(c(5302773.50801425, 5302785.80521032, 5302814.29222157, 5302866.2793255, 5302887.42169134, 5302921.93340975, 5302961.68572788, 5303034.81350168, 5303088.10705888, 5303162.94852044, 5303143.11926225, 5303150.52772608, 5303154.25994506, 5303156.26303815, 5303175.55083092, 5303214.60227797, 5303247.91797578, 5303250.9682467, 5303250.1603686, 5303311.46771557, 5303345.01481991, 5303431.46951769, 5303425.14906257, 5303594.8656147, 5303808.72895223, 5303879.16458117, 5303976.51470533, 5304079.58707737, 5304188.12127577, 5304248.67016629, 5304288.96446782, 5304296.69345858, 5304260.97641085, 5304253.68188377, 5304251.14643443, 5304245.1035999, 5304291.62245791, 5304383.46130176, 5304499.04759509, 5304603.57967112, 5304760.29471085, 5304894.52697623, 5304905.27371804, 5304912.31226548, 5304925.60856076, 5304930.02509241, 5304914.01063712, 5304918.53433793, 5304929.930003, 5304954.93101554, 5305003.96939214, 5305034.52269639, 5305063.94607496, 5305079.32977697, 5305123.34409287, 5305138.90787531, 5305161.876211, 5305174.06374809, 5305189.98099663, 5305201.48209739, 5305282.04069981, 5305287.95399627, 5305294.93931616, 5305294.61268778, 5305290.62946334, 5305279.68610424, 5305268.10053696, 5305256.21708982, 5305216.00524824, 5305206.47707876, 5305197.41823242, 5305190.94255168, 5305146.47503595, 5305106.93556512, 5305105.14482627, 5305104.68458233, 5305108.69789842, 5305107.62332552, 5305114.68443061, 5305132.67560418, 5305147.05081939, 5305157.2624253, 5305183.28253309, 5305225.80956811, 5305245.81930608, 5305263.12530905, 5305273.10746092, 5305288.13189938, 5305296.72791285, 5305327.79754063, 5305356.51186976, 5305376.23862324, 5305418.71927288, 5305443.6515944, 5305499.65570616, 5305514.1516569, 5305546.91423603, 5305563.88939699, 5305576.84229224, 5305585.57105548, 5305580.00069132, 5305584.03376735, 5305624.07869779, 5305641.96534174, 5305657.45362117, 5305673.91879947, 5305693.84589801, 5305710.82095357, 5305756.75103102, 5305777.84708091, 5305786.18817783, 5305793.78916082, 5305794.82085558, 5305795.01286597, 5305803.35439924, 5305804.6639738, 5305805.83825636, 5305807.45662462, 5305810.84998515, 5305815.10302522, 5305822.96369563, 5305834.41852478, 5305844.42226862, 5305852.81393213, 5305925.45000947, 5305986.28173424, 5306049.81991346, 5306061.33779807, 5306079.43288155, 5306099.95632173, 5306125.46355576, 5306153.51240986, 5306213.97392079, 5306217.95959245, 5306238.03484249, 5306257.03366845, 5306296.2175104, 5306319.35737841, 5306328.71805476, 5306349.72801017, 5306405.27147136, 5306436.70193196, 5306447.32339633, 5306463.36391176, 5306473.4372479, 5306474.98304353, 5306485.39084254, 5306493.95056736, 5306499.92755418, 5306513.53392882, 5306517.51184842, 5306528.63465432, 5306540.62612404, 5306548.60430069, 5306570.09559276, 5306597.1403908, 5306625.60017327, 5306665.2143854, 5306676.29732892, 5306696.10253809, 5306717.68787934, 5306783.50747976, 5306810.51046333, 5306812.43548713, 5306811.02195444, 5306799.46837269, 5306795.11948512, 5306793.51604016, 5306795.97532781, 5306800.23138138, 5306803.77067455, 5306809.60575797, 5306830.61673374, 5306845.89023322, 5306864.75251482, 5306869.12484043, 5306867.00093892, 5306851.83793673, 5306805.60737329, 5306791.12732281, 5306756.16740208, 5306736.69212936, 5306707.19644138, 5306684.78168057, 5306660.32784889, 5306648.26820258, 5306643.92725342, 5306633.82822682, 5306619.25582578, 5306599.25475756, 5306579.13291398, 5306549.6956244, 5306534.63074441, 5306498.54378532, 5306506.59255569, 5306502.08461239, 5306492.65078637, 5306487.60400512, 5306476.95611169, 5306469.69771321, 5306461.27465756, 5306447.52898894, 5306444.44901972, 5306447.65632905, 5306432.69660221, 5306407.40599628, 5306371.58529134, 5306326.08945381, 5306300.30297513, 5306284.12148644, 5306275.95412696, 5306275.87698605, 5306279.33416498, 5306297.00161289, 5306321.45377573, 5306366.5984649, 5306370.62440442, 5306368.90826814, 5306364.77931409, 5306344.36042682, 5306332.21679096, 5306330.12653085, 5306335.22404082, 5306345.6458029, 5306355.12370643, 5306367.75893537, 5306406.60112528, 5306427.29243213, 5306483.23980323, 5306500.89452315, 5306518.51188113, 5306566.926172, 5306583.58203726, 5306597.65308989, 5306631.36289418, 5306643.4477844, 5306664.13946392, 5306684.31829062, 5306723.61446949, 5306739.73792429, 5306755.86856789, 5306769.52881037, 5306807.31260568, 5306838.65015798, 5306948.98296816, 5306956.26485227, 5306980.03697473, 5306987.71438248, 5307051.61049455, 5307075.05228307, 5307135.58770111, 5307142.60410211, 5307198.60888844, 5307236.57956016, 5307250.38894203, 5307271.06758036, 5307289.55451006, 5307295.25096578, 5307309.57237048, 5307323.09618197, 5307334.57375992, 5307346.0817435, 5307364.03487524, 5307386.56734249, 5307425.05836888, 5307448.1001733, 5307455.5859231, 5307461.04249866, 5307477.25321422, 5307488.2169752, 5307494.54392021, 5307493.05877739, 5307479.05844968, 5307474.0475682, 5307480.60261243, 5307491.04918927, 5307490.63508792, 5307489.54492856, 5307490.44383624, 5307515.62634224, 5307516.89822662, 5307512.66675016, 5307503.57348316, 5307491.53853693, 5307486.90172046, 5307481.5754568, 5307477.14132096, 5307473.12450929, 5307474.00986475, 5307477.30155813, 5307481.58016512, 5307484.16044633, 5307485.20293363, 5307485.55598062, 5307484.58219165, 5307475.62222628, 5307466.31050152, 5307465.06332572, 5307468.07939731, 5307478.07115224, 5307487.06785296, 5307492.54559313, 5307503.53355306, 5307509.04421185, 5307530.99232492, 5307532.58923375, 5307539.12721776, 5307566.47690959, 5307568.65684364, 5307578.00353966, 5307583.94517323, 5307588.02113078, 5307596.79504161, 5307604.38775267, 5307615.59033274, 5307615.56896478, 5307587.2841979, 5307579.68654062, 5307571.38652086, 5307561.37474498, 5307564.2852688, 5307573.25765048, 5307582.56632209, 5307594.52461554, 5307592.35916304, 5307584.6034876, 5307572.03453503, 5307567.56093143, 5307565.36453804, 5307560.99030137, 5307558.53285557, 5307545.58271341, 5307510.4003606, 5307515.84729279, 5307511.54811638, 5307516.38329595, 5307515.6528318, 5307521.17228782, 5307530.19479208, 5307535.67714129, 5307538.5658575, 5307554.00554743, 5307572.09796816, 5307576.16175808, 5307572.36133992, 5307573.41887156, 5307576.59246401, 5307580.28664477, 5307583.81535515, 5307602.19723755, 5307600.64450629, 5307584.9880791, 5307524.65136779, 5307514.6302721, 5307502.92797197, 5307493.64817266, 5307489.94145972, 5307485.13535294, 5307483.19765279, 5307450.91612748, 5307448.36287564, 5307446.29125229, 5307447.00640825, 5307450.48454042, 5307454.35120462, 5307457.53827044, 5307469.36004777, 5307480.02980112, 5307484.29515393, 5307488.09589132, 5307492.01851018, 5307493.40957601, 5307492.92486878, 5307493.60493097, 5307507.61661487, 5307507.43862435, 5307503.353426, 5307487.09138407, 5307469.01980935, 5307463.7968742, 5307459.25546366, 5307452.98363502, 5307446.07829288, 5307445.22174239, 5307445.74762445, 5307449.98155603, 5307456.42790496, 5307474.81826101, 5307499.01376722, 5307517.78014311, 5307525.32725204, 5307546.8115559, 5307578.90399779, 5307600.83493711, 5307635.32936333, 5307643.44289107, 5307673.96864121, 5307680.2993406, 5307675.21672541, 5307647.62650424, 5307640.60506819, 5307627.02274869, 5307620.4633354, 5307611.61772551, 5307592.15286832, 5307583.47564936, 5307574.37534613, 5307567.73976148, 5307567.55182513, 5307576.92345036, 5307589.82132068, 5307599.68844735, 5307598.58472302, 5307599.37141335, 5307602.8044404, 5307605.23855663, 5307610.11112089, 5307614.93436749, 5307619.02218723, 5307620.93793854, 5307623.05472993, 5307634.68818442, 5307651.31275219, 5307726.47822449, 5307740.99089938, 5307743.63303693, 5307747.68914363, 5307770.59118641, 5307767.43728162, 5307756.82288988, 5307725.23491641, 5307685.18340724, 5307645.41363619, 5307611.51540448, 5307557.36366576, 5307554.52793865, 5307554.80221208, 5307558.30944933, 5307562.29979018, 5307567.27341815, 5307571.35842879, 5307573.9243338, 5307575.74166911, 5307574.75694534, 5307569.54678628, 5307556.83500199, 5307517.48465885, 5307511.79700452, 5307519.77345212, 5307548.32370382, 5307556.03850084, 5307562.37760915, 5307575.53712773, 5307579.99606546, 5307581.91840549, 5307578.851378, 5307546.64221473, 5307545.48720724, 5307554.01274711, 5307580.26925906, 5307600.28242125, 5307611.21545668, 5307612.21503696, 5307572.92420418, 5307565.1027162, 5307541.75361529, 5307544.99528151, 5307552.31753355, 5307557.49704999, 5307579.98091936, 5307581.36216405, 5307589.94882951, 5307566.0876046, 5307515.80764688, 5307512.50380007, 5307234.80051249, 5307220.40948028, 5306790.7119555, 5305701.70291223, 5305105.34664339, 5305107.12289337, 5305112.14349957, 5305114.42598609, 5305078.77325794, 5305049.34299073, 5304950.19304741, 5304859.39783907, 5304744.06316905, 5304675.72141317, 5304630.94327809, 5304591.57225415, 5304499.15222122, 5304253.61370642, 5304201.3558057, 5304193.84403801, 5304156.19389704, 5304063.97124926, 5304058.03504965, 5304044.68491583, 5304034.14841431, 5303594.60680303, 5303508.91148922, 5303394.63581547, 5303083.1871835, 5302480.96496433, 5302319.60226166, 5302299.09829368, 5302270.13140222, 5302253.02002214, 5302253.52755704, 5302254.6665389, 5302266.65018454, 5302269.76048139, 5302279.65446193, 5302287.92759943, 5302302.64665237, 5302315.19858825, 5302329.62706202, 5302378.6645155, 5302411.69563025, 5302442.00309258, 5302459.08520026, 5302462.04384806, 5302479.92818307, 5302563.51953459, 5302607.8694746, 5302631.2651774, 5302653.958583, 5302676.54984584, 5302721.82136656, 5302697.21714599, 5302760.47852838, 5302771.59499131, 5302785.95142789, 5302773.50801425, 1676679.78587711, 1676740.18020582, 1676902.40896617, 1677160.91690741, 1677260.49972891, 1677444.87362547, 1677633.37367323, 1677756.58476513, 1678061.90639503, 1678408.23040791, 1678533.99231768, 1678579.23136422, 1678584.45600419, 1678587.20980719, 1678630.93329216, 1678828.03745317, 1678983.51341148, 1679023.99343456, 1679034.54611556, 1679065.42265321, 1679116.85630453, 1679107.2720689, 1679071.97467145, 1679082.81860109, 1678933.94746544, 1678871.85382728, 1678811.96402822, 1678832.66028779, 1678847.95713341, 1678845.01379218, 1678822.25358014, 1678813.4555282, 1678745.97304318, 1678717.19666897, 1678707.21167321, 1678440.27829446, 1678344.55464237, 1678312.1053974, 1678305.65474845, 1678323.58426748, 1678329.32924015, 1678302.16287358, 1678293.65624548, 1678292.45179286, 1678299.68578988, 1678290.54611986, 1678191.50615285, 1678183.24795366, 1678171.89979709, 1678159.36791487, 1678151.21069106, 1678156.06796293, 1678156.07417631, 1678156.90053422, 1678148.86207076, 1678140.28081748, 1678123.42108391, 1678098.92860774, 1678047.71011251, 1678030.13156444, 1677953.47698041, 1677942.11442706, 1677917.21124645, 1677885.77679008, 1677868.29498215, 1677824.00018738, 1677803.88484191, 1677773.78130796, 1677702.91378035, 1677691.8647267, 1677652.94518835, 1677626.03364779, 1677588.54775117, 1677536.62502027, 1677531.00463953, 1677508.8552399, 1677488.84566585, 1677470.77281836, 1677450.14417575, 1677414.08523279, 1677392.535621, 1677382.44508828, 1677369.93420616, 1677359.15193109, 1677348.65246729, 1677334.07297291, 1677323.91646317, 1677267.91172572, 1677245.95567093, 1677208.93568459, 1677191.927225, 1677184.64739273, 1677178.95759248, 1677181.68604133, 1677200.68764669, 1677212.76125827, 1677366.32374906, 1677369.65187992, 1677367.02228561, 1677360.28241303, 1677323.25109544, 1677323.22269194, 1677306.96428101, 1677304.12372109, 1677311.14122668, 1677326.87999275, 1677334.80305095, 1677338.13174836, 1677330.61564162, 1677334.35010226, 1677341.68954193, 1677361.3728922, 1677376.40560459, 1677399.73785362, 1677416.67406078, 1677417.08569378, 1677417.18607314, 1677416.63179937, 1677418.42697684, 1677419.48315514, 1677421.61360837, 1677416.57908414, 1677399.41964059, 1677394.21652277, 1677377.21763993, 1677365.66370342, 1677357.85180624, 1677353.48255692, 1677338.52081063, 1677339.43738095, 1677349.27833684, 1677356.00700664, 1677358.98284824, 1677359.07751143, 1677353.87597991, 1677347.98968861, 1677313.62221269, 1677289.39648374, 1677279.3688695, 1677268.10745192, 1677257.85801561, 1677255.6608262, 1677265.36130702, 1677258.04375352, 1677238.72700812, 1677231.41366074, 1677218.01287595, 1677219.32531764, 1677223.19375286, 1677210.27340843, 1677170.85464857, 1677150.30915888, 1677144.7162692, 1677144.22745694, 1677149.91766783, 1677162.72361376, 1677172.19446596, 1677181.54893476, 1677186.41452241, 1677194.81798698, 1677200.26391494, 1677223.27346438, 1677235.52438629, 1677238.97270405, 1677251.5652539, 1677276.03568103, 1677284.82025959, 1677293.27405526, 1677298.64622897, 1677299.36398366, 1677297.96907149, 1677295.09265196, 1677276.72085148, 1677248.89977522, 1677240.56016204, 1677229.40005718, 1677208.60562953, 1677173.29372759, 1677112.44213323, 1677101.49092083, 1677089.83689068, 1677075.94698945, 1677066.34666746, 1677056.10117822, 1677056.43022286, 1677052.44001553, 1677050.949249, 1677042.04553007, 1677045.22599359, 1677056.84578522, 1677064.31284582, 1677084.1687317, 1677090.6105941, 1677097.5897741, 1677187.06867532, 1677200.40194666, 1677203.66988098, 1677203.67723837, 1677189.57885838, 1677149.16453572, 1677072.06760485, 1677042.33956019, 1677022.52898407, 1676974.68565666, 1676906.25255045, 1676874.01082936, 1676843.90469826, 1676789.56751762, 1676765.55557293, 1676737.33752805, 1676714.49403732, 1676703.44515796, 1676696.30848036, 1676609.51544295, 1676590.66920712, 1676581.73964867, 1676577.76192309, 1676550.44867809, 1676531.86665173, 1676467.81384833, 1676450.9700206, 1676436.03902463, 1676416.71487774, 1676378.47224074, 1676359.05015216, 1676342.03623733, 1676315.53077102, 1676316.19001203, 1676334.20077659, 1676336.60504539, 1676338.11372993, 1676332.13672194, 1676323.56646033, 1676308.29453549, 1676260.02552665, 1676238.15649186, 1676215.33312384, 1676197.80734501, 1676186.34201759, 1676185.106124, 1676187.82039582, 1676193.29346867, 1676232.37661204, 1676249.62162119, 1676268.3574193, 1676270.83327957, 1676279.22533763, 1676283.65329462, 1676320.26889132, 1676322.40588311, 1676318.94663179, 1676322.60552415, 1676318.14576499, 1676310.11459992, 1676307.42994421, 1676306.96652986, 1676311.35023181, 1676310.98657528, 1676310.11765558, 1676292.13689974, 1676264.40983676, 1676256.77256417, 1676249.9749024, 1676255.45886223, 1676273.85503381, 1676306.78311363, 1676314.18588644, 1676310.14540248, 1676304.71715573, 1676300.80321414, 1676295.00594194, 1676289.09736519, 1676290.12646005, 1676256.48176474, 1676253.23492542, 1676254.95773695, 1676257.18665534, 1676262.48782757, 1676264.78952045, 1676293.33289289, 1676306.73587657, 1676310.4152748, 1676318.57912475, 1676318.9843677, 1676317.10102011, 1676315.01861761, 1676315.9166649, 1676318.87524699, 1676322.53444732, 1676325.25469805, 1676326.08160914, 1676328.49435618, 1676332.57332094, 1676336.45322542, 1676350.87551017, 1676371.09245453, 1676408.08947022, 1676412.97085886, 1676422.52074259, 1676421.28732582, 1676411.22369217, 1676372.7453094, 1676347.94049514, 1676343.0988377, 1676323.97723237, 1676323.31513687, 1676321.76528389, 1676322.54881886, 1676321.20418367, 1676315.36000076, 1676311.22145878, 1676309.26708476, 1676303.08735454, 1676297.48553012, 1676285.84658206, 1676276.4804802, 1676253.98394381, 1676227.86272734, 1676218.93119029, 1676208.31415145, 1676198.46718029, 1676184.00574587, 1676170.49231337, 1676159.37769301, 1676145.47825093, 1676132.82370597, 1676126.6758191, 1676133.79108418, 1676152.86392057, 1676166.16842692, 1676172.19804145, 1676183.400741, 1676136.10899368, 1676128.45784727, 1676099.74928886, 1676093.35101281, 1676071.93546648, 1676068.5597643, 1676067.52291459, 1676063.25156593, 1676053.29607551, 1676044.41171112, 1676042.21568455, 1676048.39242807, 1676068.80616562, 1676073.67240389, 1676074.38452848, 1676073.74936606, 1676071.22845789, 1676040.18509176, 1676036.43519826, 1676027.86415875, 1676022.69609584, 1676019.87083588, 1676012.3056472, 1675990.70211831, 1675974.17935736, 1675945.46042067, 1675908.82217923, 1675875.50646218, 1675870.37860653, 1675865.49190838, 1675860.83112987, 1675858.77196692, 1675859.34369125, 1675863.32710707, 1675884.30303713, 1675896.02879534, 1675898.21327324, 1675898.4596725, 1675895.74603585, 1675892.64187521, 1675888.1111997, 1675854.78135364, 1675811.41339754, 1675796.99843579, 1675781.4554038, 1675768.82979464, 1675771.13460552, 1675781.67579171, 1675786.32113275, 1675788.8331365, 1675787.86068197, 1675783.63108923, 1675779.46023126, 1675773.29655869, 1675764.87847205, 1675749.18700505, 1675756.81910369, 1675772.55039244, 1675778.47343164, 1675769.15548924, 1675761.64112914, 1675749.18479471, 1675738.92657454, 1675741.23527348, 1675735.95811472, 1675723.04794792, 1675715.04514685, 1675719.50212911, 1675714.03695523, 1675710.01305646, 1675713.59910093, 1675729.05075497, 1675736.94335196, 1675726.50730146, 1675721.46314261, 1675709.71052341, 1675696.31367053, 1675676.69105292, 1675666.28954127, 1675645.55058224, 1675631.54886358, 1675624.38988179, 1675619.96914718, 1675616.31515713, 1675615.4415116, 1675617.17451806, 1675620.97569884, 1675627.58751538, 1675634.836016, 1675642.41568421, 1675646.50110747, 1675630.83213418, 1675629.47473746, 1675637.18138595, 1675637.26345271, 1675624.6115473, 1675615.08923197, 1675609.33512077, 1675614.71367073, 1675618.19317018, 1675612.01964826, 1675588.17447883, 1675556.57594354, 1675554.32764639, 1675549.98195734, 1675547.35254052, 1675547.10908327, 1675549.94060186, 1675549.45218634, 1675546.44888565, 1675542.2423676, 1675537.02260902, 1675518.77183755, 1675508.36228238, 1675487.87937255, 1675475.82182564, 1675468.9004643, 1675463.1196391, 1675468.44442741, 1675473.03167283, 1675471.04464129, 1675467.77096745, 1675462.30130569, 1675457.84183158, 1675446.97683395, 1675438.06586592, 1675433.85588521, 1675445.24877552, 1675442.55159327, 1675432.77385689, 1675427.37813862, 1675375.8353215, 1675358.22605267, 1675248.24768246, 1675223.9953337, 1675197.44911942, 1675168.51424695, 1675119.93136486, 1675117.84533351, 1675105.38148551, 1674973.26460791, 1674749.85258452, 1674734.60241397, 1673456.64593619, 1673377.36409231, 1673468.67045309, 1673692.444232, 1673812.19297639, 1673821.65624229, 1673848.52772782, 1673860.48532324, 1673858.01048668, 1673855.96670422, 1673861.41289907, 1673878.15073644, 1673899.87292244, 1673915.21751729, 1673923.97146528, 1673931.62782827, 1673949.60667309, 1674000.15960956, 1674012.24439902, 1674013.99639998, 1674022.66223598, 1674039.4812477, 1674040.46164594, 1674042.60982748, 1674044.75091025, 1674135.89866015, 1674152.87065853, 1674175.54342641, 1674237.42256948, 1674358.847396, 1674391.69976167, 1674397.00398674, 1674402.22465551, 1674417.45386878, 1674445.47048442, 1674452.12737758, 1674511.68650042, 1674527.31525687, 1674570.58595256, 1674568.67544213, 1674565.45239855, 1674618.23265806, 1674705.75211856, 1674926.3701749, 1675088.58666177, 1675256.21282267, 1675335.84980276, 1675350.37973533, 1675438.20978446, 1675846.24651, 1676062.27748975, 1676139.61045642, 1676218.10256202, 1676282.27382152, 1676405.74211184, 1676411.76827014, 1676582.84037579, 1676612.98597655, 1676651.95741564, 1676679.78587711), .Dim = c(535L, 2L))), list(structure(c(5306690.80205764, 5306542.3587818, 5306530.4400682, 5306519.34272898, 5306516.71822499, 5306516.7325398, 5306517.94971413, 5306526.47533482, 5306536.42369124, 5306688.47294478, 5306703.34993085, 5306749.86629886, 5306773.45483192, 5306716.09998784, 5306690.80205764, 1677258.66490905, 1677198.78306137, 1677218.24800261, 1677224.3370408, 1677228.82079037, 1677232.09200827, 1677234.89349542, 1677242.08373695, 1677249.88867847, 1677317.95783807, 1677321.26383546, 1677331.59012514, 1677294.63155331, 1677268.55139553, 1677258.66490905), .Dim = c(15L, 2L))), list(structure(c(5305208.54305137, 5305228.83949894, 5305256.66408344, 5305273.80286141, 5305286.53600539, 5305288.30282679, 5305324.93746404, 5305385.33410038, 5305393.78915197, 5305386.00886947, 5305354.83469653, 5305325.08891529, 5305296.62530284, 5305250.21113575, 5305218.47708348, 5305208.54305137, 1677494.30897638, 1677543.81781023, 1677564.6999651, 1677545.75098432, 1677515.05121726, 1677510.96647384, 1677484.67132574, 1677416.63094223, 1677407.12353895, 1677376.97656481, 1677371.56440563, 1677407.63801226, 1677422.67659233, 1677430.29596494, 1677442.72497947, 1677494.30897638), .Dim = c(16L, 2L))), list(structure(c(5305493.17063851, 5305513.33544916, 5305551.95351237, 5305577.99230515, 5305593.50318753, 5305598.98232376, 5305589.1909275, 5305590.93444167, 5305591.47054178, 5305575.21933213, 5305556.6614357, 5305537.06877008, 5305500.78785206, 5305493.17063851, 1678217.58830845, 1678239.12273596, 1678231.50673641, 1678209.171021, 1678179.37630843, 1678167.65085703, 1678121.20319706, 1678068.3488609, 1678062.82061939, 1678036.76521248, 1678042.67846253, 1678121.62515715, 1678176.97664229, 1678217.58830845), .Dim = c(14L, 2L)))), class = c("XY", "MULTIPOLYGON", "sfg")), structure(list(list(structure(c(5299315.50993929, 5299534.09145914, 5299842.63767012, 5300883.94869751, 5300892.2087294, 5300908.44935218, 5301004.63743598, 5301032.84088985, 5301193.21015462, 5301546.0986696, 5301556.8743251, 5301638.38580281, 5301699.70565144, 5301715.27827829, 5301717.06428489, 5301710.89296605, 5301756.36979445, 5301772.50701529, 5301863.35482229, 5301880.58756753, 5301989.81013455, 5302130.8079535, 5302584.39817418, 5302596.366411, 5302684.62739195, 5302796.69950482, 5302790.50921451, 5302740.54973267, 5302693.72433851, 5302662.79969881, 5302606.5874547, 5302598.24231826, 5302604.54978913, 5302576.73879313, 5302547.6485361, 5302517.90398791, 5302508.78663473, 5302489.22956471, 5302473.04148911, 5302394.59613077, 5302334.32782954, 5302234.4596447, 5302236.27647685, 5302183.73438136, 5302173.30005962, 5302164.90948177, 5302479.83906707, 5302579.30638664, 5302683.08363118, 5302784.67724703, 5302889.84203459, 5302993.86090102, 5303050.90098993, 5303094.44701761, 5303198.88191322, 5303299.95792929, 5303696.7794375, 5303741.09086798, 5303882.36701777, 5304025.67288907, 5304110.63026871, 5304297.79633179, 5304438.92681572, 5304547.94034564, 5304655.02318057, 5304745.68382405, 5304944.75450767, 5305044.05625524, 5305245.27438053, 5305343.93512983, 5305392.07175117, 5305448.76704368, 5305427.89238874, 5305473.15682798, 5305518.01595488, 5305601.59755381, 5305567.91600103, 5305395.38764299, 5305336.67126969, 5305316.84088997, 5305326.39176804, 5305297.40020251, 5305272.78325541, 5305268.15637788, 5305258.2445979, 5305242.07891914, 5305233.69705362, 5305218.52277973, 5305215.24925591, 5305204.16654656, 5305201.76495279, 5305187.32057255, 5305172.39447026, 5305149.07581308, 5305157.85877831, 5305154.13524466, 5305152.07043576, 5305135.99541389, 5305107.20772552, 5305070.47456415, 5305082.69520486, 5305081.10569001, 5305072.84969607, 5305052.20974791, 5304996.37347755, 5305003.1562278, 5305012.91960825, 5305009.74993934, 5305000.73513169, 5304997.98728024, 5304994.13145569, 5304973.93659553, 5304965.77804024, 5304941.51258272, 5304918.8869081, 5304936.86667244, 5304947.50911442, 5304938.98207156, 5304919.86967302, 5304912.31226548, 5304905.27371804, 5304894.52697623, 5304760.29471085, 5304603.57967112, 5304499.04759509, 5304383.46130176, 5304291.62245791, 5304245.1035999, 5304251.14643443, 5304253.68188377, 5304260.97641085, 5304296.69345858, 5304288.96446782, 5304248.67016629, 5304188.12127577, 5304079.58707737, 5303976.51470533, 5303879.16458117, 5303808.72895223, 5303594.8656147, 5303425.14906257, 5303431.46951769, 5303345.01481991, 5303311.46771557, 5303250.1603686, 5303250.9682467, 5303247.91797578, 5303214.60227797, 5303175.55083092, 5303156.26303815, 5303154.25994506, 5303150.52772608, 5303143.11926225, 5303162.94852044, 5303088.10705888, 5303043.29591935, 5303015.94401408, 5303015.88803821, 5303021.5716802, 5303036.93348162, 5303014.26426146, 5302996.53676321, 5302980.9559662, 5302970.29178271, 5302922.52277359, 5302893.01423331, 5302897.23910225, 5302920.51445691, 5302931.95291472, 5302934.49304422, 5302930.89524397, 5302923.99740084, 5302906.93914177, 5302848.88877619, 5302772.96477943, 5302737.04246372, 5302730.81344238, 5302714.54698656, 5302691.95267996, 5302676.17392058, 5302664.95183344, 5302625.84837015, 5302617.65103562, 5302607.82306379, 5302603.40991907, 5302603.19335085, 5302605.25107425, 5302615.63105519, 5302725.00478854, 5301961.27786775, 5301702.17096874, 5301149.80212398, 5300314.10008672, 5300311.84354903, 5300293.22757915, 5299761.45080995, 5299520.57810386, 5299539.86074612, 5299121.88576906, 5299127.12007139, 5299030.64816599, 5299044.17794731, 5298962.29255758, 5298970.68107799, 5298777.17436723, 5298946.63795903, 5298995.70394209, 5299166.76845212, 5299315.50993929, 1683255.29638417, 1683185.1487802, 1683104.5119755, 1682895.33685387, 1682893.08447494, 1682888.97562203, 1682868.75837246, 1682862.88348492, 1682834.75323901, 1682771.83351357, 1682771.6658849, 1682775.5748091, 1682765.65354205, 1682948.89694399, 1682969.64736441, 1683059.43217206, 1683262.4263516, 1683349.23688796, 1683790.35727207, 1683875.47482941, 1684320.85311382, 1684310.70119184, 1684220.51229248, 1684212.0866537, 1684195.21104453, 1684171.10974753, 1684140.75872377, 1684016.25161306, 1683819.52186966, 1683639.64524998, 1683337.90335245, 1683210.43777696, 1683180.24663625, 1683161.53052134, 1683122.41301495, 1683087.15502088, 1683076.36880098, 1683053.25954768, 1683034.65698505, 1682976.13781621, 1682907.47529073, 1682786.710066, 1682764.88610883, 1682702.32584447, 1682683.67883251, 1682671.16376756, 1682611.88831616, 1682593.97362172, 1682572.81130583, 1682554.01620624, 1682532.23733502, 1682512.61410481, 1682500.08446544, 1682490.64454083, 1682470.94155117, 1682451.02228613, 1682369.28034821, 1682359.35250152, 1682323.46991296, 1682274.19506473, 1682247.30277927, 1682208.52833588, 1682179.35557509, 1682155.59309352, 1682131.54882121, 1682113.55740842, 1682075.21253153, 1682056.48623745, 1682017.71877538, 1681996.19450569, 1681983.81310597, 1681972.06349829, 1681867.58767102, 1681761.29739696, 1681752.63219265, 1681734.17940907, 1681658.4971893, 1680793.87913727, 1680504.93454401, 1680392.45158445, 1680370.64036159, 1680317.71066804, 1680194.79672819, 1680172.02778187, 1680120.41399897, 1680042.63597454, 1680002.45283628, 1679929.5536286, 1679912.38036472, 1679855.35899459, 1679843.54070427, 1679768.9121676, 1679689.07492222, 1679540.26567658, 1679534.52931312, 1679516.2053439, 1679505.33461648, 1679500.02053864, 1679364.74115313, 1679164.46224564, 1679163.22087387, 1679155.75347441, 1679119.38235826, 1679109.35058752, 1678832.45038522, 1678831.41078527, 1678829.42679649, 1678810.98985975, 1678759.53026111, 1678747.78191405, 1678728.8069249, 1678687.97409906, 1678675.85744912, 1678567.09177193, 1678452.91167767, 1678449.48386194, 1678447.20836326, 1678427.60170373, 1678334.61120315, 1678292.45179286, 1678293.65624548, 1678302.16287358, 1678329.32924015, 1678323.58426748, 1678305.65474845, 1678312.1053974, 1678344.55464237, 1678440.27829446, 1678707.21167321, 1678717.19666897, 1678745.97304318, 1678813.4555282, 1678822.25358014, 1678845.01379218, 1678847.95713341, 1678832.66028779, 1678811.96402822, 1678871.85382728, 1678933.94746544, 1679082.81860109, 1679071.97467145, 1679107.2720689, 1679116.85630453, 1679065.42265321, 1679034.54611556, 1679023.99343456, 1678983.51341148, 1678828.03745317, 1678630.93329216, 1678587.20980719, 1678584.45600419, 1678579.23136422, 1678533.99231768, 1678408.23040791, 1678061.90639503, 1678200.66076846, 1678288.7735902, 1678339.14644916, 1678430.8075471, 1678556.1794551, 1678561.02175652, 1678564.63195234, 1678567.80503492, 1678569.97686544, 1678578.35064994, 1678585.37699143, 1678607.89053235, 1678729.95663563, 1678778.3268713, 1678806.37761312, 1678827.66136479, 1678860.0056667, 1678913.27670359, 1679082.50812266, 1679302.01689884, 1679413.44539103, 1679430.29711531, 1679480.69789899, 1679538.25984915, 1679575.12433948, 1679599.31700317, 1679661.48573184, 1679674.33504401, 1679702.53466885, 1679727.93705294, 1679750.22585139, 1679775.89032442, 1679835.31461498, 1679975.39923174, 1680022.35743636, 1680017.96009989, 1680031.99041161, 1680068.73823615, 1680057.341729, 1680071.76095037, 1680109.19482158, 1680120.84303988, 1680221.47601726, 1680262.48146436, 1680288.06329788, 1680316.72548408, 1680438.52518267, 1680455.28267162, 1680551.59441307, 1680600.12354131, 1681423.74328794, 1681662.37909344, 1682522.34508347, 1683255.29638417), .Dim = c(209L, 2L)))), class = c("XY", "MULTIPOLYGON", "sfg")), structure(list(list(structure(c(5310569.7817719, 5310610.28303821, 5310613.96680774, 5310643.44956973, 5310758.86538242, 5310794.4422881, 5310824.89111014, 5310833.8646511, 5310923.66538971, 5310996.66740143, 5311018.79508831, 5311054.39769598, 5311069.71332427, 5311137.4851719, 5311150.2202343, 5311194.4467232, 5311262.45951696, 5311266.35949209, 5311304.08725034, 5311323.60903743, 5311423.23386932, 5311440.7947835, 5311445.78093491, 5311455.35598758, 5311501.97735598, 5311499.37431314, 5311497.03364449, 5311496.56308036, 5311492.06761901, 5311436.75915715, 5311385.04173941, 5311364.97968706, 5311362.3211712, 5311420.85036721, 5311547.88350496, 5311553.84036598, 5312954.79870202, 5312849.96325097, 5312819.00078416, 5312638.43105284, 5312434.59099342, 5312373.17348802, 5312285.29002927, 5312182.62085638, 5311933.55544794, 5311801.40685915, 5311734.29312101, 5311697.1010909, 5311678.35991069, 5311671.68068191, 5311652.20548157, 5311626.78445634, 5311571.84722116, 5311361.5984969, 5311093.46072297, 5311009.0556843, 5310950.47773828, 5310880.87763716, 5310596.46811211, 5310745.08241505, 5310679.18007077, 5310559.20626522, 5310520.31384828, 5310471.76991353, 5310465.57926858, 5310199.27006198, 5310149.74926052, 5310016.53437949, 5310016.37386187, 5310008.65507358, 5310021.37429313, 5310033.8950999, 5310039.06524458, 5310039.47872777, 5310035.60592518, 5310033.1189666, 5310020.21286212, 5310011.23165125, 5310002.16686124, 5309996.33107554, 5309986.44268238, 5309956.78950759, 5309923.34533601, 5309904.62310634, 5309888.86562578, 5309886.54345063, 5309889.29194773, 5309897.53111722, 5309903.91342425, 5309922.90006675, 5309944.67088184, 5309947.48346932, 5309956.38130259, 5309961.20769899, 5309970.65596462, 5309977.10140077, 5309973.77498522, 5309975.6741656, 5309975.09626966, 5309967.30333533, 5309944.93026213, 5309919.57724194, 5309899.35285424, 5309863.17515244, 5309836.29974828, 5309809.76670982, 5309786.69752346, 5309765.190157, 5309745.89597466, 5309728.58421352, 5309710.1857967, 5309702.14818733, 5309700.57846284, 5309702.99248326, 5309707.08826066, 5309708.67481474, 5309712.07325316, 5309708.82290741, 5309704.87394938, 5309694.11017489, 5309678.89561561, 5309654.12583635, 5309648.8070169, 5309639.8399616, 5309634.04278497, 5309631.9412455, 5309600.10522664, 5309589.78983315, 5309580.78730405, 5309576.00960534, 5309577.00257414, 5309576.34821946, 5309572.46994322, 5309578.87823451, 5309577.62996049, 5309567.39507063, 5309557.8105255, 5309547.42724583, 5309534.29803207, 5309515.69463588, 5309499.90125726, 5309488.40025795, 5309471.56704334, 5309466.25687477, 5309453.35108119, 5309427.56275537, 5309398.85724613, 5309385.47592476, 5309367.8802551, 5309360.7232928, 5309363.10397069, 5309376.63850603, 5309379.91445036, 5309368.54696288, 5309345.05282442, 5309275.57755488, 5309266.56274636, 5309263.0492451, 5309262.58038505, 5309268.05974085, 5309290.572245, 5309303.60607397, 5309333.53948886, 5309375.5841066, 5309403.5454889, 5309423.54252489, 5309443.03203954, 5309457.54327721, 5309479.62900933, 5309484.45678577, 5309497.43892513, 5309506.41515683, 5309508.48236307, 5309509.68744051, 5309512.07973226, 5309507.07321924, 5309492.0916057, 5309471.52904565, 5309374.57277613, 5309326.04765915, 5309296.12672254, 5309247.59739068, 5309245.70788903, 5309239.05079622, 5309226.04927865, 5309208.55895275, 5309196.5756015, 5309186.56428288, 5309182.57156897, 5309186.09017214, 5309198.8300127, 5309206.0450945, 5309220.12410172, 5309220.62467738, 5309215.52319596, 5309212.51788996, 5309213.9159542, 5309206.89165991, 5309190.69111145, 5309125.45798923, 5309102.28932844, 5309073.67271748, 5309048.62627079, 5309016.50658032, 5308994.5022552, 5308967.94569111, 5308960.88804139, 5308953.42889947, 5308945.83191134, 5308945.85409139, 5308963.896387, 5308960.28793578, 5308954.79198557, 5308944.1831107, 5308923.14434567, 5308918.66090173, 5308914.5896505, 5308914.06494049, 5308908.98600723, 5308903.43727319, 5308896.42224924, 5308887.89158355, 5308891.89376597, 5308895.96058589, 5308898.99336744, 5308900.47022051, 5308896.41909499, 5308889.34288179, 5308865.04248776, 5308838.71408133, 5308834.07853699, 5308834.63016261, 5308838.12937414, 5308836.1035116, 5308834.54123937, 5308812.23280775, 5308786.99977009, 5308774.76059678, 5308763.14834544, 5308754.49071614, 5308731.19846481, 5308661.90137073, 5308638.15279419, 5308635.13585989, 5308618.85718191, 5308623.88830363, 5308620.79947252, 5308611.04360391, 5308591.11199319, 5308582.01859041, 5308567.84939963, 5308551.07614004, 5308536.26034839, 5308518.02486547, 5308497.35312099, 5308486.19468461, 5308431.86427788, 5308417.26461389, 5308405.68773686, 5308394.69562356, 5308382.14739382, 5308368.53017933, 5308267.27724675, 5308230.41885309, 5308219.92682456, 5308179.91836452, 5308169.41251442, 5308159.38111656, 5308128.54227477, 5308131.0820386, 5308090.68993972, 5308059.62839754, 5308045.21572263, 5308013.28713395, 5308019.89999245, 5308030.86260455, 5308034.33942537, 5308031.40710331, 5308021.51394809, 5307999.06634609, 5307992.0683489, 5307974.56677276, 5307871.69396912, 5307844.21876335, 5307715.43555972, 5307697.97493666, 5307681.05567421, 5307670.03169097, 5307659.21377936, 5307656.99641533, 5307653.00444268, 5307651.90410459, 5307657.6634621, 5307664.90339079, 5307685.1873229, 5307738.9983303, 5307759.75251011, 5307796.98887262, 5307805.51516418, 5307805.18781526, 5307789.92959299, 5307762.40754311, 5307725.83051697, 5307699.19935585, 5307666.93917095, 5307592.92575999, 5307590.58129955, 5307553.88127847, 5307545.4317397, 5307539.61833427, 5307541.32005665, 5307546.49407145, 5307558.13728649, 5307566.31756159, 5307591.70443179, 5307613.04255019, 5307636.23024313, 5307639.23799701, 5307635.94569328, 5307659.97386093, 5307696.41725004, 5307738.39021829, 5307757.81250866, 5307780.80962641, 5307787.12183267, 5307787.83606042, 5307786.47325545, 5307783.40612018, 5307775.59397357, 5307733.98692269, 5307724.75315809, 5307670.68105772, 5307645.09436734, 5307624.53917608, 5307621.73908172, 5307616.41602931, 5307607.28553305, 5307604.03079224, 5307600.32323187, 5307597.90669194, 5307595.24857694, 5307593.24251503, 5307617.87763931, 5307643.87952728, 5307685.86994677, 5307745.75343325, 5307771.56441614, 5307799.12744798, 5307838.99814301, 5307852.12683063, 5307886.55855087, 5307928.56045835, 5308051.92160708, 5308196.61277479, 5308212.06964088, 5308233.57232038, 5308259.88749128, 5308304.98986126, 5308340.78738015, 5308469.56161831, 5308546.34078794, 5308686.06936899, 5308733.49974509, 5308726.30505197, 5308753.67722407, 5308849.80203404, 5308878.48852914, 5308896.43506856, 5308904.32127585, 5308909.37654947, 5308918.36578297, 5308919.54252029, 5308918.28303391, 5308897.79449107, 5308898.34411574, 5308898.93377789, 5308930.53431956, 5308942.43769325, 5309038.31204107, 5309088.49204956, 5309120.8114501, 5309149.48840446, 5309172.2876508, 5309205.98870431, 5309291.23123129, 5309400.66669081, 5309530.14865272, 5309555.79214929, 5309676.08691318, 5309718.39393165, 5309923.60661516, 5310179.7909326, 5310311.81874085, 5310473.76369922, 5310532.79089843, 5310563.89552017, 5310569.7817719, 1678430.13111715, 1678425.11354334, 1678434.07695241, 1678429.81712641, 1678411.03013287, 1678405.54104357, 1678401.42605496, 1678400.17897211, 1678385.89000956, 1678374.42895347, 1678370.86603683, 1678365.14816017, 1678363.18601725, 1678351.87987041, 1678349.98726714, 1678343.43331341, 1678333.32210247, 1678332.64809963, 1678326.39063891, 1678323.12929992, 1678307.88459191, 1678304.90647526, 1678303.90065908, 1678302.42065816, 1678293.80658349, 1678285.18916933, 1678275.72873943, 1678270.1801535, 1678251.1089186, 1677975.1222549, 1677716.58118064, 1677498.83370077, 1677469.57154341, 1677457.76648621, 1677432.14729764, 1677430.94605155, 1677178.79978622, 1676657.36233224, 1676503.21258694, 1675605.24178898, 1674598.49214193, 1674694.27129785, 1674711.96717674, 1674637.26342663, 1674574.10139284, 1674523.17686669, 1674417.38688145, 1674336.60969061, 1674317.69719888, 1674304.59453088, 1674262.35120777, 1674217.80664035, 1674184.28916206, 1674015.79927568, 1673866.54789517, 1673788.17820987, 1673799.98873804, 1673814.02261389, 1673684.78139129, 1674409.77880711, 1674423.86214879, 1674458.1114026, 1674490.22817522, 1674500.24829098, 1674501.38448627, 1674556.48062224, 1674567.37891727, 1674596.41454113, 1674596.33405863, 1674600.26293425, 1674628.96494542, 1674641.67704928, 1674654.06687538, 1674669.33601744, 1674684.45446715, 1674695.00345216, 1674696.81870496, 1674695.92255193, 1674698.54278551, 1674707.51014386, 1674718.19878136, 1674723.16953005, 1674720.43934326, 1674709.88274237, 1674691.50277451, 1674673.57095248, 1674655.74418844, 1674641.8887751, 1674627.05363691, 1674617.12429051, 1674614.1963979, 1674614.19299451, 1674618.60540832, 1674620.00164267, 1674620.35189422, 1674614.76092846, 1674580.7760583, 1674564.81417687, 1674547.65906072, 1674539.07244998, 1674542.2346326, 1674550.28830448, 1674553.01691664, 1674551.40320673, 1674548.70171284, 1674541.98014198, 1674521.68996302, 1674506.27735179, 1674510.39922453, 1674525.40975567, 1674542.8975954, 1674561.67987368, 1674579.26888907, 1674597.29517207, 1674615.4333745, 1674637.57784934, 1674651.90574836, 1674675.8172262, 1674687.33914452, 1674695.83468024, 1674702.29400686, 1674701.08762664, 1674700.46849962, 1674698.21552725, 1674694.87080116, 1674693.03746192, 1674671.13221358, 1674656.84670294, 1674640.48979582, 1674606.12034674, 1674547.1042682, 1674539.2212574, 1674515.73325554, 1674485.31337757, 1674459.48791973, 1674448.45982205, 1674443.50933739, 1674439.96198367, 1674443.17823017, 1674456.07986909, 1674473.60697171, 1674540.9548817, 1674574.04526255, 1674581.32687851, 1674604.93147131, 1674621.54282951, 1674626.21284004, 1674624.96494832, 1674636.42201941, 1674654.91441091, 1674680.62408526, 1674730.83539977, 1674778.82932034, 1674792.18914907, 1674801.22561644, 1674813.6823324, 1674824.76086966, 1674836.64699085, 1674857.1749649, 1674899.64362946, 1674933.59048064, 1674948.11627173, 1674960.24353531, 1674960.55414691, 1674949.71204854, 1674933.36709615, 1674930.21998213, 1674931.35245046, 1674939.98595944, 1674947.81605413, 1674962.80423691, 1674975.10209714, 1674986.76363764, 1674992.7291005, 1675006.35696665, 1675030.84924739, 1675076.66066902, 1675105.19873728, 1675171.1847991, 1675182.34414965, 1675184.55180786, 1675180.69852685, 1675180.62879185, 1675180.16780358, 1675175.79596333, 1675164.20316915, 1675161.65766518, 1675166.72888567, 1675171.59983434, 1675179.01686976, 1675186.37663525, 1675210.65754497, 1675220.00451074, 1675222.83849603, 1675227.93347926, 1675253.03797705, 1675280.30062699, 1675295.15408708, 1675301.36325649, 1675290.16273364, 1675281.52431219, 1675266.98789201, 1675250.48817872, 1675222.54866973, 1675186.12977936, 1675150.74396086, 1675142.23611536, 1675143.5181321, 1675146.97297258, 1675158.14478497, 1675181.0272309, 1675188.86882843, 1675192.01184929, 1675188.06022662, 1675160.7034411, 1675159.57771454, 1675178.68922947, 1675200.35766729, 1675216.62480901, 1675224.85871336, 1675223.34166524, 1675216.82510325, 1675208.79093179, 1675207.85589707, 1675202.16265582, 1675170.93167664, 1675134.83490046, 1675125.87930907, 1675108.43914826, 1675082.03897159, 1675064.4617181, 1675046.85182404, 1675029.54917281, 1675015.96001982, 1675013.22774705, 1675008.14184628, 1674996.08347788, 1674984.78495377, 1674981.9395889, 1674978.72267087, 1674977.33570661, 1674972.83250425, 1674970.9737952, 1674970.68068521, 1674993.27726595, 1675003.88800891, 1675023.93038005, 1675055.59427823, 1675099.36352023, 1675109.3307905, 1675115.24431742, 1675138.95732909, 1675167.35479313, 1675183.12242153, 1675191.48027233, 1675191.59206306, 1675166.56734242, 1675156.0858313, 1675143.07372493, 1675124.75017713, 1675109.78955341, 1675102.38335924, 1675073.64270923, 1675073.30929222, 1675064.59383994, 1675067.94628826, 1675053.81468921, 1675047.37696958, 1675055.76136862, 1675064.39214453, 1675073.69364047, 1675081.33334574, 1675095.31357881, 1675131.46629505, 1675163.43281033, 1675191.5837801, 1675212.33064918, 1675233.13255948, 1675271.93888448, 1675312.15684911, 1675315.71805529, 1675316.21163437, 1675299.4365838, 1675299.12682562, 1675325.42042033, 1675333.24517752, 1675349.0891181, 1675365.54605539, 1675418.65334969, 1675441.90775214, 1675490.24617726, 1675503.33936032, 1675519.67259938, 1675535.48028858, 1675551.58256372, 1675571.171336, 1675581.7595515, 1675619.60656979, 1675663.15239969, 1675681.84668553, 1675720.49798628, 1675745.60065016, 1675772.6495976, 1675787.18584016, 1675799.9266063, 1675815.92839698, 1675838.19241235, 1675900.60506048, 1675918.00887677, 1675939.16902434, 1675962.53299367, 1675970.62998579, 1675977.19118408, 1675986.5986879, 1675999.4087473, 1676006.82936813, 1676004.50509397, 1676007.96038454, 1676030.52907552, 1676056.93636053, 1676068.07262533, 1676074.81560936, 1676087.02759217, 1676121.885411, 1676147.36386797, 1676167.99214371, 1676175.15470619, 1676191.35531171, 1676207.27472685, 1676258.26047493, 1676264.3072031, 1676298.96389967, 1676315.43457909, 1676319.70980356, 1676320.84130003, 1676323.04817893, 1676330.31615118, 1676333.12028099, 1676335.11293803, 1676337.06995449, 1676337.83402897, 1676342.5303426, 1676381.90999647, 1676420.56129994, 1676480.47347826, 1676569.27654378, 1676608.41815757, 1676645.17293218, 1676697.83764988, 1676719.22605619, 1676760.34789456, 1676807.16241382, 1676942.04593984, 1677095.4175025, 1677111.93211243, 1677134.44812474, 1677161.86049824, 1677209.06482932, 1677246.63761706, 1677388.78385253, 1677465.70379733, 1677598.9756217, 1677649.88754162, 1677659.58384943, 1677689.04126433, 1677820.29906884, 1677917.56097495, 1677972.06672414, 1678016.75447476, 1678070.25543687, 1678106.14066091, 1678153.6529643, 1678186.98301246, 1678374.33959766, 1678390.59665777, 1678516.79491712, 1678724.65530764, 1678722.92443322, 1678706.57712306, 1678694.16903397, 1678687.18023886, 1678678.21923475, 1678671.91469016, 1678664.98575631, 1678647.74661906, 1678625.39154679, 1678600.22814665, 1678595.15676277, 1678571.96802305, 1678563.75512588, 1678523.86169522, 1678480.11475505, 1678458.63728343, 1678433.26669073, 1678423.26555746, 1678418.11333781, 1678430.13111715), .Dim = c(397L, 2L)))), class = c("XY", "MULTIPOLYGON", "sfg")), structure(list(list(structure(c(5303088.10705888, 5303034.81350168, 5302961.68572788, 5302921.93340975, 5302887.42169134, 5302866.2793255, 5302814.29222157, 5302785.80521032, 5302773.50801425, 5302785.95142789, 5302771.59499131, 5302760.47852838, 5302697.21714599, 5302721.82136656, 5302676.54984584, 5302653.958583, 5302631.2651774, 5302607.8694746, 5302563.51953459, 5302479.92818307, 5302462.04384806, 5302459.08520026, 5302442.00309258, 5302411.69563025, 5302378.6645155, 5302329.62706202, 5302315.19858825, 5302302.64665237, 5302287.92759943, 5302279.65446193, 5302269.76048139, 5302266.65018454, 5302254.6665389, 5302253.52755704, 5302253.02002214, 5302247.43080447, 5302232.38984568, 5302209.79377055, 5302197.59467231, 5301531.79993015, 5301282.06523104, 5300878.92328042, 5301194.41528127, 5301290.05325063, 5301330.34007182, 5301359.85480979, 5301395.29401876, 5301455.78742497, 5301463.91470039, 5301515.0354034, 5301517.71720763, 5301514.30800519, 5301508.41844467, 5301487.30943357, 5300712.13180491, 5299961.6336073, 5300033.20110238, 5300099.73973863, 5300123.03424235, 5300283.84024555, 5300309.76143754, 5300311.84354903, 5300314.10008672, 5301149.80212398, 5301702.17096874, 5301961.27786775, 5302725.00478854, 5302615.63105519, 5302605.25107425, 5302603.19335085, 5302603.40991907, 5302607.82306379, 5302617.65103562, 5302625.84837015, 5302664.95183344, 5302676.17392058, 5302691.95267996, 5302714.54698656, 5302730.81344238, 5302737.04246372, 5302772.96477943, 5302848.88877619, 5302906.93914177, 5302923.99740084, 5302930.89524397, 5302934.49304422, 5302931.95291472, 5302920.51445691, 5302897.23910225, 5302893.01423331, 5302922.52277359, 5302970.29178271, 5302980.9559662, 5302996.53676321, 5303014.26426146, 5303036.93348162, 5303021.5716802, 5303015.88803821, 5303015.94401408, 5303043.29591935, 5303088.10705888, 1678061.90639503, 1677756.58476513, 1677633.37367323, 1677444.87362547, 1677260.49972891, 1677160.91690741, 1676902.40896617, 1676740.18020582, 1676679.78587711, 1676651.95741564, 1676612.98597655, 1676582.84037579, 1676411.76827014, 1676405.74211184, 1676282.27382152, 1676218.10256202, 1676139.61045642, 1676062.27748975, 1675846.24651, 1675438.20978446, 1675350.37973533, 1675335.84980276, 1675256.21282267, 1675088.58666177, 1674926.3701749, 1674705.75211856, 1674618.23265806, 1674565.45239855, 1674568.67544213, 1674570.58595256, 1674527.31525687, 1674511.68650042, 1674452.12737758, 1674445.47048442, 1674417.45386878, 1674418.36613405, 1674421.42895066, 1674426.03032921, 1674428.51455718, 1674564.9410619, 1674616.86055625, 1674698.16000042, 1676251.05866328, 1676722.80930704, 1676920.69231607, 1677066.112763, 1677238.10496076, 1677524.8040168, 1677568.54379196, 1677819.5464252, 1677837.29376047, 1677847.81379514, 1677854.661392, 1677862.58045742, 1678020.53219433, 1678173.92218196, 1678532.66313677, 1679004.1184036, 1679113.53381458, 1679918.174903, 1680047.15180104, 1680057.341729, 1680068.73823615, 1680031.99041161, 1680017.96009989, 1680022.35743636, 1679975.39923174, 1679835.31461498, 1679775.89032442, 1679750.22585139, 1679727.93705294, 1679702.53466885, 1679674.33504401, 1679661.48573184, 1679599.31700317, 1679575.12433948, 1679538.25984915, 1679480.69789899, 1679430.29711531, 1679413.44539103, 1679302.01689884, 1679082.50812266, 1678913.27670359, 1678860.0056667, 1678827.66136479, 1678806.37761312, 1678778.3268713, 1678729.95663563, 1678607.89053235, 1678585.37699143, 1678578.35064994, 1678569.97686544, 1678567.80503492, 1678564.63195234, 1678561.02175652, 1678556.1794551, 1678430.8075471, 1678339.14644916, 1678288.7735902, 1678200.66076846, 1678061.90639503), .Dim = c(101L, 2L)))), class = c("XY", "MULTIPOLYGON", "sfg")), structure(list(list(structure(c(5301539.53698508, 5301550.90267488, 5301684.28095332, 5301686.36532665, 5301703.72793772, 5301767.22439886, 5301784.85316248, 5301862.20185307, 5302099.41056916, 5302731.191327, 5303376.30693484, 5303452.77274554, 5303468.41959378, 5303500.97056074, 5304480.6488637, 5304535.08772015, 5304639.93590518, 5304757.18241663, 5304922.13102054, 5304924.66918589, 5304926.31034594, 5304929.19574798, 5304936.062457, 5304943.65577966, 5304952.45958214, 5304962.86946635, 5304980.39332773, 5304995.09343405, 5305006.95063586, 5305020.5654143, 5305040.95744735, 5305073.18304718, 5305096.95317523, 5305116.83163829, 5305134.95838912, 5305152.7512448, 5305170.43965367, 5305188.02657144, 5305205.39288526, 5305222.19593159, 5305238.57102866, 5305254.45201079, 5305269.76682005, 5305284.51546655, 5305298.55971041, 5305311.83043482, 5305324.18939646, 5305336.88380968, 5305357.05455564, 5305370.03320593, 5305386.4346625, 5305389.79549922, 5305419.05471203, 5305460.68700451, 5305510.00004645, 5305535.08736983, 5305585.42046486, 5305612.43145672, 5305758.11784909, 5305871.34339188, 5306050.84209085, 5306114.23118181, 5306154.08494141, 5306161.48918899, 5306165.74561469, 5306168.80839731, 5306181.12803914, 5306187.50753021, 5306193.92128779, 5306199.37085799, 5306206.08567276, 5306253.84894156, 5306275.82094991, 5306282.01384352, 5306289.37915646, 5306292.96116398, 5306336.97638294, 5306415.202418, 5306442.48981033, 5306448.71291325, 5306491.85980936, 5306479.08947873, 5306432.93260688, 5306433.28502676, 5306419.86190979, 5306409.31372306, 5306408.19405405, 5306409.46002341, 5306416.27462667, 5306455.06536761, 5306438.18178532, 5306476.17892812, 5306489.12269292, 5306630.32360827, 5306857.14144846, 5306888.61948008, 5307156.6917417, 5308043.29131907, 5307900.12159158, 5306491.85980936, 5306448.71291325, 5306442.48981033, 5306415.202418, 5306336.97638294, 5306261.0409186, 5306170.6904644, 5306161.53403289, 5306134.75324817, 5305659.0726907, 5305438.70104347, 5305385.42042901, 5304649.15294485, 5304603.31619287, 5304580.28235237, 5304177.84575214, 5303941.71399835, 5303926.96035945, 5303793.4050644, 5303806.06535403, 5303769.09722665, 5303714.73317942, 5303683.97391793, 5303610.19156592, 5303455.00266521, 5303383.54436708, 5303170.31662308, 5303024.97156681, 5303008.76564428, 5303048.90488679, 5303025.82401457, 5303004.80258904, 5302966.90444534, 5302983.71723835, 5302963.92581344, 5302897.75194831, 5302882.76781702, 5302796.69950482, 5302684.62739195, 5302596.366411, 5302584.39817418, 5302130.8079535, 5301989.81013455, 5301880.58756753, 5301863.35482229, 5301772.50701529, 5301756.36979445, 5301710.89296605, 5301717.06428489, 5301715.27827829, 5301699.70565144, 5301638.38580281, 5301556.8743251, 5301546.0986696, 5301193.21015462, 5301032.84088985, 5301004.63743598, 5300908.44935218, 5300919.24949151, 5300920.18480082, 5300907.02868966, 5300940.20227688, 5300981.3346972, 5300978.6531365, 5300992.77600219, 5301035.21747747, 5301039.9083406, 5301050.62757952, 5301083.17783538, 5301149.93895365, 5301152.18284679, 5301168.67531902, 5301203.08375986, 5301224.35189541, 5301226.28692316, 5301228.47255909, 5301245.96612574, 5301262.75784538, 5301303.73990086, 5301306.48514329, 5301308.56918719, 5301323.88719662, 5301364.95692907, 5301369.48356225, 5301388.13765709, 5301412.32812015, 5301422.9940449, 5301427.04953259, 5301427.63723751, 5301430.20351909, 5301460.70285439, 5301464.65070311, 5301467.94608441, 5301530.75453785, 5301539.53698508, 1686088.2739433, 1686140.37332152, 1686814.27189892, 1686824.12041647, 1686888.65475842, 1687178.26574846, 1687258.55154715, 1687643.44130981, 1687604.68858758, 1687475.00178877, 1687342.57676738, 1687331.72215357, 1687325.14411531, 1687318.50546825, 1687119.61147425, 1687143.743355, 1687089.53672245, 1687019.14872413, 1686443.02409167, 1686436.75008252, 1686433.14222388, 1686429.2810678, 1686425.17386026, 1686422.16051531, 1686420.14253488, 1686418.58784132, 1686416.26234427, 1686415.97926332, 1686417.29091404, 1686420.16391929, 1686426.62449108, 1686437.11105065, 1686443.90022803, 1686448.5465358, 1686450.9530479, 1686452.07294193, 1686451.97240642, 1686450.31218211, 1686447.56805898, 1686443.47111343, 1686438.3324629, 1686431.82691088, 1686424.30777673, 1686415.77505398, 1686406.25686879, 1686395.76727963, 1686384.33441026, 1686371.36581058, 1686347.73224666, 1686331.20647792, 1686309.92044422, 1686306.97891152, 1686283.07694445, 1686230.4684924, 1686170.31513326, 1686139.69955851, 1686078.88830405, 1686046.7531825, 1685870.71138807, 1685730.06176006, 1685510.58375256, 1685432.11319311, 1685374.56968629, 1685362.11508021, 1685354.36407975, 1685348.8875908, 1685324.48430336, 1685310.88343057, 1685296.03388817, 1685283.52510329, 1685265.90519675, 1685214.31871002, 1685186.03525927, 1685177.89090706, 1685169.84697086, 1685165.50681164, 1685098.65375769, 1685085.35567786, 1685080.03738242, 1685078.77304069, 1685070.0071802, 1685115.94844103, 1685279.63633425, 1685281.37084495, 1685323.38121608, 1685385.91644907, 1685408.04308466, 1685504.97721532, 1685545.24588407, 1685736.14781916, 1685743.75515143, 1685892.48695546, 1685890.64697044, 1685861.05474629, 1685813.51239415, 1685807.23190731, 1685751.21415093, 1685569.48753224, 1684865.75078532, 1685070.0071802, 1685078.77304069, 1685080.03738242, 1685085.35567786, 1685098.65375769, 1685008.42494656, 1684569.82790735, 1684572.25300448, 1684579.72715782, 1684663.77666833, 1684706.89694596, 1684718.97531731, 1684877.14555265, 1684885.46066061, 1684888.34362864, 1684921.52155991, 1685022.68448468, 1684982.78943057, 1685008.42115535, 1685051.11342006, 1685058.42070243, 1685065.88643034, 1685073.62263036, 1685083.69232614, 1685102.11557984, 1685098.50605808, 1685162.19066118, 1685217.23448856, 1685212.63663509, 1685172.49896622, 1685054.03013613, 1684956.25362074, 1684931.46695196, 1684874.40913766, 1684750.52635756, 1684595.23154874, 1684598.40054166, 1684171.10974753, 1684195.21104453, 1684212.0866537, 1684220.51229248, 1684310.70119184, 1684320.85311382, 1683875.47482941, 1683790.35727207, 1683349.23688796, 1683262.4263516, 1683059.43217206, 1682969.64736441, 1682948.89694399, 1682765.65354205, 1682775.5748091, 1682771.6658849, 1682771.83351357, 1682834.75323901, 1682862.88348492, 1682868.75837246, 1682888.97562203, 1682945.71272627, 1682975.33226816, 1683102.45720309, 1683316.99890078, 1683492.19840913, 1683510.81315848, 1683560.88557459, 1683825.35903007, 1683854.6620894, 1683921.57644473, 1684153.85477889, 1684508.76632303, 1684527.50319893, 1684623.72313529, 1684779.06152949, 1684867.98167155, 1684876.39346301, 1684893.78706981, 1684959.65364843, 1685015.3884816, 1685113.71608803, 1685121.51060572, 1685128.53693575, 1685190.10528626, 1685277.23629367, 1685286.69917796, 1685339.56887579, 1685448.43999886, 1685498.87687508, 1685518.37206656, 1685525.47823587, 1685538.39018056, 1685692.9419497, 1685699.9260477, 1685707.94674047, 1686038.24353409, 1686088.2739433), .Dim = c(194L, 2L)))), class = c("XY", "MULTIPOLYGON", "sfg"))), n_empty = 0L, crs = structure(list( epsg = NA_integer_, proj4string = "+proj=lcc +lat_1=49 +lat_2=77 +lat_0=63.390675 +lon_0=-91.86666666666666 +x_0=6200000 +y_0=3000000 +ellps=GRS80 +units=m +no_defs"), class = "crs"), class = c("sfc_MULTIPOLYGON", "sfc"), precision = 0, bbox = structure(c(xmin = 5298777.17436723, ymin = 1673377.36409231, xmax = 5312954.79870202, ymax = 1687643.44130981 ), class = "bbox"))), row.names = c(NA, -6L), class = c("sf", "data.frame"), sf_column = "geometry", agr = structure(c(FSA = NA_integer_, FSA_NAME = NA_integer_, PR = NA_integer_), class = "factor", .Label = c("constant", "aggregate", "identity")))

Then, "fix" the shape with st_make_valid:

fsa.clean <- fsa.raw %>% 
  st_make_valid()

Now, if I write the shape for the raw data, it works:

st_write(fsa.raw, "data/crap.shp", delete_layer = T)
Deleting layer `crap' using driver `ESRI Shapefile'
Writing layer `crap' to data source `data/crap.shp' using driver `ESRI Shapefile'
Writing 6 features with 3 fields and geometry type Multi Polygon.

But it fails with the clean dataset:

st_write(fsa.clean, "data/crap.shp", delete_layer = T)
Deleting layer `crap' using driver `ESRI Shapefile'
Writing layer `crap' to data source `data/crap.shp' using driver `ESRI Shapefile'
Writing 6 features with 3 fields and geometry type Unknown (any).
Failed to create feature 5 in crap
Error in CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options),  : 
  Feature creation failed.
In addition: Warning message:
In CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options),  :
  GDAL Error 1: Attempt to write non-polygon (MULTIPOLYGON) geometry to POLYGON type shapefile.
edzer commented 4 years ago

Examine fsa.clean, look at the geometry types, and then try

> p = st_collection_extract(fsa.clean, "POLYGON")
> st_write(p, "p.shp")
Writing layer `p' to data source `p.shp' using driver `ESRI Shapefile'
Writing 6 features with 3 fields and geometry type Multi Polygon.
BastienFR commented 4 years ago

Great, thanks it works. And I think I understand why. The st_make_valid function was changing for some reason the type of geometry for the sixth observation. Shapefiles needs to have only one type of geometry so the function st_collection_extract make sure all geometries are the same within the object. Thanks again for the quick answer.