<?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: Polygons from Draw class not working with Union in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/polygons-from-draw-class-not-working-with-union/m-p/700416#M18012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at this SDK sample: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify&lt;/A&gt;&lt;SPAN&gt;. After Draw completes, you will need to Simplify to make it topologically correct before you can send it to Union. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you can use Editor.Add (which will simplify after draw is complete) and Editor.Union: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave&lt;/A&gt;&lt;SPAN&gt;. This does not require much code from you, just create a button that points to an Editor with Map and GeometryServiceUrl set, you can then bind button command with Add or Union.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 19:28:04 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-03-13T19:28:04Z</dc:date>
    <item>
      <title>Polygons from Draw class not working with Union</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/polygons-from-draw-class-not-working-with-union/m-p/700415#M18011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have stumbled across a strange problem that I cannot explain, and any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use a Geometry Service's union feature to unionize graphics that the user can draw. So far, I am able to get unions working with any combination of the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extents (user draws an extent with the Draw class, but I convert it to a 5 point polygon)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Polygon (from Draw class, but ONLY when the user draws it clockwise)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial Polygons (not sure if that is the correct term, but geometries returned from a query task)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if the user draws a circle with the draw tool, or draws a polygon counter clockwise, the union doesn't work. It will return a valid response, but there will be no ring for the circle or counter-clockwise polygon. So, for example, if I try to union a square and a circle, only a 5 point ring for the square will be in the union response. If I do two squares, or a square with a spatial polygon, all appropriate rings are returned in the union response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My initial impression based on the draw polygon behavior was to do with the orientation of the points (clockwise vs counter-clockwise), but I imagine that the circle polygon returned by the draw tool would have a valid orientation... so I am not sure if this thought process is correct at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing I am doing with the geometries that are returned from the drawtool or query task is creating a graphic and adding it to the map's graphic's layer. So no additional processing is being done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My union code is based off of the sample provided at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/EN/webapi/silverlight/samples/start.htm#Union" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/EN/webapi/silverlight/samples/start.htm#Union&lt;/A&gt;&lt;SPAN&gt; . I haven't changed anything other than the source of the graphics.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a property that needs to be specified in the graphic or geometry before sending it for a union? Is there a utility function somewhere that can correct the orientation of the polygon (if that is in fact the problem)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated. I am absolutely stumped! Thank you in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 17:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/polygons-from-draw-class-not-working-with-union/m-p/700415#M18011</guid>
      <dc:creator>MichaelOberegger</dc:creator>
      <dc:date>2012-03-05T17:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Polygons from Draw class not working with Union</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/polygons-from-draw-class-not-working-with-union/m-p/700416#M18012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at this SDK sample: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify&lt;/A&gt;&lt;SPAN&gt;. After Draw completes, you will need to Simplify to make it topologically correct before you can send it to Union. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you can use Editor.Add (which will simplify after draw is complete) and Editor.Union: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave&lt;/A&gt;&lt;SPAN&gt;. This does not require much code from you, just create a button that points to an Editor with Map and GeometryServiceUrl set, you can then bind button command with Add or Union.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/polygons-from-draw-class-not-working-with-union/m-p/700416#M18012</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-03-13T19:28:04Z</dc:date>
    </item>
  </channel>
</rss>

