<?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 Dealing with presentation of shapes crossing antimeridian in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/dealing-with-presentation-of-shapes-crossing/m-p/1474940#M12717</link>
    <description>&lt;P&gt;I have a rectangle drawn around Fiji. It crosses the antimeridian. I have successfully used NormalizeCentralMeridian to split it into 2 separate polygons. When I render it (in KML) I naturally end up with 2 vertical edges along the antimeridian. This is not very aesthetically pleasing. I think it would look nicer with the 2 central vertical lines missing.&lt;/P&gt;&lt;P&gt;I've been thinking about how to achieve this. I wish them to remain polygons so I can fill them. Of note, when you render a polygon to KML, it does not need to be a closed polygon. In my situation I have deliberately closed them as I wish to have a continuous boundary. So why not just not close the polygon? Well, if I don't close I only have a 1 in 4 chance of removing the correct line. It would be easy to convert to a linestring, and just leave the vertical lines out, but then I lose the ability to fill the polygon, and click on it for a popup.&lt;/P&gt;&lt;P&gt;The only approach I can think of is to remove a segment from the polygon, and not close it. Trouble is, the removed segment has to be at either the start or the end of the ring. This means I have to 'rotate' the polygon ring until the segment with the vertical element is either at the start or the end of the ring.&lt;/P&gt;&lt;P&gt;Is this a sensible algorithm, or is there a better way? Anyone done this and got a code snippet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fiji.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104554i9BEB6F9B771EA6F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="fiji.jpg" alt="fiji.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;fiji.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2024 14:51:09 GMT</pubDate>
    <dc:creator>MarcHillman</dc:creator>
    <dc:date>2024-05-18T14:51:09Z</dc:date>
    <item>
      <title>Dealing with presentation of shapes crossing antimeridian</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/dealing-with-presentation-of-shapes-crossing/m-p/1474940#M12717</link>
      <description>&lt;P&gt;I have a rectangle drawn around Fiji. It crosses the antimeridian. I have successfully used NormalizeCentralMeridian to split it into 2 separate polygons. When I render it (in KML) I naturally end up with 2 vertical edges along the antimeridian. This is not very aesthetically pleasing. I think it would look nicer with the 2 central vertical lines missing.&lt;/P&gt;&lt;P&gt;I've been thinking about how to achieve this. I wish them to remain polygons so I can fill them. Of note, when you render a polygon to KML, it does not need to be a closed polygon. In my situation I have deliberately closed them as I wish to have a continuous boundary. So why not just not close the polygon? Well, if I don't close I only have a 1 in 4 chance of removing the correct line. It would be easy to convert to a linestring, and just leave the vertical lines out, but then I lose the ability to fill the polygon, and click on it for a popup.&lt;/P&gt;&lt;P&gt;The only approach I can think of is to remove a segment from the polygon, and not close it. Trouble is, the removed segment has to be at either the start or the end of the ring. This means I have to 'rotate' the polygon ring until the segment with the vertical element is either at the start or the end of the ring.&lt;/P&gt;&lt;P&gt;Is this a sensible algorithm, or is there a better way? Anyone done this and got a code snippet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fiji.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104554i9BEB6F9B771EA6F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="fiji.jpg" alt="fiji.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;fiji.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 14:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/dealing-with-presentation-of-shapes-crossing/m-p/1474940#M12717</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2024-05-18T14:51:09Z</dc:date>
    </item>
  </channel>
</rss>

