<?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 Display SQL Geography in ESRI JS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356310#M32993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I display SQL Geography in ESRI JS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My API returns a geography I inserted into SQL from a tutorial I found.&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;"Shape": { "Geography": { "CoordinateSystemId": 4326, "WellKnownText": "POLYGON ((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653))", "WellKnownBinary": null } }&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I can write a parser for this and get it to show but it seems like it's a lot of work. I was wondering if anyone has done this before and has any tips?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2016 04:35:38 GMT</pubDate>
    <dc:creator>AlexeiB</dc:creator>
    <dc:date>2016-11-29T04:35:38Z</dc:date>
    <item>
      <title>Display SQL Geography in ESRI JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356310#M32993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I display SQL Geography in ESRI JS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My API returns a geography I inserted into SQL from a tutorial I found.&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;"Shape": { "Geography": { "CoordinateSystemId": 4326, "WellKnownText": "POLYGON ((-122.358 47.653, -122.348 47.649, -122.348 47.658, -122.358 47.658, -122.358 47.653))", "WellKnownBinary": null } }&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I can write a parser for this and get it to show but it seems like it's a lot of work. I was wondering if anyone has done this before and has any tips?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 04:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356310#M32993</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2016-11-29T04:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display SQL Geography in ESRI JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356311#M32994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the API documentation (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html"&gt;Polygon | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;| &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html"&gt;Polygon | API Reference | ArcGIS API for JavaScript 4.1&lt;/A&gt;&amp;nbsp;&amp;nbsp;) there does not seem to be a way of constructing a polygon directly from the SQL WKT. &amp;nbsp;Parse and plot - should be easy enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 05:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356311#M32994</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-11-29T05:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display SQL Geography in ESRI JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356312#M32995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/Terraformer" title="https://github.com/Esri/Terraformer"&gt;GitHub - Esri/Terraformer: A geographic toolkit for dealing with geometry, geography, formats, and building geo database…&lt;/A&gt;&amp;nbsp;You'll need the WKT Parser module as well. A single AMD module with just the methods you need can be built with &lt;A class="link-titled" href="http://browserify.org/" title="http://browserify.org/"&gt;Browserify&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 17:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356312#M32995</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2016-11-29T17:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display SQL Geography in ESRI JS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356313#M32996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone. I ended up writing a simple parser for the geometry and it looks like it's working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 05:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-sql-geography-in-esri-js/m-p/356313#M32996</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2016-12-05T05:39:34Z</dc:date>
    </item>
  </channel>
</rss>

