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

260
0
11-28-2017 10:25 AM
PhilLarkin1
Occasional Contributor III

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 · ... 


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

0 Kudos
0 Replies