<?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: Specifying a Event's field when using Union Processor in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314622#M1314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RJ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for following up, and confirming this for me. Yes, the approach&amp;nbsp;we ended up taking with this service was to change the data source itself. The data source for the geofence points was in an oracle&amp;nbsp;SDE, so I created a spatial view which aggregated all the pointed together using GROUP BY and a ST_GEOMETRY&amp;nbsp;function, which will combine points into a multipoint feature on the fly. From there it is possible to then re-host&amp;nbsp;the spatial view as a new map service, and use field enricher to grab the ORDER_ID geometry as a multipoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone comes across this and is curious what the Oracle SQL code is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ORDER_ID,&amp;nbsp;sde.st_aggr_union (SHAPE) as SHAPE&lt;BR /&gt;FROM GeoFence_SP&lt;BR /&gt;GROUP BY ORDER_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ability to join multiple rows to a geoevent using field enricher is something that I look forward to one day having, as I believe it would be an even simpler&amp;nbsp;fix for several problems we have with Geoevent!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, for your detailed follow-up, and confirming this with your devs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 15:07:23 GMT</pubDate>
    <dc:creator>NathanKoski</dc:creator>
    <dc:date>2018-08-28T15:07:23Z</dc:date>
    <item>
      <title>Specifying a Event's field when using Union Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314620#M1312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with a geofence of points, each geofence has a category/name of ORDER_ID/METER_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am processing incoming events which contain ORDER_IDs which match a geofence. I want to use Union to grab all of the geometeries related to that events ORDER_ID and combine them for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use Regex to grab the ORDER_ID out of the incoming event and use the events ORDER_ID to match to Fences this is my current regex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${ORDER_ID}/.*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if I manually enter an order id into the union processor, say 123456/.* then it behaves as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if I am doing something wrong here, or if Unions cannot use fields in their regular expressions? I cannot find anything one way or the other in any of the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible, what might be a way to specify geofences on an event by event basis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 15:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314620#M1312</guid>
      <dc:creator>NathanKoski</dc:creator>
      <dc:date>2018-08-14T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a Event's field when using Union Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314621#M1313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed with our developer who maintains the various processor implementations that what you are trying to do with the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Union&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;processor will&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/EM&gt; work. Currently the &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;${field_name}&lt;/SPAN&gt; construct is only supported as part of a filter expression, or when using the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;GeoTagger&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we need, but do not have, is a&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Field Enricher&lt;/STRONG&gt;&lt;/EM&gt; capable of matching multiple feature records given a single primary key (e.g. a one-to-many enrichment). This is an enhancement request that has been in the product backlog for quite a while. There is a separate enhancement request to refactor all of the Geometry Overlay processors (e.g. Buffer, Convex Hull, Symmetric Difference, Union ... etc.) to allow dynamic substitution of event attribute field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking through the problem, I could imagine configuring a GeoTagger processor to logically "OR" two mutually exclusive conditions such as:&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;&lt;STRONG style="color: #800080; font-family: terminal, monaco, monospace;"&gt;&lt;SPAN style="font-size: 13px;"&gt;INTERSECTS&lt;/SPAN&gt; ${order_id}/.*&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="color: #800080; font-family: terminal, monaco, monospace;"&gt;&lt;SPAN style="font-size: 13px;"&gt;DISJOINT&lt;/SPAN&gt; ${order_id}/.*&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;...&amp;nbsp;that's a start; now I have a comma separated list of the&amp;nbsp;&lt;STRONG&gt;names&lt;/STRONG&gt;&amp;nbsp;of all geofences matching the received event record's order identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could then use a &lt;A href="http://www.arcgis.com/home/item.html?id=68238a93e5fd4043ad0bbb501b265566"&gt;Field Splitter&lt;/A&gt; processor (a custom processor available from our Gallery) to split the comma separated list of geofence names to obtain a series of individual event records. Each event record would have the received ${order_id} and the name of exactly one geofence associated with the ${order_id} of interest. Assuming that the ${meter_id} used as each geofence's name was unique I could then use a Field Enricher to enrich each event record in the series with the geometry of the feature record used to import the named geofence in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That approach requires quite a lot of processing, though, and probably won't scale if you have a high volume of geofences or if the velocity at which you are receiving event records is more than just a few event records per second.&amp;nbsp;And it still doesn't give you what you were looking for originally -- a single geometry representing a UNION of each point geometry associated with the ${order_id} attribute value originally received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might it be an option for you to represent the locations of each ${meter_id} as a multi-point geometry rather than several individual point geometries? If each ${meter_id} were a vertex of a multi-point geometry then the geometry you get back when enriching an event record using ${order_id} to look-up a single multi-point feature would have the coordinates for each ${meter_id}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without changing your data model, I don't think you'll be able to do what you want using the current release of GeoEvent Server, unless you develop a custom processor using the GeoEvent Server Java SDK. I would probably recommend looking at developing a custom Python script or Desktop GP Tool rather than trying to force GeoEvent Server to do what you want to do. Unfortunately the only two simple approaches I can think of, using GeoEvent Server, both have open / pending enhancement requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 01:24:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314621#M1313</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2018-08-28T01:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a Event's field when using Union Processor</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314622#M1314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RJ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for following up, and confirming this for me. Yes, the approach&amp;nbsp;we ended up taking with this service was to change the data source itself. The data source for the geofence points was in an oracle&amp;nbsp;SDE, so I created a spatial view which aggregated all the pointed together using GROUP BY and a ST_GEOMETRY&amp;nbsp;function, which will combine points into a multipoint feature on the fly. From there it is possible to then re-host&amp;nbsp;the spatial view as a new map service, and use field enricher to grab the ORDER_ID geometry as a multipoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone comes across this and is curious what the Oracle SQL code is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ORDER_ID,&amp;nbsp;sde.st_aggr_union (SHAPE) as SHAPE&lt;BR /&gt;FROM GeoFence_SP&lt;BR /&gt;GROUP BY ORDER_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ability to join multiple rows to a geoevent using field enricher is something that I look forward to one day having, as I believe it would be an even simpler&amp;nbsp;fix for several problems we have with Geoevent!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, for your detailed follow-up, and confirming this with your devs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 15:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/specifying-a-event-s-field-when-using-union/m-p/314622#M1314</guid>
      <dc:creator>NathanKoski</dc:creator>
      <dc:date>2018-08-28T15:07:23Z</dc:date>
    </item>
  </channel>
</rss>

