<?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 GeoEventserver Array in GeoEvent Definition in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579547#M4265</link>
    <description>&lt;P&gt;What should the structure of the new GeoEvent Definition for the JSON data be to read the subsequent JSON data? There is an array in the data, which I cannot get into the GeoEvent definition.&lt;/P&gt;&lt;P&gt;URL to the data stream&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations.json?waters=POTSDAMER%20HAVEL,POTSDAM&amp;amp;includeTimeseries=true&amp;amp;includeCurrentMeasurement=true" target="_blank" rel="noopener"&gt;https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations.json?waters=POTSDAMER%20HAVEL,POTSDAM&amp;amp;includeTimeseries=true&amp;amp;includeCurrentMeasurement=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is structured as follows:&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"uuid": "5e10e1e7-9115-4bd7-ad57-e2062f516891",&lt;BR /&gt;"number": "580412",&lt;BR /&gt;"shortname": "POTSDAM",&lt;BR /&gt;"longname": "POTSDAM",&lt;BR /&gt;"km": 26.63,&lt;BR /&gt;"agency": "STANDORT BRANDENBURG",&lt;BR /&gt;"longitude": 13.072071020002,&lt;BR /&gt;"latitude": 52.3998866995299,&lt;BR /&gt;"water": {&lt;BR /&gt;"shortname": "PHv",&lt;BR /&gt;"longname": "POTSDAMER HAVEL"&lt;BR /&gt;},&lt;BR /&gt;"timeseries": [&lt;BR /&gt;{&lt;BR /&gt;"shortname": "W",&lt;BR /&gt;"longname": "WASSERSTAND ROHDATEN",&lt;BR /&gt;"unit": "cm",&lt;BR /&gt;"equidistance": 15,&lt;BR /&gt;"currentMeasurement": {&lt;BR /&gt;"timestamp": "2025-01-28T15:15:00+01:00",&lt;BR /&gt;"value": 102,&lt;BR /&gt;"stateMnwMhw": "normal",&lt;BR /&gt;"stateNswHsw": "unknown"&lt;BR /&gt;},&lt;BR /&gt;"gaugeZero": {&lt;BR /&gt;"unit": "m. ü. NHN",&lt;BR /&gt;"value": 28.434,&lt;BR /&gt;"validFrom": "2019-11-01"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"shortname": "WT",&lt;BR /&gt;"longname": "WASSERTEMPERATUR ROHDATEN",&lt;BR /&gt;"unit": "°C",&lt;BR /&gt;"equidistance": 60,&lt;BR /&gt;"currentMeasurement": {&lt;BR /&gt;"timestamp": "2025-01-28T15:00:00+01:00",&lt;BR /&gt;"value": 4&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"shortname": "LT",&lt;BR /&gt;"longname": "LUFTTEMPERATUR ROHDATEN",&lt;BR /&gt;"unit": "°C",&lt;BR /&gt;"equidistance": 15,&lt;BR /&gt;"currentMeasurement": {&lt;BR /&gt;"timestamp": "2025-01-28T15:15:00+01:00",&lt;BR /&gt;"value": 7.6&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output from the input processor currently looks like this:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"GED_Name": "potsdam_input",&lt;BR /&gt;"uuid": "5e10e1e7-9115-4bd7-ad57-e2062f516891",&lt;BR /&gt;"number": "580412",&lt;BR /&gt;"shortname": "POTSDAM",&lt;BR /&gt;"longname": "POTSDAM",&lt;BR /&gt;"km": 26.63,&lt;BR /&gt;"agency": "STANDORT BRANDENBURG",&lt;BR /&gt;"longitude": 13.072071020001967,&lt;BR /&gt;"latitude": 52.3998866995299,&lt;BR /&gt;"water": "water : PHv,POTSDAMER HAVEL",&lt;BR /&gt;"timeseries": "[timeseries : W,WASSERSTAND ROHDATEN,cm,15.0,currentMeasurement : 2025-01-28T15:15:00,102.0,normal,unknown,gaugeZero : m. ü. NHN,28.434,2019-11-01, timeseries : WT,WASSERTEMPERATUR ROHDATEN,°C,60.0,currentMeasurement : 2025-01-28T15:00:00,4.0,null,null,null, timeseries : LT,LUFTTEMPERATUR ROHDATEN,°C,15.0,currentMeasurement : 2025-01-28T15:15:00,7.4,null,null,null]"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I feed this into a fieldmapper, I get this output:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"GED_Name": "potsdam_output",&lt;BR /&gt;"uuid": "5e10e1e7-9115-4bd7-ad57-e2062f516891",&lt;BR /&gt;"number": "580412",&lt;BR /&gt;"shortname": "POTSDAM",&lt;BR /&gt;"longname": "POTSDAM",&lt;BR /&gt;"km": 26.63,&lt;BR /&gt;"agency": "STANDORT BRANDENBURG",&lt;BR /&gt;"longitude": 13.072071020001967,&lt;BR /&gt;"latitude": 52.3998866995299,&lt;BR /&gt;"water_shortname": "PHv",&lt;BR /&gt;"water_longname": "POTSDAMER HAVEL",&lt;BR /&gt;"timeseries_shortname": "null",&lt;BR /&gt;"timesseries_longname": "null",&lt;BR /&gt;"timeseries_unit": "null",&lt;BR /&gt;"timeseries_equidistance": "null"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I can process the data stream fine up to the array "timeseries", but I can't get the array to work. Can someone help me define the input or output GeoEvent definition for the array?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Nico&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 15:34:55 GMT</pubDate>
    <dc:creator>Nico9</dc:creator>
    <dc:date>2025-01-28T15:34:55Z</dc:date>
    <item>
      <title>GeoEventserver Array in GeoEvent Definition</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579547#M4265</link>
      <description>&lt;P&gt;What should the structure of the new GeoEvent Definition for the JSON data be to read the subsequent JSON data? There is an array in the data, which I cannot get into the GeoEvent definition.&lt;/P&gt;&lt;P&gt;URL to the data stream&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations.json?waters=POTSDAMER%20HAVEL,POTSDAM&amp;amp;includeTimeseries=true&amp;amp;includeCurrentMeasurement=true" target="_blank" rel="noopener"&gt;https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations.json?waters=POTSDAMER%20HAVEL,POTSDAM&amp;amp;includeTimeseries=true&amp;amp;includeCurrentMeasurement=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is structured as follows:&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"uuid": "5e10e1e7-9115-4bd7-ad57-e2062f516891",&lt;BR /&gt;"number": "580412",&lt;BR /&gt;"shortname": "POTSDAM",&lt;BR /&gt;"longname": "POTSDAM",&lt;BR /&gt;"km": 26.63,&lt;BR /&gt;"agency": "STANDORT BRANDENBURG",&lt;BR /&gt;"longitude": 13.072071020002,&lt;BR /&gt;"latitude": 52.3998866995299,&lt;BR /&gt;"water": {&lt;BR /&gt;"shortname": "PHv",&lt;BR /&gt;"longname": "POTSDAMER HAVEL"&lt;BR /&gt;},&lt;BR /&gt;"timeseries": [&lt;BR /&gt;{&lt;BR /&gt;"shortname": "W",&lt;BR /&gt;"longname": "WASSERSTAND ROHDATEN",&lt;BR /&gt;"unit": "cm",&lt;BR /&gt;"equidistance": 15,&lt;BR /&gt;"currentMeasurement": {&lt;BR /&gt;"timestamp": "2025-01-28T15:15:00+01:00",&lt;BR /&gt;"value": 102,&lt;BR /&gt;"stateMnwMhw": "normal",&lt;BR /&gt;"stateNswHsw": "unknown"&lt;BR /&gt;},&lt;BR /&gt;"gaugeZero": {&lt;BR /&gt;"unit": "m. ü. NHN",&lt;BR /&gt;"value": 28.434,&lt;BR /&gt;"validFrom": "2019-11-01"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"shortname": "WT",&lt;BR /&gt;"longname": "WASSERTEMPERATUR ROHDATEN",&lt;BR /&gt;"unit": "°C",&lt;BR /&gt;"equidistance": 60,&lt;BR /&gt;"currentMeasurement": {&lt;BR /&gt;"timestamp": "2025-01-28T15:00:00+01:00",&lt;BR /&gt;"value": 4&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"shortname": "LT",&lt;BR /&gt;"longname": "LUFTTEMPERATUR ROHDATEN",&lt;BR /&gt;"unit": "°C",&lt;BR /&gt;"equidistance": 15,&lt;BR /&gt;"currentMeasurement": {&lt;BR /&gt;"timestamp": "2025-01-28T15:15:00+01:00",&lt;BR /&gt;"value": 7.6&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output from the input processor currently looks like this:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"GED_Name": "potsdam_input",&lt;BR /&gt;"uuid": "5e10e1e7-9115-4bd7-ad57-e2062f516891",&lt;BR /&gt;"number": "580412",&lt;BR /&gt;"shortname": "POTSDAM",&lt;BR /&gt;"longname": "POTSDAM",&lt;BR /&gt;"km": 26.63,&lt;BR /&gt;"agency": "STANDORT BRANDENBURG",&lt;BR /&gt;"longitude": 13.072071020001967,&lt;BR /&gt;"latitude": 52.3998866995299,&lt;BR /&gt;"water": "water : PHv,POTSDAMER HAVEL",&lt;BR /&gt;"timeseries": "[timeseries : W,WASSERSTAND ROHDATEN,cm,15.0,currentMeasurement : 2025-01-28T15:15:00,102.0,normal,unknown,gaugeZero : m. ü. NHN,28.434,2019-11-01, timeseries : WT,WASSERTEMPERATUR ROHDATEN,°C,60.0,currentMeasurement : 2025-01-28T15:00:00,4.0,null,null,null, timeseries : LT,LUFTTEMPERATUR ROHDATEN,°C,15.0,currentMeasurement : 2025-01-28T15:15:00,7.4,null,null,null]"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I feed this into a fieldmapper, I get this output:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"GED_Name": "potsdam_output",&lt;BR /&gt;"uuid": "5e10e1e7-9115-4bd7-ad57-e2062f516891",&lt;BR /&gt;"number": "580412",&lt;BR /&gt;"shortname": "POTSDAM",&lt;BR /&gt;"longname": "POTSDAM",&lt;BR /&gt;"km": 26.63,&lt;BR /&gt;"agency": "STANDORT BRANDENBURG",&lt;BR /&gt;"longitude": 13.072071020001967,&lt;BR /&gt;"latitude": 52.3998866995299,&lt;BR /&gt;"water_shortname": "PHv",&lt;BR /&gt;"water_longname": "POTSDAMER HAVEL",&lt;BR /&gt;"timeseries_shortname": "null",&lt;BR /&gt;"timesseries_longname": "null",&lt;BR /&gt;"timeseries_unit": "null",&lt;BR /&gt;"timeseries_equidistance": "null"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I can process the data stream fine up to the array "timeseries", but I can't get the array to work. Can someone help me define the input or output GeoEvent definition for the array?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Nico&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579547#M4265</guid>
      <dc:creator>Nico9</dc:creator>
      <dc:date>2025-01-28T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: GeoEventserver Array in GeoEvent Definition</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579622#M4266</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/720059"&gt;@Nico9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully someone more knowledgeable can chime in as it has been a while since I've used Geoevent Server.&lt;/P&gt;&lt;P&gt;You can use field mapper to flatten the data structure. Use dot notation for nested fields, and index notation for arrays.&lt;/P&gt;&lt;P&gt;Refer to the following resources for more information and examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://enterprise.arcgis.com/en/geoevent/latest/analyze/field-mapper-processor.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/geoevent/latest/analyze/field-mapper-processor.htm&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-blog/json-data-structures-working-with-hierarchy-and/ba-p/889509" target="_blank"&gt;https://community.esri.com/t5/arcgis-geoevent-server-blog/json-data-structures-working-with-hierarchy-and/ba-p/889509&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579622#M4266</guid>
      <dc:creator>TimoT</dc:creator>
      <dc:date>2025-01-28T18:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: GeoEventserver Array in GeoEvent Definition</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579850#M4267</link>
      <description>&lt;P&gt;Hello TimoT,&lt;/P&gt;&lt;P&gt;this a&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-blog/json-data-structures-working-with-hierarchy-and/ba-p/889509" target="_blank"&gt;https://community.esri.com/t5/arcgis-geoevent-server-blog/json-data-structures-working-with-hierarchy-and/ba-p/889509&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the Output GeoEvent definition, you can access the contents of the array by specifying the index.&lt;/P&gt;&lt;P&gt;In my case, this works like this, for example:&lt;/P&gt;&lt;P&gt;timeseries&lt;STRONG&gt;[0]&lt;/STRONG&gt;.unit&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 07:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/geoeventserver-array-in-geoevent-definition/m-p/1579850#M4267</guid>
      <dc:creator>Nico9</dc:creator>
      <dc:date>2025-01-29T07:39:19Z</dc:date>
    </item>
  </channel>
</rss>

