AnsweredAssumed Answered

Site Selector App draws 1km buffer. Units set to Miles.

Question asked by PSLarkin_SpokaneCounty on Nov 28, 2017

This has been verified on a local implementation and ESRI demo sites. It has also been documented on GitHub repo.

Request sent to GeometryServer probably needs the geodesic parameter set per API doc
"

If geometries are in geographic coordinate system, then geodesic needs to be set to true in order to generate a buffer polygon using a geodesic distance. bufferSR input parameter will be ignored when geodesic is set to true.

"

 


Thanks to Robert Scheitlin, GISP for his suggestion here: https://community.esri.com/message/655101-re-buffer-not-accurate?commentID=655101#comment-655156 

 

GitHub Post:

Allow for decimal values for min/max buffer distance parameters · Issue #218 · Esri/site-selector · GitHub 


For anyone hoping to overcome this and have geometries in a geographic coordinate system, modify the code below. I have not tested this in production but seems to work in test.

roughly line 1270 js\library\widgets\siteLocator\siteLocator.js

params.geometries = [this.featureGeometry[this.workflowCount]];
params.unit = GeometryService[this.unitValues[this.workflowCount]];
//Add this:
params.geodesic = true;

 

Chris Buscaglia

Outcomes