<?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 Best way to parse and construct Geometry POINT, LINESTRING, POLYGON string from database? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/best-way-to-parse-and-construct-geometry-point/m-p/416694#M1300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Point, Line, Polygons are stored in shape field of database like following and I want to parse and construct a Geometry or at least parse a decimal degree string which can be used for &lt;SPAN&gt;CoordinateConversion.decimalDegreesToPoint() method&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What's the best way to parse&amp;nbsp;them? Because I don't to re-implement something that already implemented.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. POINT (106.864669442177 47.8991748467088)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LINESTRING (105.559202361852 47.9573920816183, 105.559594083577 47.9575918540359, 105.560169398785 47.9578764885664, 105.561418429017 47.9585039317608)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. POLYGON ((634558.425 5308335.9859 1277.97, 634555.2962 5308367.5332 1277.97, 634544.5106 5308366.3938 1277.97, 634547.6093 5308334.9463 1277.97, 634558.425 5308335.9859 1277.97))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing something like this for now.&lt;/P&gt;&lt;P&gt;SpatialReference SP_WGS_84 = SpatialReference.create(4326);&lt;/P&gt;&lt;P&gt;Point point = CoordinateConversion.decimalDegreesToPoint("47.8991748467088 106.864669442177", SP_WGS_84)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2016 03:44:16 GMT</pubDate>
    <dc:creator>BatbayarBazarragchaa</dc:creator>
    <dc:date>2016-10-14T03:44:16Z</dc:date>
    <item>
      <title>Best way to parse and construct Geometry POINT, LINESTRING, POLYGON string from database?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/best-way-to-parse-and-construct-geometry-point/m-p/416694#M1300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Point, Line, Polygons are stored in shape field of database like following and I want to parse and construct a Geometry or at least parse a decimal degree string which can be used for &lt;SPAN&gt;CoordinateConversion.decimalDegreesToPoint() method&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What's the best way to parse&amp;nbsp;them? Because I don't to re-implement something that already implemented.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. POINT (106.864669442177 47.8991748467088)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LINESTRING (105.559202361852 47.9573920816183, 105.559594083577 47.9575918540359, 105.560169398785 47.9578764885664, 105.561418429017 47.9585039317608)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. POLYGON ((634558.425 5308335.9859 1277.97, 634555.2962 5308367.5332 1277.97, 634544.5106 5308366.3938 1277.97, 634547.6093 5308334.9463 1277.97, 634558.425 5308335.9859 1277.97))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing something like this for now.&lt;/P&gt;&lt;P&gt;SpatialReference SP_WGS_84 = SpatialReference.create(4326);&lt;/P&gt;&lt;P&gt;Point point = CoordinateConversion.decimalDegreesToPoint("47.8991748467088 106.864669442177", SP_WGS_84)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 03:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/best-way-to-parse-and-construct-geometry-point/m-p/416694#M1300</guid>
      <dc:creator>BatbayarBazarragchaa</dc:creator>
      <dc:date>2016-10-14T03:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to parse and construct Geometry POINT, LINESTRING, POLYGON string from database?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/best-way-to-parse-and-construct-geometry-point/m-p/416695#M1301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some good examples in this sample:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/java/sample-code/add-graphics/" title="https://developers.arcgis.com/java/sample-code/add-graphics/"&gt;Add graphics | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create&amp;nbsp;Points,&amp;nbsp;using&amp;nbsp;geographic coordinates for example, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #006a00; background-color: #f8f8f8;"&gt;// points&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Point point1 = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91; background-color: #f8f8f8;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; Point(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;13&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;55.59&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Point point2 = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91; background-color: #f8f8f8;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; Point(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;72.83&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;18.97&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Point point3 = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91; background-color: #f8f8f8;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; Point(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;5.43&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;34.3&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way to create a Polyline is as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Polyline polyline = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91; background-color: #f8f8f8;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; Polyline(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;polyline.startPath(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;118.169&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;34.016&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;polyline.lineTo(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;104.941&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;39.7072&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;polyline.lineTo(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;96.724&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf; background-color: #f8f8f8;"&gt;32.732&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;...and a Polygon:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt; Polygon polygon = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; Polygon(); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;polygon.startPath(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;25&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;5.59&lt;/SPAN&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;polygon.lineTo(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;13.42&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;3.92&lt;/SPAN&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;polygon.lineTo(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;12.3&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;23.3&lt;/SPAN&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;polygon.lineTo(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;38.2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;22.9&lt;/SPAN&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;polygon.closePathWithLine();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 07:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/best-way-to-parse-and-construct-geometry-point/m-p/416695#M1301</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2016-10-14T07:21:02Z</dc:date>
    </item>
  </channel>
</rss>

