Hi,
Is it possible to use addFeatures with MultiPolygon geometry? I'm using JS API 4.10 and I'm trying to change the geometry to Polygon. Is this right way do it or is there another way? Example is appreciated.
Br,
Markus
Solved! Go to Solution.
Hi Markus Åfelt,
Why would multipolygons not be supported by the ArcGIS REST API?
In the example below I will add a multipolygon to a Hosted Feature Layer - with some screen captures to show the result.
Is this helpful to you?
Egge-Jan
-------------------------------------------------------------------------------------------------------------------------------------------------------
{
"attributes" : {
"DESCRIPTION" : "Test case multipolygon"
},
"geometry" :
{
"rings" :
[
[
[155000, 463000],
[156000, 463000],
[156000, 464000],
[155000, 464000],
[155000, 463000]
],
[
[157000, 463000],
[158000, 463000],
[158000, 464000],
[157000, 464000],
[157000, 463000]
]
]
}
}
Hi Markus Åfelt,
Can you please elaborate your question a little more? What are you trying to do? What does your code look like? Does it work, or do you get any error messages?
With some more information from your side, the community might be able to provide examples.
TIA,
Egge-Jan
Hi,
I am trying to use addFeatures functionality from Arcgis rest api. Multipolygon is not supported in Arcgis rest api nor Arcgis JS API so I tried to converted multipolygon to polygon using Arcgis JS API
here is my geometry:
return geom.coordinates.map(c => new Polygon({
rings: c,
spatialReference: { wkid: 3067 },
}));
Arcgis rest api addFeature will receive this kind of request
[{"attributes":{"example":78.7267},"geometry":[{"spatialReference":{"wkid":3067},"rings":[[[574679.425,7202092.787],[574794.358,7202076.863],[574843.167,7202069.869],[574876.487,7202090.896],[574910.799,7202085.747],[575164.385,7202050.636],[575294.996,7202032.568],[575509.807,7202002.822],[575528.746,7201990.488],[575687.094,7201968.255],[575708.413,7201975.09],[575851.112,7201955.619],[576024.742,7201931.503],[576044.047,7201922.232],[576202.623,7201899.972],[576222.949,7201904.297],[576517.42,7201863.518],[576617.829,7201847.344],[576714.165,7201825.039],[576808.544,7201796.49],[576901.429,7201761.914],[576991.568,7201720.448],[577007.381,7201707.462],[577263.109,7201581.157],[577518.836,7201454.853],[577774.565,7201328.547],[577878.774,7201272.812],[577962.785,7201220.762],[578042.586,7201163.263],[578061.104,7201155.162],[578063.723,7201152.615],[578150.849,7201077.011],[578378.244,7200866.382],[578405.9,7200840.865],[578483.015,7200772.747],[578493.939,7200754.438],[578590.69,7200680.882],[578694.108,7200616.343],[578800.831,7200560.548],[578913.203,7200514.011],[578949.869,7200500.002],[578971.714,7200499.603],[579216.305,7200407.236],[579233.579,7200395.289],[579420.386,7200324.847],[579441.096,7200322.933],[579665.645,7200238.464],[579890.194,7200153.996],[580113.897,7200069.881],[580114.754,7200069.558],[580338.836,7199985.277],[580355.72,7199972.643],[580365.479,7199968.7],[580434.567,7199942.689],[580435.35,7199942.395],[580586.159,7199885.619],[580617.325,7199873.884],[580637.57,7199871.43],[580714.436,7199842.803],[580733.288,7199808.596],[580804.049,7199782.412],[580927.654,7199735.656],[581064.01,7199672.748],[581075.912,7199667.256],[581157.766,7199629.492],[581193.239,7199609.878],[581248.867,7199579.531],[581286.632,7199587.075],[581415.07,7199516.416],[581493.438,7199474.386],[581607.797,7199431.025],[581726.714,7199405.534],[581848.412,7199397.648],[581970.338,7199407.644],[582022.882,7199420.98],[582088.599,7199437.207],[582223.996,7199482.844],[582228.86,7199468.911],[582511.86,7199565.399],[582512.167,7199565.503],[582781.782,7199656.656],[582987.088,7199726.431],[583013.223,7199750.068],[583133.896,7199792.204],[583247.293,7199826.416],[583363.049,7199843.47],[583480.58,7199841.154],[583597.097,7199823.042],[583632.399,7199811.011],[583708.882,7199785.484],[583744.445,7199769.778],[583784.558,7199751.489],[583800.633,7199738.521],[583946.234,7199672.644],[583966.187,7199669.105],[584166.929,7199578.45],[584183.979,7199567.495],[584412.512,7199464.125],[584648.005,7199357.606],[584753.971,7199304.938],[584773.518,7199292.356],[584853.585,7199241.695],[584966.64,7199161.237],[584984.564,7199152.286],[585066.274,7199094.128],[585077.945,7199075.961],[585289.633,7198925.468],[585310.59,7198920.196],[585407.858,7198850.667],[585422.474,7198836.713],[585585.378,7198720.731],[585603.526,7198711.763],[585716.481,7198631.515],[585815.404,7198561.236],[585916.147,7198494.249],[586022.759,7198436.604],[586134.24,7198389.037],[586191.111,7198368.284],[586200.424,7198364.229],[586258.301,7198346.705],[586268.492,7198345.014],[586342.89,7198327.604],[586544.048,7198281.825],[586544.167,7198281.798],[586794.311,7198224.87],[586902.382,7198198.227],[587013.467,7198156.227],[587118.155,7198102.776],[587330.396,7197982.061],[587549.936,7197857.191],[587547.98,7197851.103],[587552.32,7197850.328],[587568.115,7197847.072],[587676.929,7197785.528],[587990.982,7197606.335],[588004.885,7197594.113],[588057.065,7197564.792],[588065.749,7197559.865],[588279.636,7197438.514],[588298.593,7197430.966],[588471.93,7197332.242],[588621.029,7197247.504],[588693.281,7197209.669],[588770.736,7197184.534],[588773.817,7197018.47],[588912.313,7197020.832],[588980.8,7197065.614],[589003.99,7197075.543],[589028.569,7197086.107],[589123.688,7197120.78],[589168.956,7197131.453],[589183.315,7197135.289],[589222.069,7197138.923],[589350.397,7197141.355],[589494.7,7197144.469],[589494.656,7197146.29],[589493.596,7197189.34],[589560.362,7197190.7],[589561.835,7197145.774],[589565.153,7197145.895],[589572.15,7197146.036],[589619.263,7197148.54],[589737.699,7197151.097],[589752.768,7197153.482],[589837.363,7197151.165],[589950.336,7197156.99],[589993.432,7197159.454],[589984.372,7197189.986],[590000.165,7197190.279],[590034.119,7197199.296],[590003.052,7197226.205],[589935.04,7197278.296],[589930.28,7197281.943],[589953.954,7197303.593],[589941.1,7197303.938],[589920.887,7197281.231],[589880.23,7197308.053],[589862.043,7197321.808],[589847.409,7197321.47],[589777.44,7197319.856],[589747.98,7197319.12],[589712.494,7197318.452],[589672.551,7197317.867],[589642.932,7197317.372],[589612.479,7197317.046],[589581.654,7197316.176],[589545.973,7197315.631],[589504.775,7197314.952],[589472.934,7197314.337],[589410.377,7197313.228],[589391.235,7197312.912],[589291.814,7197311.217],[589286.511,7197297.027],[589261.343,7197296.499],[589063.891,7197293.547],[589064.735,7197215.534],[589064.814,7197208.08],[588852.948,7197204.185],[588777.179,7197213.812],[588704.91,7197237.2],[588635.583,7197273.449],[588486.775,7197357.963],[588427.267,7197391.615],[588353.583,7197433.419],[588347.825,7197436.992],[588312.989,7197456.316],[588297.344,7197469.647],[588078.147,7197593.958],[588024.276,7197624.496],[588005.501,7197631.888],[587730.394,7197788.065],[587662.755,7197827.198],[587559.263,7197886.226],[587418.202,7197966.559],[587270.601,7198050.615],[587134.899,7198127.929],[587026.653,7198182.545],[586911.667,7198226.191],[586801.032,7198253.99],[586546.37,7198312.103],[586545.674,7198312.262],[586349.624,7198357.001],[586349.448,7198357.041],[586276.547,7198373.675],[586266.823,7198377.562],[586210.885,7198394.326],[586200.468,7198396.809],[586144.607,7198416.691],[586035.845,7198463.3],[585931.22,7198519.716],[585832.426,7198585.449],[585627.579,7198731.276],[585624.914,7198758.938],[585603.952,7198776.571],[585587.998,7198763.07],[585443.323,7198866.046],[585425.249,7198875.083],[585352.089,7198927.251],[585340.542,7198945.485],[585104.235,7199113.648],[585083.788,7199118.351],[585001.901,7199176.754],[584987.608,7199190.738],[584874.492,7199271.027],[584812.004,7199313.201],[584771.217,7199336.489],[584662.691,7199390.227],[584421.273,7199499.421],[584198.396,7199600.229],[584179.105,7199605.81],[583978.753,7199696.158],[583962.88,7199709.064],[583817.356,7199774.782],[583797.069,7199778.787],[583720.93,7199812.813],[583701.536,7199848.476],[583667.711,7199830.789],[583604.613,7199851.853],[583484.196,7199870.823],[583360.974,7199873.323],[583240.357,7199855.796],[583123.909,7199820.428],[582970.145,7199769.261],[582969.828,7199769.155],[582799.657,7199712.528],[582734.765,7199690.453],[582705.574,7199680.497],[582595.943,7199638.579],[582366.353,7199560.541],[582364.845,7199565.05],[582213.924,7199513.377],[582211.407,7199520.593],[582095.129,7199480.191],[582079.326,7199464.941],[582015.611,7199449.985],[581965.215,7199438.155],[581925.147,7199434.799],[581848.413,7199428.371],[581778.44,7199432.92],[581730.372,7199436.046],[581616.107,7199460.254],[581507.005,7199502.035],[581493.164,7199516.887],[581433.345,7199548.919],[581305.405,7199619.994],[581287.138,7199648.97],[581196.745,7199699.579],[580954.027,7199811.205],[580761.337,7199883.918],[580725.104,7199870.636],[580648.14,7199899.493],[580631.166,7199910.939],[580419.195,7199991.495],[580369.198,7200009.989],[580349.06,7200012.383],[580124.688,7200096.819],[580124.595,7200096.854],[579900.316,7200181.255],[579675.944,7200265.689],[579451.573,7200350.126],[579434.697,7200362.037],[579247.305,7200432.979],[579226.755,7200435.216],[578982.019,7200527.586],[578965.99,7200540.631],[578928.633,7200555.214],[578819.388,7200600.787],[578715.856,7200654.493],[578615.391,7200717.288],[578521.05,7200788.673],[578502.151,7200795.828],[578426.358,7200862.984],[578376.081,7200909.475],[578171.37,7201098.945],[578079.942,7201178.281],[578066.954,7201195.146],[577985.041,7201253.94],[577899.396,7201307.665],[577792.06,7201364.741],[577772.142,7201368.633],[577544.878,7201480.899],[577317.615,7201593.164],[577090.351,7201705.429],[577004.137,7201747.681],[576912.893,7201789.256],[576818.633,7201824.893],[576722.727,7201853.821],[576623.641,7201876.714],[576521.11,7201893.271],[576227.309,7201933.909],[576208.299,7201943.197],[576051.431,7201964.826],[576029.493,7201961.325],[575852.992,7201985.647],[575692.835,7202007.673],[575674.379,7202020.248],[575535.746,7202039.637],[575514.328,7202032.748],[575301.348,7202061.967],[575177.228,7202079.354],[574880.986,7202120.163],[574854.082,7202148.988],[574693.432,7202173.131],[574549.179,7202191.132],[574505.416,7202176.294],[574401.984,7202172.866],[574320.263,7202153.469],[574245.326,7202115.621],[574179.149,7202064.637],[574125.52,7202001.373],[574084.629,7201928.339],[574062.081,7201861.711],[574042.731,7201856.692],[574091.275,7201780.143],[574097.269,7201839.864],[574120.752,7201912.695],[574157.774,7201979.005],[574207.463,7202036.371],[574267.062,7202082.243],[574334.685,7202116.193],[574396.919,7202132.25],[574679.425,7202092.787]],[[589795.955,7197287.157],[589796.813,7197228.289],[589899.247,7197224.599],[589907.023,7197259.668],[589866.896,7197292.62],[589795.955,7197287.157]]]}]}]
but I will receive error code:
{ "error": { "code": 400, "message": "Unable to complete operation.", "details": [ ] } }
Something wrong with your request. "geometry" shouldn't be array. See
documentation
https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm
for samples.
Yes, its because of
return geom.coordinates.map(c => new Polygon({
rings: c,
spatialReference: { wkid: 3067 },
}));
but looks like it is impossible? to convert multipolygon to polygon? so AddFeatures would accept it...
And still be valid data.
Hi Markus Åfelt,
Why would multipolygons not be supported by the ArcGIS REST API?
In the example below I will add a multipolygon to a Hosted Feature Layer - with some screen captures to show the result.
Is this helpful to you?
Egge-Jan
-------------------------------------------------------------------------------------------------------------------------------------------------------
{
"attributes" : {
"DESCRIPTION" : "Test case multipolygon"
},
"geometry" :
{
"rings" :
[
[
[155000, 463000],
[156000, 463000],
[156000, 464000],
[155000, 464000],
[155000, 463000]
],
[
[157000, 463000],
[158000, 463000],
[158000, 464000],
[157000, 464000],
[157000, 463000]
]
]
}
}
Thanks for the example, I will check it out.
I just checked from data types documentation and it was missing in here?
Geometry objects—Common Data Types | ArcGIS for Developers
or was I looking from wrong place?
Hmm, still problems... too many arrays inside of each other?
[{"attributes":{"example":32.9089},"geometry":{"rings":[[[[384581.523,6674356.23],[384619.235,6674288.869],[384622.269,6674293.37],[384630.611,6674304.771],[384660.424,6674340.894],[384675.344,6674356.931],[384675.754,6674357.524],[384675.978,6674358.21],[384675.996,6674358.931],[384675.807,6674359.627],[384675.428,6674360.241],[384674.889,6674360.721],[384674.235,6674361.026],[384673.522,6674361.133],[384668.36,6674361.147],[384581.523,6674356.23]]],[[[385238.873,6673600.771],[385241.519,6673602.643],[385245.086,6673605.427],[385248.374,6673608.536],[385251.355,6673611.941],[385254.002,6673615.611],[385256.292,6673619.514],[385258.204,6673623.616],[385259.72,6673627.879],[385260.829,6673632.267],[385265.777,6673658.669],[385266.136,6673660.633],[385266.353,6673662.765],[385266.319,6673664.853],[385266.101,6673666.723],[385265.682,6673668.573],[385265.133,6673670.325],[385264.287,6673672.238],[385263.144,6673674.238],[385262.011,6673675.807],[385258.256,6673679.776],[385254.429,6673683.682],[385249.029,6673688.439],[385232.125,6673701.726],[385211.295,6673718.29],[385190.938,6673734.983],[385188.536,6673736.437],[385186.016,6673737.675],[385183.397,6673738.687],[385180.699,6673739.466],[385177.944,6673740.005],[385175.152,6673740.3],[385172.344,6673740.35],[385169.543,6673740.152],[385120.163,6673732.628],[385142.622,6673585.167],[385142.842,6673583.998],[385143.143,6673582.848],[385143.524,6673581.722],[385143.982,6673580.626],[385144.516,6673579.564],[385145.123,6673578.542],[385145.8,6673577.565],[385146.543,6673576.638],[385148.16,6673574.998],[385149.984,6673573.592],[385151.981,6673572.446],[385154.115,6673571.58],[385156.346,6673571.011],[385158.634,6673570.748],[385160.936,6673570.797],[385163.211,6673571.157],[385178.047,6673574.548],[385181.041,6673575.269],[385184.017,6673576.06],[385186.974,6673576.922],[385189.91,6673577.852],[385192.823,6673578.852],[385195.712,6673579.919],[385198.575,6673581.054],[385201.41,6673582.257],[385222.29,6673591.401],[385224.462,6673592.385],[385226.609,6673593.425],[385228.728,6673594.518],[385230.819,6673595.665],[385232.881,6673596.864],[385234.911,6673598.115],[385236.909,6673599.418],[385238.873,6673600.771]]],[[[385253.336,6673323.529],[385253.196,6673327.167],[385253.434,6673336.74],[385253.842,6673340.781],[385255.05,6673348.492],[385255.264,6673351.522],[385256.187,6673362.267],[385256.601,6673368.111],[385257.101,6673374.043],[385257.351,6673379.168],[385257.874,6673384.463],[385259.047,6673391.402],[385260.214,6673396.193],[385261.019,6673398.759],[385262.212,6673402.763],[385263.278,6673405.498],[385264.37,6673407.891],[385264.773,6673408.996],[385265.016,6673410.272],[385266.822,6673416.451],[385269.345,6673427.827],[385282.433,6673474.621],[385287.092,6673488.308],[385288.761,6673493.057],[385288.995,6673493.979],[385289.616,6673495.305],[385290.366,6673496.351],[385291.351,6673497.301],[385292.302,6673497.938],[385293.145,6673498.364],[385294.362,6673498.897],[385297.62,6673500.349],[385297.98,6673500.526],[385298.251,6673500.735],[385298.517,6673501.019],[385298.704,6673501.325],[385298.834,6673501.651],[385298.903,6673501.966],[385304.621,6673540.956],[385304.757,6673545.254],[385304.665,6673547.924],[385304.407,6673550.096],[385303.478,6673555.761],[385302.608,6673558.505],[385301.505,6673561.006],[385299.789,6673563.674],[385297.889,6673566.165],[385295.527,6673568.474],[385294.062,6673569.593],[385293.527,6673570.189],[385293.082,6673570.845],[385292.703,6673571.599],[385292.491,6673572.423],[385292.408,6673573.383],[385292.782,6673576.722],[385292.799,6673577.99],[385292.744,6673579.256],[385292.615,6673580.517],[385292.414,6673581.768],[385292.141,6673583.006],[385291.797,6673584.226],[385291.384,6673585.424],[385290.902,6673586.593],[385290.14,6673588.478],[385289.51,6673590.41],[385289.014,6673592.381],[385288.656,6673594.382],[385288.436,6673596.403],[385288.355,6673598.433],[385288.415,6673600.465],[385288.615,6673602.484],[385289.025,6673605.509],[385286.869,6673630.262],[385286.818,6673631.453],[385286.873,6673632.646],[385287.033,6673633.83],[385287.297,6673634.994],[385287.663,6673636.132],[385288.127,6673637.232],[385288.688,6673638.287],[385289.339,6673639.288],[385290.359,6673640.845],[385291.243,6673642.486],[385291.984,6673644.195],[385292.579,6673645.962],[385293.022,6673647.772],[385293.309,6673649.613],[385293.44,6673651.472],[385293.414,6673653.335],[385293.392,6673654.768],[385293.493,6673656.209],[385293.716,6673657.636],[385294.06,6673659.039],[385294.521,6673660.408],[385295.097,6673661.733],[385295.784,6673663.004],[385296.575,6673664.212],[385303.906,6673674.421],[385304.853,6673675.894],[385305.643,6673677.457],[385306.269,6673679.093],[385306.722,6673680.785],[385306.999,6673682.514],[385307.097,6673684.262],[385307.014,6673686.012],[385306.751,6673687.741],[385306.374,6673690.399],[385306.324,6673693.084],[385306.601,6673695.756],[385307.203,6673698.374],[385308.119,6673700.9],[385309.336,6673703.295],[385310.835,6673705.523],[385312.596,6673707.552],[385320.255,6673715.362],[385331.245,6673726.568],[385346.056,6673739.583],[385363.211,6673751.288],[385364.818,6673774.684],[385338.618,6673767.687],[385334.419,6673766.292],[385330.416,6673764.405],[385326.667,6673762.054],[385323.226,6673759.272],[385320.142,6673756.099],[385317.459,6673752.58],[385315.215,6673748.766],[385313.442,6673744.711],[385283.115,6673662.212],[385282.728,6673661.102],[385282.377,6673659.98],[385282.065,6673658.847],[385281.789,6673657.705],[385281.552,6673656.554],[385281.353,6673655.396],[385281.193,6673654.232],[385281.071,6673653.056],[385277.106,6673607.715],[385276.855,6673605.453],[385276.496,6673603.208],[385276.032,6673600.983],[385275.463,6673598.783],[385274.791,6673596.611],[385274.016,6673594.474],[385273.141,6673592.377],[385272.168,6673590.323],[385269.877,6673586.272],[385267.204,6673582.463],[385264.176,6673578.93],[385260.819,6673575.707],[385257.166,6673572.825],[385253.251,6673570.31],[385249.111,6673568.185],[385244.785,6673566.472],[385172.82,6673541.941],[385147.49,6673525.019],[385156.59,6673526.531],[385171.382,6673528.99],[385199.48,6673533.72],[385218.993,6673545.453],[385219.181,6673544.405],[385219.337,6673543.35],[385219.461,6673542.291],[385219.552,6673541.229],[385219.612,6673540.165],[385219.638,6673539.099],[385219.632,6673538.033],[385219.594,6673536.968],[385230.975,6673538.884],[385224.425,6673542.886],[385224.35,6673543.555],[385224.264,6673544.22],[385224.167,6673544.883],[385224.059,6673545.545],[385223.939,6673546.205],[385223.809,6673546.862],[385223.668,6673547.518],[385223.515,6673548.17],[385246.974,6673562.276],[385248.639,6673563.309],[385250.274,6673564.388],[385251.878,6673565.513],[385253.451,6673566.682],[385254.99,6673567.894],[385256.494,6673569.149],[385257.963,6673570.446],[385259.395,6673571.784],[385260.772,6673571.854],[385262.152,6673571.861],[385263.53,6673571.804],[385264.904,6673571.683],[385266.271,6673571.5],[385267.628,6673571.254],[385268.972,6673570.946],[385270.301,6673570.577],[385272.235,6673569.842],[385274.049,6673568.848],[385275.708,6673567.613],[385277.183,6673566.163],[385278.443,6673564.523],[385279.466,6673562.725],[385280.232,6673560.804],[385280.726,6673558.793],[385281.415,6673554.172],[385281.878,6673549.519],[385282.113,6673544.848],[385282.121,6673540.172],[385281.901,6673535.501],[385281.454,6673530.846],[385280.781,6673526.219],[385279.883,6673521.629],[385274.811,6673498.69],[385268.995,6673500.155],[385245.124,6673408.179],[385239.054,6673384.729],[385234.167,6673278.794],[385242.727,6673277.842],[385231.81,6673162.447],[385235.404,6673162.107],[385239.859,6673172.054],[385242.908,6673177.235],[385246.074,6673180.924],[385250.571,6673185.311],[385261.113,6673194.415],[385266.27,6673198.308],[385276.707,6673204.807],[385277.619,6673205.662],[385279.295,6673207.513],[385281.675,6673210.489],[385283.484,6673213.828],[385284.805,6673219.853],[385284.989,6673226.892],[385284.59,6673230.783],[385283.867,6673234.876],[385280.739,6673245.338],[385278.904,6673250.394],[385277.567,6673253.107],[385273.812,6673259.012],[385266.057,6673268.853],[385262.519,6673273.293],[385260.262,6673276.671],[385258.45,6673280.097],[385257.021,6673283.945],[385256.069,6673287.612],[385254.84,6673295.815],[385254.164,6673309.036],[385253.336,6673323.529]]],[[[384961.858,6673683.083],[385025.91,6673592.864],[385007.596,6673707.695],[385006.31,6673708.026],[385004.995,6673708.214],[385003.667,6673708.254],[385002.343,6673708.148],[385001.039,6673707.896],[384999.771,6673707.501],[384998.554,6673706.968],[384997.403,6673706.304],[384961.858,6673683.083]]],[[[385091.033,6673895.964],[384996.594,6673881.92],[385019.461,6673737.767],[385113.843,6673752.144],[385102.018,6673826.694],[385147.44,6673833.898],[385178.45,6673791.552],[385183.385,6673773.208],[385182.533,6673759.919],[385185.842,6673759.276],[385189.098,6673758.406],[385192.287,6673757.315],[385195.393,6673756.008],[385198.402,6673754.489],[385201.3,6673752.768],[385204.072,6673750.851],[385206.706,6673748.748],[385261.248,6673710.113],[385263.758,6673708.891],[385266.484,6673708.283],[385269.276,6673708.322],[385271.983,6673709.005],[385274.459,6673710.295],[385276.57,6673712.122],[385278.202,6673714.388],[385279.265,6673716.97],[385281.088,6673725.928],[385281.371,6673730.137],[385281.545,6673731.153],[385281.917,6673732.098],[385282.472,6673732.948],[385283.188,6673733.668],[385284.034,6673734.229],[385284.977,6673734.608],[385285.976,6673734.788],[385286.991,6673734.762],[385291.954,6673734.128],[385292.631,6673734.099],[385293.303,6673734.185],[385293.951,6673734.383],[385294.556,6673734.688],[385295.101,6673735.09],[385295.57,6673735.579],[385295.95,6673736.14],[385296.23,6673736.756],[385300.785,6673749.585],[385301.222,6673750.739],[385301.706,6673751.874],[385302.235,6673752.987],[385302.811,6673754.078],[385303.43,6673755.145],[385304.093,6673756.185],[385304.798,6673757.197],[385305.544,6673758.179],[385312.536,6673766.999],[385313.55,6673768.344],[385314.499,6673769.737],[385315.379,6673771.174],[385316.19,6673772.651],[385316.928,6673774.166],[385317.592,6673775.714],[385318.182,6673777.293],[385318.694,6673778.898],[385318.926,6673779.53],[385319.242,6673780.125],[385319.634,6673780.673],[385320.096,6673781.162],[385320.62,6673781.585],[385321.196,6673781.934],[385321.813,6673782.202],[385322.461,6673782.385],[385332.714,6673784.543],[385341.237,6673787.208],[385353.712,6673789.026],[385358.375,6673788.69],[385359.297,6673788.583],[385360.221,6673788.505],[385361.148,6673788.455],[385362.075,6673788.435],[385363.003,6673788.443],[385363.93,6673788.479],[385364.856,6673788.545],[385365.779,6673788.639],[385404.498,6674351.86],[385358.69,6674572.606],[385331.526,6674663.395],[385288.629,6674650.582],[385248.281,6674639.851],[385208.916,6674628.588],[385135.09,6674602.906],[385020.179,6674559.015],[384986.2,6674544.082],[384980.687,6674541.772],[384975.193,6674539.421],[384969.716,6674537.029],[384964.257,6674534.596],[384958.816,6674532.122],[384953.394,6674529.608],[384947.991,6674527.053],[384942.607,6674524.457],[384943.115,6674520.567],[384943.128,6674516.645],[384942.645,6674512.752],[384941.675,6674508.951],[384940.232,6674505.304],[384938.34,6674501.868],[384936.029,6674498.698],[384933.336,6674495.846],[384993.398,6674211.741],[385000.397,6674211.098],[385007.228,6674209.439],[385013.743,6674206.8],[385019.802,6674203.238],[385025.276,6674198.83],[385030.048,6674193.668],[385034.014,6674187.866],[385037.09,6674181.541],[385120.455,6674172.532],[385121.253,6674172.275],[385122.014,6674171.925],[385122.729,6674171.486],[385123.385,6674170.965],[385123.975,6674170.369],[385124.489,6674169.706],[385124.921,6674168.987],[385125.263,6674168.221],[385139.608,6674102.782],[385140.806,6674097.32],[385149.878,6674041.456],[385157.38,6673995.79],[385158.081,6673990.54],[385158.465,6673985.257],[385158.53,6673979.96],[385158.276,6673974.668],[385157.704,6673969.402],[385156.816,6673964.179],[385155.616,6673959.02],[385154.107,6673953.942],[385149.935,6673943.572],[385144.482,6673933.815],[385137.836,6673924.828],[385130.104,6673916.757],[385121.411,6673909.731],[385111.897,6673903.863],[385101.716,6673899.25],[385091.033,6673895.964]],[[385305.904,6674389.631],[385321.134,6674429.029],[385329.359,6674430.592],[385337.274,6674433.325],[385344.712,6674437.169],[385351.52,6674442.044],[385357.554,6674447.848],[385362.69,6674454.462],[385366.819,6674461.745],[385369.857,6674469.548],[385372.372,6674480.42],[385372.758,6674491.573],[385371.001,6674502.593],[385367.165,6674513.073],[385361.392,6674522.624],[385353.897,6674530.892],[385344.957,6674537.571],[385334.904,6674542.412],[385260.142,6674571.313],[385249.446,6674574.326],[385238.375,6674575.279],[385227.321,6674574.139],[385216.678,6674570.946],[385206.822,6674565.813],[385198.104,6674558.923],[385190.832,6674550.521],[385185.266,6674540.902],[385182.386,6674532.999],[385180.659,6674524.765],[385180.121,6674516.37],[385180.783,6674507.984],[385182.631,6674499.777],[385185.628,6674491.916],[385189.712,6674484.561],[385194.801,6674477.863],[385179.572,6674438.465],[385305.904,6674389.631]]],[[[384975.105,6673731.008],[385007.601,6673735.959],[384985.494,6673875.324],[384927.605,6673801.744],[384934.05,6673792.148],[384975.105,6673731.008]]],[[[384918.089,6674492.245],[384915.422,6674492.378],[384912.797,6674492.867],[384910.26,6674493.701],[384907.857,6674494.865],[384905.631,6674496.34],[384903.621,6674498.097],[384901.863,6674500.107],[384900.388,6674502.334],[384891.498,6674497.256],[384882.672,6674492.065],[384873.914,6674486.762],[384865.225,6674481.347],[384856.605,6674475.821],[384848.058,6674470.185],[384839.582,6674464.44],[384831.182,6674458.587],[384833.243,6674446.82],[384836.112,6674435.223],[384839.775,6674423.852],[384844.214,6674412.76],[384849.408,6674402.002],[384855.332,6674391.628],[384861.958,6674381.688],[384869.255,6674372.228],[384870.286,6674370.892],[384871.33,6674369.567],[384872.387,6674368.251],[384873.457,6674366.946],[384874.54,6674365.651],[384875.635,6674364.367],[384876.743,6674363.094],[384877.863,6674361.832],[384878.697,6674361.032],[384879.536,6674360.237],[384880.381,6674359.448],[384881.231,6674358.664],[384882.086,6674357.886],[384882.946,6674357.114],[384883.812,6674356.348],[384884.682,6674355.587],[384885.527,6674354.941],[384886.375,6674354.302],[384887.227,6674353.668],[384888.083,6674353.039],[384888.943,6674352.415],[384889.807,6674351.797],[384890.674,6674351.184],[384891.546,6674350.576],[384892.947,6674349.884],[384894.354,6674349.205],[384895.767,6674348.538],[384897.186,6674347.884],[384898.611,6674347.243],[384900.042,6674346.615],[384901.478,6674346],[384902.92,6674345.399],[384908.627,6674343.992],[384914.41,6674342.937],[384920.246,6674342.238],[384926.115,6674341.897],[384931.993,6674341.916],[384937.859,6674342.295],[384943.691,6674343.033],[384949.466,6674344.126],[384918.089,6674492.245]]]]}}]
Try to start with a simple example and, once you got it working, extend from there 🙂
What should your geometry look like? Any donuts with holes in it?
In this example there was 6 polygons and at least one of them had holes on it.
But I will try more simple data but I have need add more complex multipolygons... hopefully it is possible.