|
POST
|
Heather, Fantastic! I am very glad you figured it out. In general, I like writing all my outputs to a TCP socket (see my suggestion above https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3Db6a35042effd44ceab… ) is a good way to troubleshoot your outputs. For parsing out your additional fields from this string (if matches exactly): <![CDATA[20 / 07 / 2017 10: 37: 01 < br / > Lat / Lng: 46.174067,-65.886867 < br / > Speed: 0.6 kph < br / > Altitude: 11.0 m < br / > Heading: 314 & deg; < br / >]] > Speed Pattern: (?<=Speed: )[^*]*(?= kph) Altitude Pattern: (?<=Altitude: )[^*]*(?= m) Heading Pattern: (?<=Heading: )[^*]*(?= &) Here is my TCP socket output, you can see Speed (0.9), Altitude (11) and Heading (314) written at the end of my output GeoEvent Definition: These regular expressions parse through that string okay. You might need to investigate the data coming in to ensure the trailing end of those expressions are general enough to catch all specific permutations. Either way, that should put you down the path of figuring out what exactly you need (if the string changes). ~Alex
... View more
07-25-2017
12:46 PM
|
2
|
1
|
1357
|
|
POST
|
Anne, If you run just the snippet you posted, the values are getting created at (-199.822388, 50.44989)? What is the output coordinate system of the target feature class? ~Alex
... View more
07-24-2017
12:41 PM
|
1
|
1
|
2942
|
|
POST
|
Rohit, Do you have to export your new data to a csv? Can you connect directly to your geodatabases using the Python API? Definitely easier utilizing just the ArcGIS API, but I can see numerous occasions where users would want to update directly from their authoritative databases. ~Alex
... View more
07-24-2017
10:22 AM
|
2
|
1
|
8306
|
|
POST
|
Patrick, If you utilize the Python API from an IDE and pull in ArcPy functions as well, you can utilize adding/editing features: Editing features | ArcGIS for Developers You just need to create loop through your feature class to grab the pertinent attributes, format them for the ingestion into the Python API. Definitely possible. ~Alex
... View more
07-24-2017
10:11 AM
|
2
|
2
|
8306
|
|
POST
|
Mitch gives a great example above -- it is really important to close your cursor: del cursor
If you do not, then you will have a persistent lock on the data.
... View more
07-24-2017
07:47 AM
|
0
|
1
|
5403
|
|
POST
|
Vinicius, I created a tool box here: D:\Toolbox I created a tool set named "Tools" and I added a simple script to the toolbox and named it "test2." Here is the syntax that opens that script in a GP dialog: import arcpy
import pythonaddins
pythonaddins.GPToolDialog(r'D:\Toolbox.tbx','test2') ~Alex
... View more
07-24-2017
07:39 AM
|
1
|
0
|
1395
|
|
POST
|
Anne, You are adding the point through the cursor, then calculating the values of the POINT_X, and POINT_Y fields correct? I would look at your precision and scale values for these fields. You need to make sure these fields are: Type: DOUBLE Precision: 9 Scale: 6 I used your coordinates and input them through your cursor in a test feature class, then I calculated my field values in these two columns and they returned the coordinates exactly. The coordinates are being written correctly as the geometry. However, if you scale and precision are off, when you calculate these other fields directly the coordinates will round based on your precision/scale. ~Alex
... View more
07-21-2017
12:48 PM
|
0
|
3
|
2942
|
|
POST
|
Heather, That is great news! For the "Coords", assuming that is exactly how that field is being ingested: Pattern: (?<=,)[^,]*(?=,) You can definitely parse through the more complicated field that has speed, altitude, etc. Can you post a sample xml with the more complicated field included? ~Alex
... View more
07-19-2017
07:02 AM
|
0
|
5
|
1357
|
|
POST
|
Hi Heather, I am sorry to hear that you are having trouble. Can you please paste some screenshots of: 1. GeoEvent definitions (input and output) 2. Services (including any processor details like your field mapper). Feel free to include any other details. Hopefully we can get you a resolution rather quickly! ~Alex
... View more
07-18-2017
02:22 PM
|
0
|
7
|
1357
|
|
POST
|
Here is a good resource: How To: Convert an Oracle SDO attribute to an st_geometry attribute ~Alex
... View more
07-17-2017
08:29 AM
|
0
|
1
|
1030
|
|
POST
|
Michael, Try using: "*.jpg" Instead of just: ".jpg" Here is the updated line: arcpy.GenerateAttachmentMatchTable_management(Fleetdata, folder[0], Matchtable, "RadioCall", "*.jpg", "RELATIVE") Also, this thread discusses this tool: Generate Attachment Match Table - Python script issue ~Alex
... View more
07-11-2017
02:03 PM
|
0
|
0
|
1207
|
|
POST
|
Travis, You should be able to utilize the regular help to figure it out, especially if you have been all the way through Geog 485 Programming & Automation! Is Jim Detwiler still teaching this class? Accessing data using cursors—Help | ArcGIS Desktop InsertCursor—Help | ArcGIS Desktop Python arcpy.da.InsertCursor how to create a newRow() ~Alex
... View more
07-11-2017
01:44 PM
|
1
|
0
|
2905
|
|
POST
|
Just glad we could help you out! Now you have a lot of options. ~Alex
... View more
07-10-2017
11:55 AM
|
1
|
1
|
661
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-05-2017 12:16 PM | |
| 1 | 07-28-2017 09:26 AM | |
| 1 | 03-15-2017 01:44 PM | |
| 1 | 11-11-2016 12:00 PM | |
| 1 | 11-11-2016 11:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|