<?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 First Point in Polyline has no Z-value in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64718#M470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a polyline of 3D points. So the coordinates have a z-value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But at the end the first point of the created polyline has a z-value of 0.0 and not the specified value. What's wrong in my code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private void createPolyline(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Polyline polyLine = new Polyline();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Point p1 = new Point(1413500.0, 6022400.0, 234.0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Point p2 = new Point(1413600.0, 6022600.0, 243.0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Point p3 = new Point(1413800.0, 6022700.0, 257.0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; polyLine.startPath(p1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; polyLine.lineTo(p2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; polyLine.lineTo(p3);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MultiPath path = (MultiPath)polyLine; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for(int i = 0; i &amp;lt; polyLine.getPointCount(); i++){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Point point = path.getPoint(i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; double x = point.getX();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; double y = point.getY();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; double z = point.getZ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Log.i(TAG, "Point " + i + "=&amp;gt; Coords x: " + x + ",y: " + y + ",z: " + z);&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 12:45:19 GMT</pubDate>
    <dc:creator>RainaldSuchan1</dc:creator>
    <dc:date>2013-04-17T12:45:19Z</dc:date>
    <item>
      <title>First Point in Polyline has no Z-value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64718#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a polyline of 3D points. So the coordinates have a z-value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But at the end the first point of the created polyline has a z-value of 0.0 and not the specified value. What's wrong in my code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private void createPolyline(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Polyline polyLine = new Polyline();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Point p1 = new Point(1413500.0, 6022400.0, 234.0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Point p2 = new Point(1413600.0, 6022600.0, 243.0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Point p3 = new Point(1413800.0, 6022700.0, 257.0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; polyLine.startPath(p1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; polyLine.lineTo(p2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; polyLine.lineTo(p3);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; MultiPath path = (MultiPath)polyLine; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for(int i = 0; i &amp;lt; polyLine.getPointCount(); i++){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Point point = path.getPoint(i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; double x = point.getX();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; double y = point.getY();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; double z = point.getZ();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Log.i(TAG, "Point " + i + "=&amp;gt; Coords x: " + x + ",y: " + y + ",z: " + z);&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 12:45:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64718#M470</guid>
      <dc:creator>RainaldSuchan1</dc:creator>
      <dc:date>2013-04-17T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: First Point in Polyline has no Z-value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64719#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To make that more clear: The first point I add to the polyline has the coordinates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;X: 1413500.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y: 6022400.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Z: 234.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I get this point back from the created polyline it has a z-Value of 0.0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;X: 1413500.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y: 6022400.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Z: 0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that a bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 07:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64719#M471</guid>
      <dc:creator>RainaldSuchan1</dc:creator>
      <dc:date>2013-04-18T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: First Point in Polyline has no Z-value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64720#M472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Probably not a bug. The docs show this;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;startPath (double x, double y)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which suggests its only expecting 2D points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do all of the points have a zero Y value?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 01:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64720#M472</guid>
      <dc:creator>TrevorHart1</dc:creator>
      <dc:date>2013-04-22T01:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: First Point in Polyline has no Z-value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64721#M473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Its only the first point in the polyline which has a zero Z value after creating the polyline. All the others have the correct z value as I set at the beginning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the startPath(Point point) and the Point has a constructor with x, y and z values. So it should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I am using the lineTo(Point point) with 3D points and this works! All the other points except the first one have correct z values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if lineTo(Point point) works correct with 3D Points, why is startPoint(Point point) not working with 3D points? That makes no sense for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 07:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/first-point-in-polyline-has-no-z-value/m-p/64721#M473</guid>
      <dc:creator>RainaldSuchan1</dc:creator>
      <dc:date>2013-04-22T07:44:29Z</dc:date>
    </item>
  </channel>
</rss>

