<?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: SDE Table as input? in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328924#M1367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a few very productive conversations with RJ, I have an answer and much new information.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; The initial question was about using an SDE table as an input, which as RJ states above, is not possible.&amp;nbsp; However it is quite straightforward to publish that table as part of a Map Service via Server with feature access (not 100% sure if this is necessary for the input but it doesn't hurt) and then use the 'Poll a url for JSON' to access the data in that table.&lt;/P&gt;&lt;P&gt;- When you set up your input connector for this, the url needs to be essentially what RJ posted above, obviously with 'SampleWorldCities/MapServer/0' replaced with your own data.&amp;nbsp; The query component of the url should be fine as is.&amp;nbsp; Assuming your table needs geometry calculated, in the 'Advanced' settings of the input connector, you need to check 'Yes' under 'Construct Geometry from fields' and give your attributes for x and y.&amp;nbsp; You may need to add 'attributes...' in front of the field name (attributes.x_coord, for example) to work with the JSON. &lt;/P&gt;&lt;P&gt;- Due to a bug in version 10.3, we added a second GeoEvent Definition to map to that has identical fields/data types as the initial GeoEv Def, but without the 'attributes.' in front of every field, and adding in a field of type 'Geometry' to store the results of the Field Calculator calculating geometry from x/y fields.&lt;/P&gt;&lt;P&gt;- Then a field mapper is added to map GeoEvent Def 1 (initial input) to the 2nd one, which can then be hooked up to field calculator to geometry, and you are on your way.&lt;/P&gt;&lt;P&gt;- It is extremely helpful to create a simple output connector of type 'Write to a JSON file' in order to get a look at your data to this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks RJ for your help here.&amp;nbsp; I marked this as the correct answer since it has what I ended up doing, but consider RJ's response as part of the 'correct answer' as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 19:44:21 GMT</pubDate>
    <dc:creator>AllenScully</dc:creator>
    <dc:date>2015-08-21T19:44:21Z</dc:date>
    <item>
      <title>SDE Table as input?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328921#M1364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - Working with the 30 day demo of GEP to see if it can work for us.&amp;nbsp; Wondering if it will accept a simple table in an SDE geodatabase as input?&amp;nbsp; Seems like it needs to be published as a feature service, but this dictates objectid being generated, which blows up our table updating process.&amp;nbsp; Was thinking we could export the table to xml recordset document since xml files are valid inputs, but my understanding is that this would be a static file, not reading new records from the table once it's created.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 16:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328921#M1364</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2015-08-06T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Table as input?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328922#M1365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick update - i have created a service that has the table we need, with feature access.&amp;nbsp; Now the issue is that the table has X/Y coordinates but the 'Poll an ArcGIS Server for Features' input does not seem to have a way to convert them into geometry (whereas the 'Receive Text from a TCP Socket allows you to specify X/Y geometry fields).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 18:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328922#M1365</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2015-08-06T18:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Table as input?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328923#M1366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Allen -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Poll an ArcGIS Server for Features&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’ &lt;/SPAN&gt;input makes the assumption that the Geometry for your events will come from the features you are polling. So that particular input does not offer a configuration option to &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Construct Geometry From Fields&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend you try using the &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Poll an External Website for JSON&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’ &lt;/SPAN&gt;input. That input connector uses the product's generic JSON adapter (vs. the Esri Feature JSON adapter used by the&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Poll an ArcGIS Server for Features&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’ &lt;/SPAN&gt;input).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When configuring your &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Poll an External Website for JSON&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’ &lt;/SPAN&gt;input you will have to specify the URL that GeoEvent should poll. You will have to include all of the required parameters for polling a Esri feature service as generic JSON. The easiest way to see what these parameters are is to use the ArcGIS REST Services Directory to query your feature service, then copy/paste the URL generated for your query and examine the parameters. Many of the parameters will be unspecified. Examples include:&amp;nbsp;&amp;nbsp; &amp;amp;text= &amp;amp;objectIds= &amp;amp;time= &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can omit many of the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="_jivemacro_uid_14389700013519064 jive_macro_code jive_text_macro" data-renderedposition="370_8_912_49" jivemacro_uid="_14389700013519064"&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/0/query" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/0/query&lt;/A&gt;&lt;SPAN&gt;&amp;lt;br/&amp;gt;?where=1%3D1&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;spatialRel=esriSpatialRelIntersects&amp;lt;br/&amp;gt;&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;returnTrueCurves=false&amp;amp;returnIdsOnly=false&amp;lt;br/&amp;gt;&amp;amp;returnCountOnly=false&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnDistinctValues=false&amp;lt;br/&amp;gt;&amp;amp;f=json&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to specify the above query as a single line of text ... as the &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;Poll an External Website for JSON&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’&lt;/SPAN&gt; input's URL property. You will also need to configure the input to specify '&lt;SPAN style="color: #505051; font-family: Verdana, sans-serif; font-size: 12px;"&gt;features&lt;/SPAN&gt;' (no quotes) for the input's &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;‘&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Verdana',sans-serif; color: #505051; background: white;"&gt;JSON Object Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;’&lt;/SPAN&gt; parameter so the input knows to look for an array containing features and bring each feature in as a separate event. In my example above, I elected to specify &lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;returnGeometry=false&lt;/STRONG&gt;&lt;/SPAN&gt; since you indicated that you intend to have the input use coordinate values returned from the feature query to construct a Point Geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps -&lt;/P&gt;&lt;P&gt;RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 17:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328923#M1366</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2015-08-07T17:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Table as input?</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328924#M1367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a few very productive conversations with RJ, I have an answer and much new information.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; The initial question was about using an SDE table as an input, which as RJ states above, is not possible.&amp;nbsp; However it is quite straightforward to publish that table as part of a Map Service via Server with feature access (not 100% sure if this is necessary for the input but it doesn't hurt) and then use the 'Poll a url for JSON' to access the data in that table.&lt;/P&gt;&lt;P&gt;- When you set up your input connector for this, the url needs to be essentially what RJ posted above, obviously with 'SampleWorldCities/MapServer/0' replaced with your own data.&amp;nbsp; The query component of the url should be fine as is.&amp;nbsp; Assuming your table needs geometry calculated, in the 'Advanced' settings of the input connector, you need to check 'Yes' under 'Construct Geometry from fields' and give your attributes for x and y.&amp;nbsp; You may need to add 'attributes...' in front of the field name (attributes.x_coord, for example) to work with the JSON. &lt;/P&gt;&lt;P&gt;- Due to a bug in version 10.3, we added a second GeoEvent Definition to map to that has identical fields/data types as the initial GeoEv Def, but without the 'attributes.' in front of every field, and adding in a field of type 'Geometry' to store the results of the Field Calculator calculating geometry from x/y fields.&lt;/P&gt;&lt;P&gt;- Then a field mapper is added to map GeoEvent Def 1 (initial input) to the 2nd one, which can then be hooked up to field calculator to geometry, and you are on your way.&lt;/P&gt;&lt;P&gt;- It is extremely helpful to create a simple output connector of type 'Write to a JSON file' in order to get a look at your data to this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks RJ for your help here.&amp;nbsp; I marked this as the correct answer since it has what I ended up doing, but consider RJ's response as part of the 'correct answer' as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 19:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/sde-table-as-input/m-p/328924#M1367</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2015-08-21T19:44:21Z</dc:date>
    </item>
  </channel>
</rss>

