<?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 Buffering in 3.9compact - Mixing input Geometry types in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffering-in-3-9compact-mixing-input-geometry/m-p/647601#M60350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you place different geometry types into the BufferParameters.geometries array and try to generate buffers the endpoint will crash with an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{"error":{"code":400,"message":"Unable to complete operation.","details":["Syntax error in JSON geometry representation"]}}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample of the JSON created and passed to the endpoint based on a geometries array of one point and one simple polygon:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{"geometryType":"esriGeometryPoint","geometries":[{"x":-12427133.174075715,"y":4914218.049149509,"spatialReference":{"wkid":102100,"latestWkid":3857}},{"rings":[[[-12427133.533385498,4914218.287572771],[-12427130.686178004,4914216.83072361],[-12427132.68162872,4914212.900465214],[-12427135.178522844,4914214.178059309],[-12427135.528835386,4914214.357313236],[-12427133.533385498,4914218.287572771]],[[-12427131.223425483,4914216.655518652],[-12427133.358863894,4914217.74822116],[-12427134.991457105,4914214.532518585],[-12427132.856019203,4914213.439816782],[-12427131.223425483,4914216.655518652]]],"spatialReference":{"wkid":102100,"latestWkid":3857}}]}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The obvious problem is in the geometryType declaration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this intended behavior?&amp;nbsp; Nothing in the documentation states that you can't mix geometry types in the BufferParameters.geometries array.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 21:14:21 GMT</pubDate>
    <dc:creator>HeathClark</dc:creator>
    <dc:date>2014-06-12T21:14:21Z</dc:date>
    <item>
      <title>Buffering in 3.9compact - Mixing input Geometry types</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffering-in-3-9compact-mixing-input-geometry/m-p/647601#M60350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you place different geometry types into the BufferParameters.geometries array and try to generate buffers the endpoint will crash with an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{"error":{"code":400,"message":"Unable to complete operation.","details":["Syntax error in JSON geometry representation"]}}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample of the JSON created and passed to the endpoint based on a geometries array of one point and one simple polygon:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{"geometryType":"esriGeometryPoint","geometries":[{"x":-12427133.174075715,"y":4914218.049149509,"spatialReference":{"wkid":102100,"latestWkid":3857}},{"rings":[[[-12427133.533385498,4914218.287572771],[-12427130.686178004,4914216.83072361],[-12427132.68162872,4914212.900465214],[-12427135.178522844,4914214.178059309],[-12427135.528835386,4914214.357313236],[-12427133.533385498,4914218.287572771]],[[-12427131.223425483,4914216.655518652],[-12427133.358863894,4914217.74822116],[-12427134.991457105,4914214.532518585],[-12427132.856019203,4914213.439816782],[-12427131.223425483,4914216.655518652]]],"spatialReference":{"wkid":102100,"latestWkid":3857}}]}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The obvious problem is in the geometryType declaration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this intended behavior?&amp;nbsp; Nothing in the documentation states that you can't mix geometry types in the BufferParameters.geometries array.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 21:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/buffering-in-3-9compact-mixing-input-geometry/m-p/647601#M60350</guid>
      <dc:creator>HeathClark</dc:creator>
      <dc:date>2014-06-12T21:14:21Z</dc:date>
    </item>
  </channel>
</rss>

