GeoEvent - Get the number of elements in the list returned by Geotagger processor

06-16-2023 07:34 AM
New Contributor II

Hi all,

I'm using GeoTagger processor (Geotag Format = List) to get a list of geofences hit by a vehicle moving in the city. The numbre of elements returned in the list is variable.

Examples: ListGeofences List

["2345-L", "12376-I", "43761-R"]

["2145-L", "12171-I"] 



I have to check if an element in the list exist before using it in another processor otherwise I receive a error in the log if the element does not exist. Also the process does not continue further.

Example for the list ["1385-L"]

ListGeofences[0] = "1385-L"; 

ListGeofences[1] = null  (Get an error)

I know how to do it using Delimited Value format in the GeoTagger. But this not allows me to get elements separately in the returned String.

Is there a way to get the number of elements returned in the list?

Thanks for your help.


0 Kudos
2 Replies
Esri Esteemed Contributor

Hi @ZDouiri,

Take a look at steps 6 & 7 in the following document.

0 Kudos
New Contributor II

Hi @JakeSkinner,

I know how to get the numbre of elements by using Delimited Value format in GeoTagger processor. But this will not provide me the list of elements.

One way to do this is to call the GeoTagger processor twice: one with the List format and the other with the Delimited Value format. However, I don't see this solution as a best practice. This will also impact the performance of GeoEvent.



0 Kudos