<?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: GeometryException when drawing a line on the map in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644447#M4424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sebastian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are no any documentation from ESRI developers, where &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/geometry/Segment.html"&gt;Segment&lt;/A&gt;&lt;SPAN&gt; is not a Geometry!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also no any documentation about "witch Geometries types can be used with &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/map/Graphic.html"&gt;Graphic&lt;/A&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So, for graphics you should use Point, Polyline or Polygon.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;you right, but I did not find any documentation about it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 06:49:37 GMT</pubDate>
    <dc:creator>IvanBespalov</dc:creator>
    <dc:date>2012-01-20T06:49:37Z</dc:date>
    <item>
      <title>GeometryException when drawing a line on the map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644442#M4419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to draw a line on a graphic layer added to map with the lines of code below. I get a geometry exception. What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Segment segment = new Line(); &amp;nbsp;&amp;nbsp; segment.setStart(startPoint); &amp;nbsp;&amp;nbsp; segment.setEnd(endPoint); &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Log.d("SEGMENT", "x: " + segment.getStartX() + "y: " + segment.getStartY()); &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Symbol lineSymbol = new SimpleLineSymbol(Color.BLUE, 4); &amp;nbsp;&amp;nbsp; someGraphicsLayer.addGraphic(new Graphic(segment, lineSymbol));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 13:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644442#M4419</guid>
      <dc:creator>_lkerArg_n</dc:creator>
      <dc:date>2012-01-19T13:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryException when drawing a line on the map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644443#M4420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did what I want to by using Polyline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Polyline poly = new Polyline();
poly.startPath(startPoint);
poly.lineTo(endPoint);
&amp;nbsp;&amp;nbsp; 
allyGraphicsLayer.addGraphic(new Graphic(poly, new SimpleLineSymbol(Color.BLUE, 5)));
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still i wonder what did I do wrong in the code in the previous post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644443#M4420</guid>
      <dc:creator>_lkerArg_n</dc:creator>
      <dc:date>2021-12-12T03:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryException when drawing a line on the map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644444#M4421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen the exact same error, and would also like to know what is wrong with the above code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644444#M4421</guid>
      <dc:creator>BradFrecker</dc:creator>
      <dc:date>2012-01-19T16:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryException when drawing a line on the map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644445#M4422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mggl,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately I can not compile your code now, but try to use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/geometry/Polyline.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Polyline&lt;/A&gt;&lt;SPAN&gt; when creating a Graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;try
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; Segment segment = new Line();
&amp;nbsp;&amp;nbsp;&amp;nbsp; segment.setStart(startPoint);
&amp;nbsp;&amp;nbsp;&amp;nbsp; segment.setEnd(endPoint);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.d("SEGMENT", "x: " + segment.getStartX() + "y: " + segment.getStartY());

&amp;nbsp;&amp;nbsp;&amp;nbsp; Polyline pLine = new Polyline();
&amp;nbsp;&amp;nbsp;&amp;nbsp; pLine.addSegment(segment, true);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Symbol lineSymbol = new SimpleLineSymbol(Color.BLUE, 4);
&amp;nbsp;&amp;nbsp;&amp;nbsp; int addedGraphicId = someGraphicsLayer.addGraphic(new Graphic(pLine, lineSymbol));
&amp;nbsp;&amp;nbsp;&amp;nbsp; Log.d("Class/activity name for logging", "Graphic added id=" + addedGraphicId);
}
catch (Exception ex)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // log exception ex.getMessage()
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644445#M4422</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2021-12-12T03:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryException when drawing a line on the map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644446#M4423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you specify a Graphic you've to provide a "Geometry". IMO "Segment" itself isn't a Geometry, it's only part of it within polylines or polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for graphics you should use Point, Polyline or Polygon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 06:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644446#M4423</guid>
      <dc:creator>SebastianGreifeneder1</dc:creator>
      <dc:date>2012-01-20T06:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryException when drawing a line on the map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644447#M4424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sebastian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are no any documentation from ESRI developers, where &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/geometry/Segment.html"&gt;Segment&lt;/A&gt;&lt;SPAN&gt; is not a Geometry!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also no any documentation about "witch Geometries types can be used with &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/map/Graphic.html"&gt;Graphic&lt;/A&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So, for graphics you should use Point, Polyline or Polygon.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;you right, but I did not find any documentation about it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 06:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geometryexception-when-drawing-a-line-on-the-map/m-p/644447#M4424</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-01-20T06:49:37Z</dc:date>
    </item>
  </channel>
</rss>

