##Read till last line for complete query
Hi, do you know any ArcGIS python function to check which H3 bins are within the service area polygon and which are on edge i.e. polygon edge passing bins.
I tried below functions but it seems to be having error in output.
inside_bins = gdf_beneficiaries_h3_bins[gdf_beneficiaries_h3_bins['geometry'].within(provider_service_area['SHAPE'])]
edge_bins = gdf_beneficiaries_h3_bins[gdf_beneficiaries_h3_bins['geometry'].intersects(provider_service_area['SHAPE'])]
In ArcGIS Pro map, the H3 bin having geometry [
[-73.97644545621883, 40.78631481972992],
[-73.97735752369157, 40.786164301852594],
[-73.97763862711908, 40.78552696649258],
[-73.9770076816702, 40.78504015577803],
[-73.9760956351657, 40.785190669167655],
[-73.97581451314217, 40.785827997759476],
[-73.97644545621883, 40.78631481972992]
]
is visible within service area polygon having
geometry [[-73.95750965899998, 40.82394743100008], [-73.95661134699998, 40.82349827500008], [-73.95638676999994, 40.82259996400006], [-73.95818339199997, 40.82035418600003], [-73.95795881399994, 40.819680453000046], [-73.95908170299998, 40.81810840800006], [-73.95885712499995, 40.817659253000045], [-73.95818339199997, 40.81855756400006], [-73.95706050299998, 40.81878214200003], [-73.95593761399994, 40.819905031000076], [-73.95481472499995, 40.81900671900007], [-73.95526388099995, 40.81810840800006], [-73.95503930299998, 40.81721009700004], [-73.95324268099995, 40.81878214200003], [-73.95099690299998, 40.81878214200003], [-73.95054774699997, 40.81788383000003], [-73.95189521399993, 40.815638052000054], [-73.95009859099997, 40.81496431900007], [-73.94964943599996, 40.816087208000056], [-73.94852654699997, 40.81676094100004], [-73.94762823599996, 40.81586263000003], [-73.94875112499994, 40.813841430000025], [-73.94852654699997, 40.81294311900007], [-73.94717907999996, 40.81294311900007], [-73.94628076899994, 40.814066008000054], [-73.94515787999995, 40.814066008000054], [-73.94425956899994, 40.81316769700004], [-73.94403499099997, 40.81182023000008], [-73.94470872399995, 40.810921919000066], [-73.94403499099997, 40.810697341000036], [-73.94381041299994, 40.81002360800005], [-73.94448414699997, 40.80912529600005], [-73.94268752399995, 40.80687951900006], [-73.94358583499996, 40.80598120700006], [-73.94538245799998, 40.80643036300006], [-73.94425956899994, 40.805307474000074], [-73.94470872399995, 40.80418458500003], [-73.94336125799998, 40.80373542900003], [-73.94111547999995, 40.80643036300006], [-73.94021716899994, 40.80598120700006], [-73.94021716899994, 40.805532052000046], [-73.93931885699999, 40.80620578500003], [-73.93864512399995, 40.80598120700006], [-73.93797139099996, 40.80463374100003], [-73.93707307899996, 40.80418458500003], [-73.93707307899996, 40.80306169600004], [-73.93774681299993, 40.80283711800007], [-73.93842054599997, 40.80171422900003], [-73.93797139099996, 40.80104049600004], [-73.93842054599997, 40.80036676200007], [-73.93797139099996, 40.79924387400007], [-73.94021716899994, 40.79587520700005], [-73.93886970199998, 40.79497689500005], [-73.93886970199998, 40.79385400600006], [-73.93954343499996, 40.79340485100005], [-73.94089090199998, 40.79385400600006], [-73.94134005699993, 40.792955695000046], [-73.94246294599998, 40.792955695000046], [-73.94560703599996, 40.78913787300007], [-73.94695450199998, 40.78981160600006], [-73.94762823599996, 40.78868871700007], [-73.94852654699997, 40.78846413900004], [-73.94964943599996, 40.789362451000045], [-73.94942485799999, 40.78891329500004], [-73.95077232499995, 40.78689209500004], [-73.94987401399999, 40.785769206000055], [-73.95099690299998, 40.78487089500004], [-73.95077232499995, 40.78442173900004], [-73.95122147999996, 40.78374800600005], [-73.95211979199996, 40.78352342800008], [-73.95324268099995, 40.783972584000026], [-73.95369183599996, 40.78307427200008], [-73.95481472499995, 40.78240053900004], [-73.95548845799993, 40.782625117000066], [-73.95571303599996, 40.78329885000005], [-73.95683592499995, 40.78240053900004], [-73.95840796999994, 40.78284969500004], [-73.95975543699996, 40.78127765000005], [-73.96065374799997, 40.78172680600005], [-73.96087832599994, 40.782625117000066], [-73.95706050299998, 40.78756582800003], [-73.95728508099995, 40.78846413900004], [-73.95998001399994, 40.78913787300007], [-73.96267494799997, 40.79070991700007], [-73.96447156999994, 40.79048534000003], [-73.96761565899999, 40.785769206000055], [-73.96289952599994, 40.78374800600005], [-73.96245036999994, 40.78240053900004], [-73.96177663699996, 40.782175961000064], [-73.96042916999994, 40.780379339000035], [-73.96132748099996, 40.77925645000005], [-73.96222579199997, 40.77948102800008], [-73.96334868099996, 40.780603917000064], [-73.96469614799997, 40.782625117000066], [-73.96671734799997, 40.78307427200008], [-73.96806481499993, 40.783972584000026], [-73.96941228199995, 40.78374800600005], [-73.97053517099994, 40.782175961000064], [-73.97031059299997, 40.78150222800008], [-73.97075974799998, 40.780603917000064], [-73.97143348199995, 40.78015476100006], [-73.97278094899997, 40.780603917000064], [-73.97323010399998, 40.78127765000005], [-73.97300552599995, 40.78172680600005], [-73.97412841499994, 40.782175961000064], [-73.97480214899997, 40.78172680600005], [-73.97547588199996, 40.781951383000035], [-73.97592503799996, 40.78307427200008], [-73.97525130399998, 40.784197161000066], [-73.97704792699994, 40.78509547300007], [-73.97839539299997, 40.78464631700007], [-73.97929370499998, 40.78352342800008], [-73.98019201599999, 40.78374800600005], [-73.98064117099995, 40.78442173900004], [-73.98019201599999, 40.785544628000025], [-73.98064117099995, 40.78666751700007], [-73.97951828199996, 40.78801498400003], [-73.97951828199996, 40.78891329500004], [-73.98086574899997, 40.787341250000054], [-73.98198863799996, 40.78801498400003], [-73.98311152699995, 40.78487089500004], [-73.98400983799996, 40.784197161000066], [-73.98580646099998, 40.78127765000005], [-73.98737850499998, 40.77993018300003], [-73.98805223899996, 40.78015476100006], [-73.98850139399997, 40.78127765000005], [-73.98558188299995, 40.78487089500004], [-73.98580646099998, 40.78599378400003], [-73.98400983799996, 40.78756582800003], [-73.98378526099998, 40.78891329500004], [-73.98221321599993, 40.79183280600006], [-73.97951828199996, 40.794752318000064], [-73.97906912699995, 40.79587520700005], [-73.97704792699994, 40.79699809600004], [-73.97659877099994, 40.79946845100005], [-73.97547588199996, 40.80014218500003], [-73.97367925999998, 40.803510852000045], [-73.96941228199995, 40.808676141000035], [-73.96739108199995, 40.812269386000025], [-73.96536988099996, 40.81451516300007], [-73.96447156999994, 40.81653636400006], [-73.96042916999994, 40.82035418600003], [-73.95863254799997, 40.823049120000064], [-73.95750965899998, 40.82372285300005], [-73.95750965899998, 40.82394743100008]].
but function giving it on edge.
Tried some more functions but all giving outside.