I wonder if anyone has any idea how to merge two polygons geojson in node.js; already tried the turf but I did not get much success. I even think it is the best tool for the proposed one, but maybe the lack of intimacy with geographic data will disfavor me. Any help is welcome.
Here are examples of two geojsons in which I am attempting to merge, thus generating a new geojson containing the polygon that delimits the marginal to these two.
[
'{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-48.621095,-22.501915,0],[-48.618984000000005,-22.504077,0],[-48.60646299999999,-22.509689,0],[-48.60104400000001,-22.510174,0],[-48.591422,-22.508664999999997,0],[-48.579066,-22.503051999999997,0],[-48.563582000000004,-22.499681,0],[-48.55836,-22.500005000000005,0],[-48.54816700000001,-22.504913000000002,0],[-48.53121699999999,-22.525324000000005,0],[-48.52775,-22.527761000000005,0],[-48.522506,-22.529325000000004,0],[-48.514631,-22.529292999999996,0],[-48.504157,-22.525875,0],[-48.499407,-22.527694,0],[-48.490331,-22.546076000000003,0],[-48.49010499999999,-22.546254,0],[-48.487336,-22.546811,0],[-48.460751,-22.540252,0],[-48.451912,-22.539422000000002,0],[-48.448069,-22.523088,0],[-48.45073,-22.518829999999998,0],[-48.457124,-22.515169000000004,0],[-48.460331,-22.510788,0],[-48.458713,-22.497932,0],[-48.46226,-22.483885,0],[-48.471453,-22.484023,0],[-48.503202,-22.457389999999997,0],[-48.50557899999999,-22.445734,0],[-48.502945,-22.435724000000004,0],[-48.509674,-22.436118,0],[-48.51884400000001,-22.438749,0],[-48.523077,-22.431292000000003,0],[-48.525684,-22.429782,0],[-48.532394,-22.427855,0],[-48.54727400000001,-22.427628000000002,0],[-48.557999,-22.425132,0],[-48.561162,-22.415040999999995,0],[-48.564521,-22.412634999999998,0],[-48.57319700000001,-22.413555000000002,0],[-48.586326,-22.412199,0],[-48.589231,-22.414768000000002,0],[-48.589517,-22.417877999999998,0],[-48.596736,-22.424161,0],[-48.609137,-22.425163,0],[-48.605299,-22.430726,0],[-48.601915,-22.430857000000007,0],[-48.598290999999996,-22.434873999999997,0],[-48.596573,-22.440883,0],[-48.601114,-22.441862,0],[-48.607035999999994,-22.446653000000005,0],[-48.60945000000001,-22.451383999999997,0],[-48.618872,-22.461391,0],[-48.619884000000006,-22.466148000000004,0],[-48.628275,-22.469361,0],[-48.630914999999995,-22.474638,0],[-48.640701,-22.481053000000003,0],[-48.637751,-22.484375999999997,0],[-48.625364,-22.49239,0],[-48.621095,-22.501915,0]]]},"properties":{"name":"Barra Bonita","styleUrl":"#poly-FF0800-1-76-nodesc","styleHash":"-3177685a","styleMapHash":{"normal":"#poly-FF0800-1-76-nodesc-normal","highlight":"#poly-FF0800-1-76-nodesc-highlight"},"stroke":"#FF0800","stroke-opacity":1,"stroke-width":1,"fill":"#FF0800","fill-opacity":0.2980392156862745}}',
'{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-48.384492,-22.580015999999997,0],[-48.37674200000001,-22.573864,0],[-48.36347099999999,-22.569731,0],[-48.360164,-22.564534,0],[-48.360984,-22.545522000000002,0],[-48.359083,-22.538602000000004,0],[-48.360062000000006,-22.530295,0],[-48.36636,-22.518534000000002,0],[-48.367199,-22.514162,0],[-48.361974000000004,-22.501751,0],[-48.36414200000001,-22.494702,0],[-48.371999,-22.489607,0],[-48.38136900000001,-22.478677,0],[-48.384878,-22.468036000000005,0],[-48.390417,-22.462513000000005,0],[-48.394961,-22.451599,0],[-48.399086,-22.436002,0],[-48.39793400000001,-22.429388000000003,0],[-48.393908,-22.422082,0],[-48.399138,-22.417291,0],[-48.40839799999999,-22.384744,0],[-48.413349,-22.380473999999996,0],[-48.42376,-22.379739000000004,0],[-48.433651,-22.37513,0],[-48.43821400000001,-22.370415,0],[-48.442389,-22.369801,0],[-48.4496,-22.364973999999997,0],[-48.454269,-22.363726,0],[-48.458549,-22.358756,0],[-48.46777500000001,-22.352728000000003,0],[-48.472523,-22.351446000000003,0],[-48.476705,-22.352169,0],[-48.480782,-22.356186,0],[-48.479864,-22.36266,0],[-48.476496999999995,-22.363311,0],[-48.474852,-22.365485,0],[-48.476965,-22.367763,0],[-48.481296,-22.368406999999998,0],[-48.485572,-22.373172,0],[-48.488733,-22.383433,0],[-48.488808999999996,-22.391462,0],[-48.493376,-22.395221,0],[-48.502846000000005,-22.395182999999996,0],[-48.50393,-22.398692,0],[-48.50290900000001,-22.402676,0],[-48.515156,-22.410372,0],[-48.515965,-22.421947000000003,0],[-48.512542,-22.426781000000002,0],[-48.512557,-22.432566,0],[-48.509674,-22.436118,0],[-48.502945,-22.435724000000004,0],[-48.50557899999999,-22.445734,0],[-48.503202,-22.457389999999997,0],[-48.471453,-22.484023,0],[-48.46226,-22.483885,0],[-48.458713,-22.497932,0],[-48.460331,-22.510788,0],[-48.457124,-22.515169000000004,0],[-48.45073,-22.518829999999998,0],[-48.448069,-22.523088,0],[-48.451912,-22.539422000000002,0],[-48.443847,-22.539959000000003,0],[-48.414806,-22.55495,0],[-48.405807,-22.5612,0],[-48.384492,-22.580015999999997,0]]]},"properties":{"name":"Mineiros do tietê","styleUrl":"#poly-00FF95-1-76-nodesc","styleHash":"6940c9e2","styleMapHash":{"normal":"#poly-00FF95-1-76-nodesc-normal","highlight":"#poly-00FF95-1-76-nodesc-highlight"},"stroke":"#00FF95","stroke-opacity":1,"stroke-width":1,"fill":"#00FF95","fill-opacity":0.2980392156862745}}'
]
Geojson is a json specification for geographic data support.