<?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: Overlapping geofences with different attributes in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102132#M445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies that this reply is coming so long after you posted your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you are still facing a workflow in which a GeoTagger processor (out-of-the-box) is producing a list of GeoFences which satisfy the spatial criteria (e.g. GeoEvent Geometry INTERSECTS .*/.*) when GeoFence areas overlap, please take a look at the custom processor below which has been uploaded to the product gallery:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=68238a93e5fd4043ad0bbb501b265566"&gt;Field Splitter Processors for GeoEvent&lt;/A&gt;​&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This custom processor is intended to be placed in-line with a GeoTagger, immediately following the GeoTagger, to split a single GeoEvent whose &lt;EM&gt;GeoTags&lt;/EM&gt; attribute field contains a list of values into multiple events. This should eliminate the need to incorporate multiple Field Calculator processors in your GeoEvent Service to manually pull the names of GeoFences out of the list by hard-coded index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know how this custom processor works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards -&lt;/P&gt;&lt;P&gt;RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2016 02:36:55 GMT</pubDate>
    <dc:creator>RJSunderman</dc:creator>
    <dc:date>2016-01-22T02:36:55Z</dc:date>
    <item>
      <title>Overlapping geofences with different attributes</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102128#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have an issue working with geofences that we cannot still deal with. While tracking fishing vessels there is need to have a lot of geofence polygons that each one leads to a specific alert. For example there is a geofence that describes an area where the fishing is prohibited for "reason1". Also, the same time, there is another geofence polygon, overlapping with the first one, where the fishing is prohibited for "reason2". So the overlapping part contains criteria from both of them. How can we set up the incident detectors to generate two different alert points for the same vessel signal when it steps inside the overlapping part, so to warn us that it has violated both of them? Generating a new polygon of the overlapping area does not actually help us because the new polygon should reflect the criteria of both the polygons that comes from. So this again would not lead us to generate two different alerts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elias L.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 07:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102128#M441</guid>
      <dc:creator>EliasLazarou</dc:creator>
      <dc:date>2014-03-26T07:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping geofences with different attributes</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102129#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Elias -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, if you want to use a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoTagger&lt;/SPAN&gt;&lt;SPAN&gt; to identify a GeoFence a event's Geometry is within, and then use a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Enricher&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; to enrich the event with attribute information from the feature service used to create the GeoFences ... the individual GeoFences must not overlap. A description of why this is the case is presented in the thread &lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;Field" rel="nofollow" target="_blank"&amp;gt;http://forums.arcgis.com/threads/104737-Field-Enricher-with-Multiple-Matches?highlight=GeoFence+overlap]Field&lt;/A&gt;&lt;SPAN&gt; Enricher with Multiple Matches.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;There is a work around, which you can scale depending on the number of potentially overlapping GeoFences. Please click to open the following illustration &lt;A href="&amp;lt;/span&amp;gt;&amp;lt;a" target="_blank"&gt;example" rel="nofollow" target="_blank"&amp;gt;http://forums.arcgis.com/attachment.php?attachmentid=32575&amp;amp;d=1395956685]example&lt;/A&gt;&lt;SPAN&gt; GeoEvent Service, also attached below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the GeoEvent Service illustrated above I used a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoTagger&lt;/SPAN&gt;&lt;SPAN&gt; to add a field &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoFenceNames&lt;/SPAN&gt;&lt;SPAN&gt; containing the names of each GeoFence the received event's Geometry is INSIDE as a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;List&lt;/SPAN&gt;&lt;SPAN&gt;. Note that I did &lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt; use the default &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;DelimitedValue&lt;/SPAN&gt;&lt;SPAN&gt;. If the received event's Geometry is within an area overlapped by two GeoFences, the List appended to the event by the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoTagger&lt;/SPAN&gt;&lt;SPAN&gt; will have GeoFence names at the first two index positions:&amp;nbsp; GeoFenceNames[0] and GeoFenceNames[1]. (Note that the list's index is zero-based.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By sending the geotagged event through a series of &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Calculator&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Enricher&lt;/SPAN&gt;&lt;SPAN&gt; processors, I can isolate the individual GeoFence names from the list and use those individual names as the key to the join needed to further enrich the events with attributes from a uniquely named polygon feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Calculator&lt;/SPAN&gt;&lt;SPAN&gt; processor is able to handle the exceptional case in which there is no ordinal value at a specified index. For example, if the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoFenceNames&lt;/SPAN&gt;&lt;SPAN&gt; list contains only two identifiers, the expression &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoFenceNames[2]&lt;/SPAN&gt;&lt;SPAN&gt; in the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GetGeoFence3&lt;/SPAN&gt;&lt;SPAN&gt; processor will handle the exception by terminating event flow through that parallel branch. The other two branches will succeed in retrieving GeoFence names using the index values specified in their expressions, and the enrichment in-line with those two branches will succeed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Field Reducer&lt;/SPAN&gt;&lt;SPAN&gt; in the illustration is optional. I'm using it to remove the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Longitude&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Latitude&lt;/SPAN&gt;&lt;SPAN&gt; received with the original event and the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoFenceNames&lt;/SPAN&gt;&lt;SPAN&gt; List added by the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoTagger&lt;/SPAN&gt;&lt;SPAN&gt; ... to simplify the event and remove redundant data before it is sent to the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The TCP/Text output will receive one event for each named GeoFence in the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoFenceNames&lt;/SPAN&gt;&lt;SPAN&gt; List; the list tagged onto the event by the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;GeoTagger&lt;/SPAN&gt;&lt;SPAN&gt; identifing all the GeoFences the original event's Geometry is within. The solution illustrated is not perfect -- it will only handle up to three overlapping GeoFences. But you can see, I think, how you could scale the workaround to handle a reasonable maximum number of instances of overlapping GeoFences. You will have to evaluate the performance of this workaround in your environment against the complexity of your polygon feature service geometries and schema as well as the rate at which you are feeding data into GeoEvent Processor.&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;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 20:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102129#M442</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2014-03-27T20:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping geofences with different attributes</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102130#M443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much RJ. The workaround you described seems to work like a charm. It now lets me to go on designing the GeoEvent Service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll open another post if i need anything else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot. :cool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elias&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 09:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102130#M443</guid>
      <dc:creator>EliasLazarou</dc:creator>
      <dc:date>2014-03-28T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping geofences with different attributes</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102131#M444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im getting the same trouble as you, any updates regarding this issue because I cant believe that the processor cannot process a list having in mind that the geotagger has the option of returning multiple geofences as a list and based on the solution presented here, you must decompose that array in various threads for getting the additional data of each of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 18:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102131#M444</guid>
      <dc:creator>DanielVergara</dc:creator>
      <dc:date>2015-10-29T18:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping geofences with different attributes</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102132#M445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies that this reply is coming so long after you posted your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you are still facing a workflow in which a GeoTagger processor (out-of-the-box) is producing a list of GeoFences which satisfy the spatial criteria (e.g. GeoEvent Geometry INTERSECTS .*/.*) when GeoFence areas overlap, please take a look at the custom processor below which has been uploaded to the product gallery:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=68238a93e5fd4043ad0bbb501b265566"&gt;Field Splitter Processors for GeoEvent&lt;/A&gt;​&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This custom processor is intended to be placed in-line with a GeoTagger, immediately following the GeoTagger, to split a single GeoEvent whose &lt;EM&gt;GeoTags&lt;/EM&gt; attribute field contains a list of values into multiple events. This should eliminate the need to incorporate multiple Field Calculator processors in your GeoEvent Service to manually pull the names of GeoFences out of the list by hard-coded index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know how this custom processor works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards -&lt;/P&gt;&lt;P&gt;RJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 02:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/overlapping-geofences-with-different-attributes/m-p/102132#M445</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2016-01-22T02:36:55Z</dc:date>
    </item>
  </channel>
</rss>

