Select to view content in your preferred language

JSON input without WKID - NOT in WGS84

2618
2
05-27-2014 12:51 AM
by Anonymous User
Not applicable
Original User: sindreng

Hallo!

I'm using the "Poll an external website for JSON" inbound connector.
The Spatial Reference in the JSON objects is WKID 25833, but unfortunately the JSON objects don't have a WKID field.

[ATTACH=CONFIG]34095[/ATTACH]

I have set the X and Y coordinates in the settings og the inbound connector, but I need to set the WKID, which I don't have in the input. Can I set this manually somehow?
I'm trying to update a FC as the output, but it's not working since it thinks that the SR is WGS84.

[ATTACH=CONFIG]34096[/ATTACH]

I have added a Geometry field in the GeoEvent Definition used for the output, so that is not the problem.

[ATTACH=CONFIG]34097[/ATTACH]

Thanks for helping out a forum newbie 🙂
0 Kudos
2 Replies
RJSunderman
Esri Regular Contributor
Hello Sindre -

If the event data being brought into GeoEvent Processor includes coordinate values as attributes, and you want an inbound connector (e.g. TCP/Text or HTTP/JSON) to construct a geometry from the event attributes, the event must include a field which contains the WKID of the coordinate system associated with the event's coordinates.

In your case, since the event coordinates are expressed in the "ERTS UTM Zone 33N" spatial reference (WKID: 25833), but that value has not been specified as an event attribute, you will need to use a Field Calculator processor to build a JSON string which a second processor, a Field Mapper, can then map into a field whose data type is Geometry.

An example of this is included in the recently reworked Introduction to GeoEvent Processor tutorial. The exercise you are looking for is in the appendix and is titled:  Using a Field Calculator Processor to compute a Geometry.

The tutorial can be found on our Product" rel="nofollow" target="_blank">http://links.esri.com/geoevent-gallery]Product Gallery. Here's a direct link:  Introduction" rel="nofollow" target="_blank">http://www.arcgis.com/home/item.html?id=265c334a47994dc... to GeoEvent Processor.

Hope this information helps -
RJ

P.S.  You might also want to take a look at the following forum thread:  Converting" rel="nofollow" target="_blank">http://forums.arcgis.com/threads/109721-Converting-Lat-Lo... Lat/Long Coordinates in JSON Feed to Geometry.  I noticed that your data provider has formatted the JSON as an embedded list of lists ... you will need to specify some very specific syntax in order to reach into each event's JSON to retrieve the event values utm33x and utm33y.
0 Kudos
by Anonymous User
Not applicable
Original User: sindreng

Thanks for the help RJ!

The example in the tutorial worked great!

Best regards
Sindre
0 Kudos