POST
|
Hi, Thanks for your answer but it seams like you have been using the ArcGIS desktop Field Calculator (right?) and I needed help with the ArcGIS GeoEvent Extension Field Calculator Processor. I might have been a little bit unclear in my question... Although I solved the problem by using the ArcGIS GeoEvent SDK and made a Processor in Java based on the samples that are provided with the SDK.
... View more
12-15-2015
01:49 PM
|
0
|
2
|
1948
|
POST
|
Hi, I would like to create polygons from a field in my GeoEvent Definition called Polygon. The data is formatted like this: "57.71127941662247,12.523986568755383 57.635773125999144,12.45961803332399 57.576614311073236,12.436624888552302 57.71127941662247,12.523986568755383" Ie latitude1,longitude1 latitude2,longitude2 ... latitudeN,longitudeN I would like it to be: ”[[12.523986568755383, 57.71127941662247],[12.45961803332399, 57.635773125999144],[12.436624888552302, 57.576614311073236], [12.523986568755383, 57.71127941662247]] Ie [[longitude1, latitude1], [longitude2,latitude2], ... [longitudeN,latitudeN]] And then map the string to a Geometry field. Is it possible to construct Regular Expressions in Field calculator to switch the positions of lat and long in a string? I am not very familiar with RegEx so any help are appriciated. Having a projection similar to WGS84 but with the latitude coordinat in the first positon and longitude in the second position would be another option but I dont know if it exists? Edited by RJ Sunderman: You can work with an event field as a String and use a GeoEvent Field Calculator to add information such as spatial reference to produce a JSON String representation of a Geometry. Look for additional detail on working with Geometries in GeoEvent in 'Appendix A' of the GeoEvent Extension Introduction tutorial. Look for the section titled "Using a Field Calculator Processor to compute a geometry". Unfortunately, the regular expression support extended by GeoEvent does not support the concept of back references. So you won’t be able to pattern match \([0-9][0-9.]*\)\([0-9][0-9.]*\) and replace the pattern with \2\1 to swap the latitude and longitude. Developing a custom processor using the SDK is probably a better approach than trying to do this using out-of-the-box functionality. Update 31-March-2016 - RJ Sunderman: Thanks go to Maarten Tromp for his comments in the thread Swap coordinate pairs in a Polygon It is indeed possible to use RegEx back references to swap the latitude and longitude values if you use the correct syntax. Within a GeoEvent Field Calcualtor you would use $2$1 (not \2\1 as I originally tried).
... View more
12-11-2015
03:39 AM
|
0
|
5
|
9189
|
POST
|
I think it would be possible. Have a look at the section "Using a Field Calculator Processor to compute a geometry" in Appendix 1 to Tutorial - Introduction to GeoEvent which you can download from here: http://www.arcgis.com/home/group.html?owner=GeoEventTeam&title=ArcGIS%20GeoEvent%20Gallery&content=all&start=1&q=tutoria… Basicly it would be possible to make a string formatted with your polyline coordinates (similar to how they do with points in the exampe) and then map the field to a geometry using the Field Mapper. I am about to start testing this myself now but have some other problems to solve but I will create another thread about that.
... View more
12-11-2015
03:25 AM
|
1
|
0
|
665
|
POST
|
Further detalis: It seems like the error stops further processing when I am using the connector to "Push Text to an External TCP Socket". When I changed output to a JSON-file I can at least process the data but the errors are still present in the log-files.
... View more
12-10-2015
07:28 AM
|
0
|
2
|
966
|
POST
|
Im trying to Get JSON-data from http://opendata-download-warnings.smhi.se/api/alerts.json using the “Poll an External Website for JSON”- connector. But as soon as I start reading data I get an error in the log-files before I even have the possibility to use any processors. The error message looks like this: Unable to parse date: Sat, 05 Dec 2015 21:09:21 GMT. java.text.ParseException: Unparseable date: "Sat, 05 Dec 2015 21:09:21 GMT" at
java.text.DateFormat.parse(DateFormat.java:357)[:1.7.0_76] at
com.esri.ges.transport.http.LastModifiedToDateFormatter.toDate(LastModifiedToDateFormatter.java:26)[272:com.esri.ges.framework.transport.http-transport:10.3.1] at
com.esri.ges.transport.http.HttpInboundTransport.onReceive(HttpInboundTransport.java:541)[272:com.esri.ges.framework.transport.http-transport:10.3.1] at
com.esri.ges.transport.http.HttpInboundTransport.getData(HttpInboundTransport.java:242)[272:com.esri.ges.framework.transport.http-transport:10.3.1] at
com.esri.ges.transport.http.HttpInboundTransport$WorkerThread.run(HttpInboundTransport.java:127)[272:com.esri.ges.framework.transport.http-transport:10.3.1] The date format I am trying to read is formatted like this: 2015-12-05T21:09:29+01:00 How do I avoid the errors? Im running GeoEvent Exteniosn ver 10.3.1 on Windows Server 2012 R2 Standard.
... View more
12-07-2015
12:44 AM
|
1
|
3
|
4613
|
POST
|
Found it! Download a zip-file from here: http://www.arcgis.com/home/group.html?owner=GeoEventTeam&title=ArcGIS%20GeoEvent%20Gallery&content=all&start=1&q=tutoria…
... View more
11-24-2015
08:56 AM
|
0
|
0
|
932
|
POST
|
In the pdf-file it points to some files in a tcp-server-app folder. I can´t find those files on my server. Does anyone know where to download them?
... View more
11-24-2015
08:00 AM
|
0
|
1
|
932
|
Title | Kudos | Posted |
---|---|---|
1 | 12-11-2015 03:25 AM | |
1 | 12-07-2015 12:44 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|