<?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: union geometry not accurate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95452#M8720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;I just added those lines but I get this error message:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/263962_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function initSelectToolbar(event) {&lt;BR /&gt; console.log("start edits");&lt;BR /&gt; selectionToolbar = new Draw(event.map);&lt;BR /&gt; var selectQuery = new Query();&lt;BR /&gt; var targetGeometry;&lt;BR /&gt; on(selectionToolbar, "DrawEnd", function (geometry) {&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; var geometryService = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fitas46%3A6080%2Farcgis%2Frest%2Fservices%2FUtilities%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;http://itas46:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; selectQuery.geometry = geometry;&lt;BR /&gt; featureLayer.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function (targetGeometry) {&lt;BR /&gt; targetGeometry = graphicsUtils.getGeometries(featureLayer.getSelectedFeatures());&lt;BR /&gt; console.log(targetGeometry);&lt;BR /&gt; var dissolveBoundaries = new DissolveBoundaries({});&lt;BR /&gt; geometryService.union(targetGeometry, function (geometry) {&lt;BR /&gt; featureLayer.clearSelection();&lt;BR /&gt; var symbol = new SimpleFillSymbol("none", new SimpleLineSymbol("solid", new Color([255, 255, 255]), 2), new Color([255, 255, 255, 0.25]));&lt;BR /&gt; var graphic = new Graphic(geometry, symbol);&lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; console.log("unioned features");&lt;BR /&gt; }, function (err) {&lt;BR /&gt; console.log(err);&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2016 15:36:38 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-11-15T15:36:38Z</dc:date>
    <item>
      <title>union geometry not accurate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95450#M8718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am working with geometryservice's union. I noticed while testing it that depending of the scale you are&amp;nbsp;at the "union" does not return high quality graphs. Is there something I need to modify in my union to make it more accurate or should I just use a geoprocessing service?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/261414_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95450#M8718</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-11-11T00:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: union geometry not accurate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95451#M8719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;it looks like the geometry for the FeatureLayer is being generalized. You should use the:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;yourFeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setMaxAllowableOffset&lt;/SPAN&gt;&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;‍‍
yourFeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setAutoGeneralize&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95451#M8719</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T23:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: union geometry not accurate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95452#M8720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;I just added those lines but I get this error message:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/263962_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function initSelectToolbar(event) {&lt;BR /&gt; console.log("start edits");&lt;BR /&gt; selectionToolbar = new Draw(event.map);&lt;BR /&gt; var selectQuery = new Query();&lt;BR /&gt; var targetGeometry;&lt;BR /&gt; on(selectionToolbar, "DrawEnd", function (geometry) {&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; var geometryService = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fitas46%3A6080%2Farcgis%2Frest%2Fservices%2FUtilities%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;http://itas46:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; selectQuery.geometry = geometry;&lt;BR /&gt; featureLayer.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW, function (targetGeometry) {&lt;BR /&gt; targetGeometry = graphicsUtils.getGeometries(featureLayer.getSelectedFeatures());&lt;BR /&gt; console.log(targetGeometry);&lt;BR /&gt; var dissolveBoundaries = new DissolveBoundaries({});&lt;BR /&gt; geometryService.union(targetGeometry, function (geometry) {&lt;BR /&gt; featureLayer.clearSelection();&lt;BR /&gt; var symbol = new SimpleFillSymbol("none", new SimpleLineSymbol("solid", new Color([255, 255, 255]), 2), new Color([255, 255, 255, 0.25]));&lt;BR /&gt; var graphic = new Graphic(geometry, symbol);&lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; console.log("unioned features");&lt;BR /&gt; }, function (err) {&lt;BR /&gt; console.log(err);&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95452#M8720</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-11-15T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: union geometry not accurate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95453#M8721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Comment out the&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;var dissolveBoundaries = new DissolveBoundaries({});&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;as you are not constructing this correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:41:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95453#M8721</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-15T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: union geometry not accurate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95454#M8722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:44:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/union-geometry-not-accurate/m-p/95454#M8722</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-11-15T15:44:06Z</dc:date>
    </item>
  </channel>
</rss>

