<?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: Converting Lat/Long Coordinates in JSON Feed to Geometry in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479016#M2107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tom -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The screenshot you took of the GeoEvent Definition generated by the inbound connector is indicating that &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;location&lt;/SPAN&gt;&lt;SPAN&gt; is a group containing two elements. The first element &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;type&lt;/SPAN&gt;&lt;SPAN&gt; is a String, the second element &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;coordinate&lt;/SPAN&gt;&lt;SPAN&gt; is a list of Double values. The "infinity" is how GEP indicates an element whose cardinality is "many".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When coordinates are in a list, you need to specify the list index from which the coordinate value can be obtained. In your example you would retrieve the X Geometry Field from &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;location.coordinate[1]&lt;/STRONG&gt;&lt;SPAN&gt; and the Y Geometry Field from &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;location.coordinate[0]&lt;/STRONG&gt;&lt;SPAN&gt;. Note that I'm assuming the value 34.854503 is "latitude" and the value -117.087665 is "longitude". The list index is zero-based.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please refer also to the forum thread &lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;Is" rel="nofollow" target="_blank"&amp;gt;http://forums.arcgis.com/threads/109508-Is-there-an-expression-for-converting-values-of-longtitude-and-latitude-into-a-point]Is&lt;/A&gt;&lt;SPAN&gt; there an expression for converting values of longtitude and latitude into a point.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this information helps -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RJ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 02:31:34 GMT</pubDate>
    <dc:creator>RJSunderman</dc:creator>
    <dc:date>2014-05-15T02:31:34Z</dc:date>
    <item>
      <title>Converting Lat/Long Coordinates in JSON Feed to Geometry</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479015#M2106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a JSON feed which contains the Latitude/Longitude coordinates of a point feature in a format that makes it harder to get at.&amp;nbsp; The part of the JSON record that has the Lat/Long looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "location": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "point",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "coordinate": [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34.854503,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -117.087665
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the GeoEvent Definition File that is auto-generated looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]33786[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how these coordinates can be extracted to create the Geometry for this event?&amp;nbsp; My end goal is to generate a feature service from the JSON data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479015#M2106</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2014-05-13T18:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Lat/Long Coordinates in JSON Feed to Geometry</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479016#M2107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tom -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The screenshot you took of the GeoEvent Definition generated by the inbound connector is indicating that &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;location&lt;/SPAN&gt;&lt;SPAN&gt; is a group containing two elements. The first element &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;type&lt;/SPAN&gt;&lt;SPAN&gt; is a String, the second element &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;coordinate&lt;/SPAN&gt;&lt;SPAN&gt; is a list of Double values. The "infinity" is how GEP indicates an element whose cardinality is "many".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When coordinates are in a list, you need to specify the list index from which the coordinate value can be obtained. In your example you would retrieve the X Geometry Field from &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;location.coordinate[1]&lt;/STRONG&gt;&lt;SPAN&gt; and the Y Geometry Field from &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;location.coordinate[0]&lt;/STRONG&gt;&lt;SPAN&gt;. Note that I'm assuming the value 34.854503 is "latitude" and the value -117.087665 is "longitude". The list index is zero-based.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please refer also to the forum thread &lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;Is" rel="nofollow" target="_blank"&amp;gt;http://forums.arcgis.com/threads/109508-Is-there-an-expression-for-converting-values-of-longtitude-and-latitude-into-a-point]Is&lt;/A&gt;&lt;SPAN&gt; there an expression for converting values of longtitude and latitude into a point.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this information helps -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RJ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 02:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479016#M2107</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2014-05-15T02:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Lat/Long Coordinates in JSON Feed to Geometry</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479017#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked, thanks!&amp;nbsp; I added the coordinates to my "Poll an external website for JSON" input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]33887[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now able to generate features from the JSON feed to an "Update a Feature" output.&amp;nbsp; Works nicely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LSA Associates&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 21:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/converting-lat-long-coordinates-in-json-feed-to/m-p/479017#M2108</guid>
      <dc:creator>TomFlahive</dc:creator>
      <dc:date>2014-05-16T21:38:59Z</dc:date>
    </item>
  </channel>
</rss>

