<?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 The problem with Aves Island (Venezuela) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/the-problem-with-aves-island-venezuela/m-p/1406849#M12606</link>
    <description>&lt;P&gt;I am extracting the boundaries of all Amateur Radio countries (DXCC) from OSM. There are 340 of them (they are different to political countries). I'm having some very weird behaviour with at least one of them.&lt;/P&gt;&lt;P&gt;I extract the boundary from OSM, and I get this - not too bad for a small island.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aves no Generalize.png" style="width: 291px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100299i9565E4C3D96D026F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aves no Generalize.png" alt="Aves no Generalize.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To save space, I them wish to Generalize. When I do, I get the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aves Generalized.png" style="width: 344px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100300i7EC702D8FA59EE84/image-size/large?v=v2&amp;amp;px=999" role="button" title="aves Generalized.png" alt="aves Generalized.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are two problems with this.&lt;/P&gt;&lt;P&gt;1. I now have a self intersecting polygon. I have done a Simplify operation on it, and it makes no difference. I thought Simplify would correct any errors, but I have no idea what it is supposed to do (convert it to two polygons?)&lt;/P&gt;&lt;P&gt;2. I have Generalized with the code below. I am using WGS84 data, so I understand the maxDeviation parameter has to be in degrees. I hope the formula is correct. It calculates to&amp;nbsp;0.00089932 (degrees) which looks about right.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Const EARTH_RADIUS = 6371000    ' radius of earth in meters
Dim GeneralizeAngle As Double = RadtoDeg(Math.Asin(100 / EARTH_RADIUS))
Dim polyGeneralized As Polygon = poly.Generalize(GeneralizeAngle, False)   ' reduce it in size&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The generalization looks very aggressive. For scale, the island is 500m in length from top to bottom.&lt;/P&gt;&lt;P&gt;Can someone confirm that Generalize can produce invalid polygons, and explain why Simplify does nothing, and what it should do?&lt;/P&gt;</description>
    <pubDate>Sat, 06 Apr 2024 13:51:45 GMT</pubDate>
    <dc:creator>MarcHillman</dc:creator>
    <dc:date>2024-04-06T13:51:45Z</dc:date>
    <item>
      <title>The problem with Aves Island (Venezuela)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/the-problem-with-aves-island-venezuela/m-p/1406849#M12606</link>
      <description>&lt;P&gt;I am extracting the boundaries of all Amateur Radio countries (DXCC) from OSM. There are 340 of them (they are different to political countries). I'm having some very weird behaviour with at least one of them.&lt;/P&gt;&lt;P&gt;I extract the boundary from OSM, and I get this - not too bad for a small island.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aves no Generalize.png" style="width: 291px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100299i9565E4C3D96D026F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aves no Generalize.png" alt="Aves no Generalize.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To save space, I them wish to Generalize. When I do, I get the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aves Generalized.png" style="width: 344px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100300i7EC702D8FA59EE84/image-size/large?v=v2&amp;amp;px=999" role="button" title="aves Generalized.png" alt="aves Generalized.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There are two problems with this.&lt;/P&gt;&lt;P&gt;1. I now have a self intersecting polygon. I have done a Simplify operation on it, and it makes no difference. I thought Simplify would correct any errors, but I have no idea what it is supposed to do (convert it to two polygons?)&lt;/P&gt;&lt;P&gt;2. I have Generalized with the code below. I am using WGS84 data, so I understand the maxDeviation parameter has to be in degrees. I hope the formula is correct. It calculates to&amp;nbsp;0.00089932 (degrees) which looks about right.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Const EARTH_RADIUS = 6371000    ' radius of earth in meters
Dim GeneralizeAngle As Double = RadtoDeg(Math.Asin(100 / EARTH_RADIUS))
Dim polyGeneralized As Polygon = poly.Generalize(GeneralizeAngle, False)   ' reduce it in size&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The generalization looks very aggressive. For scale, the island is 500m in length from top to bottom.&lt;/P&gt;&lt;P&gt;Can someone confirm that Generalize can produce invalid polygons, and explain why Simplify does nothing, and what it should do?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 13:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/the-problem-with-aves-island-venezuela/m-p/1406849#M12606</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2024-04-06T13:51:45Z</dc:date>
    </item>
  </channel>
</rss>

