<?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: Displaying spatial coordinates from SQL database in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734855#M68075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the feedback. I am able to return the data with ease but I'm unfamiliar with how to get the actual points on the map using the javascript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jan 2018 19:36:07 GMT</pubDate>
    <dc:creator>MathewMullan1</dc:creator>
    <dc:date>2018-01-12T19:36:07Z</dc:date>
    <item>
      <title>Displaying spatial coordinates from SQL database</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734853#M68073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a SQL database with spatial coordinates that I want to display in a Map View hosted in a web application. I have the Map View already rendered but I need some direction on where to start with getting the data displayed on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 17:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734853#M68073</guid>
      <dc:creator>MathewMullan1</dc:creator>
      <dc:date>2018-01-12T17:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying spatial coordinates from SQL database</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734854#M68074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You will need a web service to query and return the data in Json format. If you have some .Net development skills then a simple Google for Creating a RESTfull web service in .Net will do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 17:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734854#M68074</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-12T17:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying spatial coordinates from SQL database</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734855#M68075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the feedback. I am able to return the data with ease but I'm unfamiliar with how to get the actual points on the map using the javascript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 19:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734855#M68075</guid>
      <dc:creator>MathewMullan1</dc:creator>
      <dc:date>2018-01-12T19:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying spatial coordinates from SQL database</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734856#M68076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, That is the easy part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you create point using the Point class and the coordinate you returned from SQL database.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#constructors" title="https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#constructors"&gt;https://developers.arcgis.com/javascript/3/jsapi/point-amd.html#constructors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a simple marker symbol&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/simplemarkersymbol-amd.html#constructors" title="https://developers.arcgis.com/javascript/3/jsapi/simplemarkersymbol-amd.html#constructors"&gt;https://developers.arcgis.com/javascript/3/jsapi/simplemarkersymbol-amd.html#constructors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create a graphic from the above two&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html#constructors" title="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html#constructors"&gt;https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html#constructors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and add that to the maps graphics layer&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#graphics" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#graphics"&gt;https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#graphics&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this sample for more specific code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jssamples/graphics_create_circles.html" title="https://developers.arcgis.com/javascript/3/jssamples/graphics_create_circles.html"&gt;https://developers.arcgis.com/javascript/3/jssamples/graphics_create_circles.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 19:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734856#M68076</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-01-12T19:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying spatial coordinates from SQL database</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734857#M68077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way to do this without a lot of custom code on your front end (which will have to change everytime there's a backend change)...would be to add a trigger to pull the coordinates out of the geography (or geometry) object. This gives you a permanently populated and updated XY field.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;TRIGGER&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;dbo&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;tigger&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;dbo&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;feature class&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;after&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;INSERT&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;UPDATE&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;FOR&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;REPLICATION&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; 
&lt;SPAN class="keyword token"&gt;BEGIN&lt;/SPAN&gt; 
 &lt;SPAN class="keyword token"&gt;SET&lt;/SPAN&gt; NOCOUNT &lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; 
 
 &lt;SPAN class="keyword token"&gt;UPDATE&lt;/SPAN&gt; p &lt;SPAN class="keyword token"&gt;SET&lt;/SPAN&gt; 
 SHAPE &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;CASE&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;WHEN&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SHAPE &lt;SPAN class="operator token"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;NOT&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;NULL&lt;/SPAN&gt; 
 &lt;SPAN class="keyword token"&gt;THEN&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SHAPE &lt;SPAN class="keyword token"&gt;ELSE&lt;/SPAN&gt; Geography::STPointFromText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'POINT('&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; CAST&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LON &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;VARCHAR&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' '&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; CAST&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LAT &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;VARCHAR&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;')'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4269&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;END&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
 LON &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;CASE&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;WHEN&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SHAPE &lt;SPAN class="operator token"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;NULL&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;THEN&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LON &lt;SPAN class="keyword token"&gt;ELSE&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SHAPE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Long &lt;SPAN class="keyword token"&gt;END&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
 LAT &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;CASE&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;WHEN&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SHAPE &lt;SPAN class="operator token"&gt;IS&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;NULL&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;THEN&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LAT &lt;SPAN class="keyword token"&gt;ELSE&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SHAPE&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Lat &lt;SPAN class="keyword token"&gt;END&lt;/SPAN&gt;

 &lt;SPAN class="keyword token"&gt;FROM&lt;/SPAN&gt; feature class
 &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; p
&lt;SPAN class="keyword token"&gt;INNER&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;JOIN&lt;/SPAN&gt; 
 inserted &lt;SPAN class="keyword token"&gt;AS&lt;/SPAN&gt; i 
 &lt;SPAN class="keyword token"&gt;ON&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;globalid &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;globalid

&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;END&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:20:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/displaying-spatial-coordinates-from-sql-database/m-p/734857#M68077</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2021-12-12T07:20:13Z</dc:date>
    </item>
  </channel>
</rss>

