computation for distance zonal stats to AOI (polygon) #154
-
[feedback from usability tester] Question: For distance zonal stats to AOI (polygon), computation is based on distance to centroid or distance to the border/ perimeter? If distance to centroid, there are instances where nearest feature should have been counted as POI within the polygon. Maybe show NA or null instead of zero if POI/ feature is inside the polygon. >=0 may be interpreted as distance from the border. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
[Answer] The computation is based on the distance between the AOIs and data's geometries (i.e. the borders/perimeters for areas). If the data point or area intersects the AOI, the distance computed is The |
Beta Was this translation helpful? Give feedback.
[Answer] The computation is based on the distance between the AOIs and data's geometries (i.e. the borders/perimeters for areas). If the data point or area intersects the AOI, the distance computed is
0.
The
NA
value is reserved for those cases where there are no data points or areas within the distancemax_col
parameter . This behavior is consistent with thesjoin_nearest
method in Geopandas as discussed here.