diff --git a/packages/turf-buffer/test/in/issue-#801-Ecuador.geojson b/packages/turf-buffer/test/in/issue-#801-Ecuador.geojson new file mode 100644 index 0000000000..aafa4a6186 --- /dev/null +++ b/packages/turf-buffer/test/in/issue-#801-Ecuador.geojson @@ -0,0 +1,51 @@ +{ + "type": "FeatureCollection", + "properties": { + "radius": 1, + "units": "miles" + }, + "features": [ + { + "type": "Feature", + "properties": {}, + "geometry": { + "type": "Point", + "coordinates": [ + -78.50966334342957, + -0.22245649236909099 + ] + } + }, + { + "type": "Feature", + "properties": {}, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -78.5096874833107, + -0.22245917455788858 + ], + [ + -78.50966066122055, + -0.22246453893548376 + ], + [ + -78.5096526145935, + -0.2224484458026982 + ], + [ + -78.50967675447464, + -0.2224403992362927 + ], + [ + -78.5096874833107, + -0.22245917455788858 + ] + ] + ] + } + } + ] +} \ No newline at end of file diff --git a/packages/turf-buffer/test/in/issue-#801.geojson b/packages/turf-buffer/test/in/issue-#801.geojson new file mode 100644 index 0000000000..f7076129e8 --- /dev/null +++ b/packages/turf-buffer/test/in/issue-#801.geojson @@ -0,0 +1,57 @@ +{ + "type": "FeatureCollection", + "properties": { + "radius": 1, + "units": "miles" + }, + "features": [ + { + "type": "Feature", + "properties": { + "stroke": "#555555", + "stroke-width": 2, + "stroke-opacity": 1, + "fill": "#0000ff", + "fill-opacity": 0.5 + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 5.832694172859192, + 50.74689044349633 + ], + [ + 5.832699537277222, + 50.74686838040257 + ], + [ + 5.832734405994415, + 50.746881957692274 + ], + [ + 5.832734405994415, + 50.746898929298894 + ], + [ + 5.832694172859192, + 50.74689044349633 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": {}, + "geometry": { + "type": "Point", + "coordinates": [ + 5.83271563053131, + 50.746887049174894 + ] + } + } + ] +} \ No newline at end of file diff --git a/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson b/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson new file mode 100644 index 0000000000..a2cf42a872 --- /dev/null +++ b/packages/turf-buffer/test/out/issue-#801-Ecuador.geojson @@ -0,0 +1,373 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "stroke": "#F00", + "fill": "#F00", + "marker-color": "#F00", + "fill-opacity": 0.3 + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -78.506726, + -0.222512 + ], + [ + -78.506771, + -0.221937 + ], + [ + -78.506928, + -0.221383 + ], + [ + -78.50719, + -0.22087 + ], + [ + -78.507547, + -0.220418 + ], + [ + -78.507986, + -0.220045 + ], + [ + -78.508489, + -0.219764 + ], + [ + -78.509037, + -0.219586 + ], + [ + -78.509609, + -0.219519 + ], + [ + -78.510183, + -0.219565 + ], + [ + -78.510737, + -0.219722 + ], + [ + -78.51125, + -0.219984 + ], + [ + -78.511701, + -0.220341 + ], + [ + -78.512075, + -0.220779 + ], + [ + -78.512356, + -0.221282 + ], + [ + -78.512533, + -0.22183 + ], + [ + -78.5126, + -0.222401 + ], + [ + -78.512555, + -0.222975 + ], + [ + -78.512398, + -0.223529 + ], + [ + -78.512136, + -0.224042 + ], + [ + -78.511779, + -0.224494 + ], + [ + -78.511341, + -0.224868 + ], + [ + -78.510838, + -0.225149 + ], + [ + -78.510291, + -0.225326 + ], + [ + -78.509719, + -0.225394 + ], + [ + -78.509145, + -0.225348 + ], + [ + -78.50859, + -0.225191 + ], + [ + -78.508077, + -0.22493 + ], + [ + -78.507625, + -0.224573 + ], + [ + -78.507252, + -0.224134 + ], + [ + -78.50697, + -0.223632 + ], + [ + -78.506793, + -0.223084 + ], + [ + -78.506726, + -0.222512 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "stroke": "#F00", + "fill": "#F00", + "marker-color": "#F00", + "fill-opacity": 0.3 + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -78.512238, + -0.221002 + ], + [ + -78.512467, + -0.221508 + ], + [ + -78.512596, + -0.222047 + ], + [ + -78.512621, + -0.222602 + ], + [ + -78.512542, + -0.223151 + ], + [ + -78.512361, + -0.223676 + ], + [ + -78.512084, + -0.224157 + ], + [ + -78.511722, + -0.224578 + ], + [ + -78.511288, + -0.224923 + ], + [ + -78.510796, + -0.22518 + ], + [ + -78.510264, + -0.22534 + ], + [ + -78.510237, + -0.225345 + ], + [ + -78.509693, + -0.225402 + ], + [ + -78.509149, + -0.225357 + ], + [ + -78.508621, + -0.225212 + ], + [ + -78.50813, + -0.224972 + ], + [ + -78.507692, + -0.224645 + ], + [ + -78.507322, + -0.224243 + ], + [ + -78.507033, + -0.223779 + ], + [ + -78.507025, + -0.223763 + ], + [ + -78.506824, + -0.223242 + ], + [ + -78.506725, + -0.222692 + ], + [ + -78.506731, + -0.222134 + ], + [ + -78.506844, + -0.221587 + ], + [ + -78.507057, + -0.221071 + ], + [ + -78.507365, + -0.220605 + ], + [ + -78.507755, + -0.220206 + ], + [ + -78.508213, + -0.219887 + ], + [ + -78.508724, + -0.219661 + ], + [ + -78.508748, + -0.219653 + ], + [ + -78.509309, + -0.219526 + ], + [ + -78.509884, + -0.21951 + ], + [ + -78.510452, + -0.219607 + ], + [ + -78.510989, + -0.219812 + ], + [ + -78.511476, + -0.220119 + ], + [ + -78.511894, + -0.220514 + ], + [ + -78.512227, + -0.220983 + ], + [ + -78.512238, + -0.221002 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "stroke": "#00F", + "fill": "#00F", + "marker-color": "#00F", + "fill-opacity": 0.3 + }, + "geometry": { + "type": "Point", + "coordinates": [ + -78.50966334342957, + -0.22245649236909099 + ] + } + }, + { + "type": "Feature", + "properties": { + "stroke": "#00F", + "fill": "#00F", + "marker-color": "#00F", + "fill-opacity": 0.3 + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -78.5096874833107, + -0.22245917455788858 + ], + [ + -78.50966066122055, + -0.22246453893548376 + ], + [ + -78.5096526145935, + -0.2224484458026982 + ], + [ + -78.50967675447464, + -0.2224403992362927 + ], + [ + -78.5096874833107, + -0.22245917455788858 + ] + ] + ] + } + } + ] +} diff --git a/packages/turf-buffer/test/out/issue-#801.geojson b/packages/turf-buffer/test/out/issue-#801.geojson new file mode 100644 index 0000000000..35cb955236 --- /dev/null +++ b/packages/turf-buffer/test/out/issue-#801.geojson @@ -0,0 +1,373 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "stroke": "#F00", + "stroke-width": 2, + "stroke-opacity": 1, + "fill": "#F00", + "fill-opacity": 0.3, + "marker-color": "#F00" + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 5.826222, + 50.75917 + ], + [ + 5.82249, + 50.75811 + ], + [ + 5.819167, + 50.756602 + ], + [ + 5.816384, + 50.754705 + ], + [ + 5.814254, + 50.752496 + ], + [ + 5.812861, + 50.750063 + ], + [ + 5.81226, + 50.747504 + ], + [ + 5.812476, + 50.74492 + ], + [ + 5.812482, + 50.744898 + ], + [ + 5.813483, + 50.742433 + ], + [ + 5.815226, + 50.740139 + ], + [ + 5.817645, + 50.738105 + ], + [ + 5.820646, + 50.736411 + ], + [ + 5.824113, + 50.73512 + ], + [ + 5.827912, + 50.734284 + ], + [ + 5.831895, + 50.733934 + ], + [ + 5.83591, + 50.734085 + ], + [ + 5.839801, + 50.734729 + ], + [ + 5.843418, + 50.735843 + ], + [ + 5.843453, + 50.735857 + ], + [ + 5.846757, + 50.737458 + ], + [ + 5.849482, + 50.739449 + ], + [ + 5.851514, + 50.741748 + ], + [ + 5.852768, + 50.744259 + ], + [ + 5.853193, + 50.74688 + ], + [ + 5.853193, + 50.746897 + ], + [ + 5.852829, + 50.749332 + ], + [ + 5.851747, + 50.751681 + ], + [ + 5.849986, + 50.753859 + ], + [ + 5.847608, + 50.755788 + ], + [ + 5.844699, + 50.7574 + ], + [ + 5.841363, + 50.758637 + ], + [ + 5.837718, + 50.759454 + ], + [ + 5.833894, + 50.759823 + ], + [ + 5.83003, + 50.75973 + ], + [ + 5.826262, + 50.759179 + ], + [ + 5.826222, + 50.75917 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "stroke": "#F00", + "fill": "#F00", + "marker-color": "#F00", + "fill-opacity": 0.3 + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 5.848912, + 50.754797 + ], + [ + 5.846162, + 50.756644 + ], + [ + 5.842895, + 50.758117 + ], + [ + 5.839236, + 50.759157 + ], + [ + 5.835326, + 50.759726 + ], + [ + 5.831316, + 50.759802 + ], + [ + 5.82736, + 50.75938 + ], + [ + 5.82361, + 50.758479 + ], + [ + 5.82021, + 50.757132 + ], + [ + 5.817292, + 50.755391 + ], + [ + 5.814966, + 50.753324 + ], + [ + 5.813323, + 50.751009 + ], + [ + 5.812425, + 50.748536 + ], + [ + 5.812307, + 50.746 + ], + [ + 5.812973, + 50.743498 + ], + [ + 5.814398, + 50.741126 + ], + [ + 5.816526, + 50.738976 + ], + [ + 5.819276, + 50.737129 + ], + [ + 5.822542, + 50.735658 + ], + [ + 5.826199, + 50.734618 + ], + [ + 5.830105, + 50.734049 + ], + [ + 5.834113, + 50.733973 + ], + [ + 5.838066, + 50.734394 + ], + [ + 5.841815, + 50.735294 + ], + [ + 5.845214, + 50.73664 + ], + [ + 5.848133, + 50.738379 + ], + [ + 5.85046, + 50.740446 + ], + [ + 5.852106, + 50.74276 + ], + [ + 5.853006, + 50.745233 + ], + [ + 5.853127, + 50.74777 + ], + [ + 5.852463, + 50.750273 + ], + [ + 5.85104, + 50.752645 + ], + [ + 5.848912, + 50.754797 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "stroke": "#00F", + "stroke-width": 2, + "stroke-opacity": 1, + "fill": "#00F", + "fill-opacity": 0.3, + "marker-color": "#00F" + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 5.832694172859192, + 50.74689044349633 + ], + [ + 5.832699537277222, + 50.74686838040257 + ], + [ + 5.832734405994415, + 50.746881957692274 + ], + [ + 5.832734405994415, + 50.746898929298894 + ], + [ + 5.832694172859192, + 50.74689044349633 + ] + ] + ] + } + }, + { + "type": "Feature", + "properties": { + "stroke": "#00F", + "fill": "#00F", + "marker-color": "#00F", + "fill-opacity": 0.3 + }, + "geometry": { + "type": "Point", + "coordinates": [ + 5.83271563053131, + 50.746887049174894 + ] + } + } + ] +}