import{isPointWithinRadius as n,isPointInPolygon as t}from"geolib";var r=function(t,r,u){return n(t,r,1609.34*u)},u=function(n,r){return!(r.length<3)&&t(n,r)},i=function(n){var t,r,u,i,l=null===(t=n.topHole)||void 0===t||null===(r=t.coordinates)||void 0===r?void 0:r[0],o=null===(u=n.topHole)||void 0===u||null===(i=u.coordinates)||void 0===i?void 0:i[1];return null==l||null==o?null:{latitude:l,longitude:o}},l=function(n,t,u,l){return n.filter((function(n){if(null!=l&&n.id===l)return!1;var o=i(n);return!!o&&r(o,t,u)}))},o=function(n,t,r){if(t.length<3)return[];var l=t.map((function(n){return{latitude:n.latitude,longitude:n.longitude}}));return n.filter((function(n){if(null!=r&&n.id===r)return!1;var t=i(n);return!!t&&u(t,l)}))};export{l as getWellsInCircle,o as getWellsInPolygon,r as isPointInCircle,u as isPointInPolygonArea};
//# sourceMappingURL=selection-geometry.js.map
