Select to view content in your preferred language

Parsing Errors with GEOJSON inputs

611
1
05-05-2021 12:26 PM
BrandonWalls
New Contributor

Greetings community,

Using ArcGIS Enterprise 10.8.1, I am attempting to ingest files containing sensor data. This data is generated by an external application in geojson format. I have attempted to use folder monitoring and polling an external website to retrieve the file, but it fails to generate events from the file.

A sample file is below:

{
	"type": "FeatureCollection",
	"features": [
		{
			"type": "Feature",
			"geometry": {
				"type": "Point",
				"coordinates": [
					"-85.585024",
					"36.097554",
					"957.0"
				]
			},
			"properties": {
				"project": "Real-Time Measurements",
				"affiliation": "Univ",
				"site": "FWR3-Site",
				"site_id": 7,
				"instrument": "Ditty-LTE",
				"instrument_id": 17,
				"measurements_in_file": 1,
				"data": [
					{
						"time": "2021-05-05T15:44:34Z",
						"test": "false",
						"vars": [
							{
								"variable_name": "WaterLevel1",
								"variable_shortname": "WL1",
								"units": "in.",
								"value": 109.05517999999999
							},
							{
								"variable_name": "Battery",
								"variable_shortname": "B",
								"units": "%",
								"value": 87.35
							},
							{
								"variable_name": "WaterLevel3",
								"variable_shortname": "WL3",
								"units": "in.",
								"value": 109.07
							},
							{
								"variable_name": "WaterLevel2",
								"variable_shortname": "WL2",
								"units": "in.",
								"value": 107.33103
							}
						]
					}
				]
			}
		}
	]
}

It seems to have some difficulty creating a definition on its own. Even if I let it create the definition, events are not created. So I configured this geoevent definition:

BrandonWalls_0-1620241966468.png

 

I enabled debug logging, and it seems that it is hanging up on parsing the file. I've attached that section of the log file, as well as a text version of the geojson file.

I've run out of things to check. Any ideas?

Thanks!

Brandon

0 Kudos
1 Reply
JonEmch
Esri Regular Contributor

Hello Brandon,

   Did you try to flatten the definition with the field mapper? GeoEvent has a "tenuous" relationship with non-flattened definitions. Let me know how this goes for you!

Keep on keeping on!
0 Kudos