Select to view content in your preferred language

Distance in Buffer Calculation - Not Accurate

1729
10
09-03-2021 10:07 AM
Labels (1)
Robswann
Occasional Contributor

 

 

For some reason my buffer distance for a attribute rule is very inaccurate. I have tested this with the code below, and for an example, Features that are within 1 mile of school districts layer are not being counted. Any help would be appreciated.

 

 

var Districts = FeatureSetByName($datastore, "SCHOOL_DIST")
var Buffer1mile = buffer($feature,1,'mile')
var Districts_Within_Search_Radius = INTERSECTS(buffer1mile,DISTRICTS)
VAR NO_OF_SCHOOLS = COUNT(Districts_Within_Search_Radius)

Count(districts_within_search_radius )

0 Kudos
10 Replies
Robswann
Occasional Contributor

I finally got it working by changing all spatial references, It took a while but now I am using geodesic, and its working as it should. Thanks for everyones help

0 Kudos