<?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 Polyline never cross the 180 meridian in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646619#M4440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to draw a polyline that cross the 180 meridian, the polyline always go across the earth instead of crossing the 180 meridian as I would expect. I am using the 100.1 version of Android ArcGIS runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example to reproduce the issue and a screenshot&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;public class PolylineAcross180MeridianActivity extends AppCompatActivity&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; private MapView mapView;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp; &amp;nbsp; protected void onCreate(Bundle savedInstanceState) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.onCreate(savedInstanceState);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setContentView(R.layout.activity_polyline_across180_meridian);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapView = findViewById(R.id.map_view);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;mapView.setMap(new ArcGISMap(Basemap.createImagery()));&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final GraphicsOverlay overlay = new GraphicsOverlay();&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;mapView.getGraphicsOverlays().add(overlay);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final Point p1 = new Point(-170, 0.0, SpatialReferences.getWgs84());&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final Point p2 = new Point(170, 0.0, SpatialReferences.getWgs84());&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final Polyline polyline = new Polyline(new PointCollection(Lists.newArrayList(p1, p2)));&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final SimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, getColor(android.R.color.holo_red_dark), 5f);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;overlay.getGraphics().add(new Graphic(polyline, simpleLineSymbol));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/390304_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a way to have the polyline cross the 180 meridian ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 15:14:55 GMT</pubDate>
    <dc:creator>PatrickBolduc</dc:creator>
    <dc:date>2017-12-08T15:14:55Z</dc:date>
    <item>
      <title>Polyline never cross the 180 meridian</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646619#M4440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to draw a polyline that cross the 180 meridian, the polyline always go across the earth instead of crossing the 180 meridian as I would expect. I am using the 100.1 version of Android ArcGIS runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example to reproduce the issue and a screenshot&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;public class PolylineAcross180MeridianActivity extends AppCompatActivity&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; private MapView mapView;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp; &amp;nbsp; protected void onCreate(Bundle savedInstanceState) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.onCreate(savedInstanceState);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setContentView(R.layout.activity_polyline_across180_meridian);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapView = findViewById(R.id.map_view);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;mapView.setMap(new ArcGISMap(Basemap.createImagery()));&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final GraphicsOverlay overlay = new GraphicsOverlay();&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;mapView.getGraphicsOverlays().add(overlay);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final Point p1 = new Point(-170, 0.0, SpatialReferences.getWgs84());&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final Point p2 = new Point(170, 0.0, SpatialReferences.getWgs84());&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final Polyline polyline = new Polyline(new PointCollection(Lists.newArrayList(p1, p2)));&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;final SimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, getColor(android.R.color.holo_red_dark), 5f);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;overlay.getGraphics().add(new Graphic(polyline, simpleLineSymbol));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/390304_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a way to have the polyline cross the 180 meridian ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 15:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646619#M4440</guid>
      <dc:creator>PatrickBolduc</dc:creator>
      <dc:date>2017-12-08T15:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline never cross the 180 meridian</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646620#M4441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than have your second point be at 170, what happens if you set your second point to -190 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646620#M4441</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2017-12-13T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline never cross the 180 meridian</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646621#M4442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a great question Patrick.&amp;nbsp; I am a newbie to ArcGIS Pro, the dev APIs,&amp;nbsp;and ESRI in general...but I am unable to&amp;nbsp;project a line that crosses the meridian by either using&amp;nbsp;configuration settings, such as 'enable wrapping around date line,' or by writing code to split the line into a polyline that attempts to create a pivot point over the meridian.&amp;nbsp; I have&amp;nbsp;this problem with the ArcGIS&amp;nbsp;Pro app, and when using&amp;nbsp;JavaScript APIs.&amp;nbsp; It&amp;nbsp;does not work for either Mercator or spherical projections.&amp;nbsp;&amp;nbsp;My kml / Google Earth solution does this by default.&amp;nbsp; I've studies the esri forums w/o solution...&amp;nbsp; Its a real show stopper.&amp;nbsp; I have ESRI-expert colleagues who have not been able to guide me to a solution yet...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Dec 2017 00:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/polyline-never-cross-the-180-meridian/m-p/646621#M4442</guid>
      <dc:creator>JamieHolloway</dc:creator>
      <dc:date>2017-12-17T00:23:55Z</dc:date>
    </item>
  </channel>
</rss>

