<?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:  Add WKT data on map in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512460#M4367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how will i able to draw the WKT on the map. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 17:36:06 GMT</pubDate>
    <dc:creator>ozcandurak</dc:creator>
    <dc:date>2016-08-29T17:36:06Z</dc:date>
    <item>
      <title>Add WKT data on map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512458#M4365</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;I m creating a search engine which returns WKT data. How can i use and display it on map with IOS ArcGIS SDK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m not sure if i m on the right path but so far here is what i have achieved. Not able to find any sample either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample which i have created with WKT data :&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;WKT_Data = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"LINESTRING (514108.3456489 4252278.0780065, 514132.2315816 4252286.3389939, 514154.3147193 4252293.9783672, 514159.3727057 4252295.4812072, 514166.303487 4252297.5412621, 514193.4674137 4252305.6154771, 514198.4214004 4252307.0887163, 514225.8693286 4252314.3637349, 514227.5265242 4252314.8017481, 514253.7752555 4252321.7591571, 514257.9124447 4252322.8547901, 514311.1283029 4252337.9844123, 514321.9850699 4252342.7084961, 514325.2410523 4252347.2185167, 514333.7658062 4252359.0265708, 514356.7316894 4252387.8787207)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;line = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSSpatialReference&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;spatialReferenceWithWKID&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;5253&lt;/SPAN&gt;&lt;SPAN class=""&gt;, WKT: &lt;SPAN style="background-color: #f6f6f6;"&gt;WKT_Data&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512458#M4365</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-08-29T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re:  Add WKT data on map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512459#M4366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ozcan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks right if purely talking about the syntax format based on our documentation here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_spatial_reference.html#a5215b4800676183fbf8a5788eddd1576" title="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_spatial_reference.html#a5215b4800676183fbf8a5788eddd1576"&gt;10.2.5: AGSSpatialReference Class Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as the data that you input with&amp;nbsp;WKT data value is valid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512459#M4366</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-08-29T16:58:35Z</dc:date>
    </item>
    <item>
      <title>Re:  Add WKT data on map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512460#M4367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how will i able to draw the WKT on the map. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:36:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512460#M4367</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-08-29T17:36:06Z</dc:date>
    </item>
    <item>
      <title>Re:  Add WKT data on map</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512461#M4368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two things you mixed up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. You can not draw a spatialReference on the map. This line below you will get is a SpatialReference rather than a line&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;var line &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; AGSSpatialReference&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;spatialReferenceWithWKID&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5253&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; WKT&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; WKT_Data&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. If you want to show this "&lt;SPAN style="background-color: #f6f6f6;"&gt;LINESTRING"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;polyline on the map. You need to parse this String into a valid format for Esri "Geometry Object". Basically you need to check this documentation from here:&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Geometry_objects/02r3000000n1000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Geometry_objects/02r3000000n1000000/"&gt;ArcGIS REST API - Geometry objects&lt;/A&gt;&amp;nbsp;to find the right style of geometry. Then you need to use pure Swift to parse the "String" you get to convert to a valid geometry object.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eventually,&amp;nbsp;based on what type of geometry that you want to init the geometry on the map. For example, the geometry we converted as a "Polyline", then use this AGSPolyline Class to create the geometry, check this documentation:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_polyline.html#a6eef746e045e8e0f62c19d4b28cb5693" title="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_polyline.html#a6eef746e045e8e0f62c19d4b28cb5693"&gt;AGSPolyline - initWithJSON:spatialReference:&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 18:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wkt-data-on-map/m-p/512461#M4368</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-08-29T18:20:37Z</dc:date>
    </item>
  </channel>
</rss>

