<?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 Re: query polygon with negative distance, error with geometry service buffer in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705016#M107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is line 6 correct? Should this not be a list with in this case a single element?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 16:18:12 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2017-05-18T16:18:12Z</dc:date>
    <item>
      <title>query polygon with negative distance, error with geometry service buffer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705015#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;In a widget routine I want to perform a spatial query (intersect) with a negative distance buffer: create an effective search geometry that is smaller than the selected input.&lt;/P&gt;&lt;P&gt;Currently I am attempting to create a buffer using a geometry service with a negative distance:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; BP &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;BufferParameters&lt;/SPAN&gt;&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="keyword token"&gt;var&lt;/SPAN&gt; gsvc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;GeometryService&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FGeometry%2FGeometryServer" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 BP&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;bufferSpatialReference &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureSet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialReference&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 BP&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;UNIT_METER&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 BP&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;distances &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 BP&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometries &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureSet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 gsvc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;buffer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;BP&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PBuffer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;//Define a Query: get all features from the target feature layer that intersect the geometry of the input featureset.feature[0]&lt;/SPAN&gt;
 Q &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Query&lt;/SPAN&gt;&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;//Q.geometry = featureSet.features[0].geometry;&lt;/SPAN&gt;
 Q&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; PBuffer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 Q&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;outFields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 Q&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;spatialRelationship &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Query&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SPATIAL_REL_INTERSECTS&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
 Q&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;returnGeometry &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="comment token"&gt;//Q.distance = -5;&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;//Q.units = "meters";&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;/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;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;/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;In the browser console this throws the following error (line 39 is line 7 above):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;TypeError: a.join is not a function
 at Object.toJson (BufferParameters.js:5)
 at Object.buffer (init.js:2274)
 at SelectParcelsAction.js?wab_dv=2.3:39&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;I've previously attempted to simply define a query distance, commented out in the code block, but that did not appear to have an affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong and how to best achieve what I'm trying to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705015#M106</guid>
      <dc:creator>StahlyEngineering</dc:creator>
      <dc:date>2021-12-12T05:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: query polygon with negative distance, error with geometry service buffer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705016#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is line 6 correct? Should this not be a list with in this case a single element?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 16:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705016#M107</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-05-18T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: query polygon with negative distance, error with geometry service buffer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705017#M108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied that from line 10, where that worked correctly&lt;/P&gt;&lt;P&gt;As I understand the widget function passes a featureset with contains an array of features of length 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 16:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705017#M108</guid>
      <dc:creator>StahlyEngineering</dc:creator>
      <dc:date>2017-05-18T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: query polygon with negative distance, error with geometry service buffer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705018#M109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander is correct that should be an array:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;BP&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;geometries &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; [featureSet&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;geometry]&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 16:39:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705018#M109</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-18T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: query polygon with negative distance, error with geometry service buffer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705019#M110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've changed the buffer parameters to lists as needed (geometry and distance).&lt;/P&gt;&lt;P&gt;It appears that the buffer does not return a valid geometry. In:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gsvc.buffer(BP,function(PBuffer){&lt;/P&gt;&lt;P&gt;-code-&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;PBuffer appears to be undefined. There are no errors reported relating to the buffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 17:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705019#M110</guid>
      <dc:creator>StahlyEngineering</dc:creator>
      <dc:date>2017-05-18T17:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: query polygon with negative distance, error with geometry service buffer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705020#M111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;The output of buffer is itself an array of geometry. The correct geometry object is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PBuffer[0]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 17:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/query-polygon-with-negative-distance-error-with/m-p/705020#M111</guid>
      <dc:creator>StahlyEngineering</dc:creator>
      <dc:date>2017-05-18T17:27:09Z</dc:date>
    </item>
  </channel>
</rss>

