<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Site Selector App draws 1km buffer. Units set to Miles. in Local Government Solutions Users Questions</title>
    <link>https://community.esri.com/t5/local-government-solutions-users-questions/site-selector-app-draws-1km-buffer-units-set-to/m-p/782382#M109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been verified on a local implementation and ESRI demo sites. It has also been documented on GitHub repo.&lt;/P&gt;&lt;P&gt;Request sent to GeometryServer&amp;nbsp;probably needs the geodesic parameter set per &lt;A href="http://resources.arcgis.com/en/help/rest/apiref/" rel="nofollow noopener noreferrer" target="_blank"&gt;API doc&lt;/A&gt;:&amp;nbsp;&lt;BR /&gt;"&lt;A name="params" style="color: #3366ff; background-color: #ffffff; font-size: 12.48px;" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" style="border-width: 1px 1px 0px; border-style: solid; border-color: #bfd9ed; margin-top: 0.1em; margin-bottom: 0.3em;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="" style="background-color: #ffffff; border-width: 0px 0px 1px 1px; border-style: solid; border-color: #bfd9ed; font-size: 12.48px; padding: 4px 6px;" valign="top"&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;geometries&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;are in geographic coordinate system, then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;geodesic&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;needs to be set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;true&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in order to generate a buffer polygon using a geodesic distance.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;bufferSR&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;input parameter will be ignored when&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;geodesic&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;true&lt;/CODE&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A name="params" style="color: #3366ff; background-color: #ffffff; font-size: 12.48px;" target="_blank"&gt;&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Thanks to &lt;A href="https://community.esri.com/migrated-users/3101" target="_blank"&gt;Robert Scheitlin, GISP&lt;/A&gt;&amp;nbsp;for his suggestion here:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/187725-buffer-not-accurate?commentID=655101#comment" title="https://community.esri.com/message/655101-re-buffer-not-accurate?commentID=655101#comment-655156" target="_blank"&gt;https://community.esri.com/message/655101-re-buffer-not-accurate?commentID=655101#comment-655156&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GitHub Post:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/site-selector/issues/218" title="https://github.com/Esri/site-selector/issues/218" rel="nofollow noopener noreferrer" target="_blank"&gt;Allow for decimal values for min/max buffer distance parameters · Issue #218 · Esri/site-selector · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;roughly line 1270 js\library\widgets\siteLocator\siteLocator.js&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;params&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometries &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;featureGeometry&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workflowCount&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 params&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;unit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryService&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;unitValues&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workflowCount&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//Add this:&lt;/SPAN&gt;
 params&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geodesic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3156" target="_blank"&gt;Chris Buscaglia&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:54:04 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2021-12-12T08:54:04Z</dc:date>
    <item>
      <title>Site Selector App draws 1km buffer. Units set to Miles.</title>
      <link>https://community.esri.com/t5/local-government-solutions-users-questions/site-selector-app-draws-1km-buffer-units-set-to/m-p/782382#M109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been verified on a local implementation and ESRI demo sites. It has also been documented on GitHub repo.&lt;/P&gt;&lt;P&gt;Request sent to GeometryServer&amp;nbsp;probably needs the geodesic parameter set per &lt;A href="http://resources.arcgis.com/en/help/rest/apiref/" rel="nofollow noopener noreferrer" target="_blank"&gt;API doc&lt;/A&gt;:&amp;nbsp;&lt;BR /&gt;"&lt;A name="params" style="color: #3366ff; background-color: #ffffff; font-size: 12.48px;" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" style="border-width: 1px 1px 0px; border-style: solid; border-color: #bfd9ed; margin-top: 0.1em; margin-bottom: 0.3em;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="" style="background-color: #ffffff; border-width: 0px 0px 1px 1px; border-style: solid; border-color: #bfd9ed; font-size: 12.48px; padding: 4px 6px;" valign="top"&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;geometries&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;are in geographic coordinate system, then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;geodesic&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;needs to be set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;true&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in order to generate a buffer polygon using a geodesic distance.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;bufferSR&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;input parameter will be ignored when&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;geodesic&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;true&lt;/CODE&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A name="params" style="color: #3366ff; background-color: #ffffff; font-size: 12.48px;" target="_blank"&gt;&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Thanks to &lt;A href="https://community.esri.com/migrated-users/3101" target="_blank"&gt;Robert Scheitlin, GISP&lt;/A&gt;&amp;nbsp;for his suggestion here:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/187725-buffer-not-accurate?commentID=655101#comment" title="https://community.esri.com/message/655101-re-buffer-not-accurate?commentID=655101#comment-655156" target="_blank"&gt;https://community.esri.com/message/655101-re-buffer-not-accurate?commentID=655101#comment-655156&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GitHub Post:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/site-selector/issues/218" title="https://github.com/Esri/site-selector/issues/218" rel="nofollow noopener noreferrer" target="_blank"&gt;Allow for decimal values for min/max buffer distance parameters · Issue #218 · Esri/site-selector · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;roughly line 1270 js\library\widgets\siteLocator\siteLocator.js&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;params&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometries &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;featureGeometry&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workflowCount&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 params&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;unit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryService&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;unitValues&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workflowCount&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//Add this:&lt;/SPAN&gt;
 params&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geodesic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3156" target="_blank"&gt;Chris Buscaglia&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/local-government-solutions-users-questions/site-selector-app-draws-1km-buffer-units-set-to/m-p/782382#M109</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T08:54:04Z</dc:date>
    </item>
  </channel>
</rss>

