Hi everyone one,
I wrote a script that searches Tweets and writes them to a table in a geodatabase. I got this to work finally, and now I would like to map out the tweets that have a location attached to them.
As you can see in the following screenshot, I have a latitude and longitude field already:
Attachment 29125
What would be the best approach to use these two fields and create a point feature class? I initially was thinking about Add XY, but I do not think that works with my data. I stumbled upon tokens (SHAPE@XY, for instance), and I was wondering if that might be what I need to implement.
Here is my current cursor in case that helps:
Any advice is appreciated. Thank you!
I wrote a script that searches Tweets and writes them to a table in a geodatabase. I got this to work finally, and now I would like to map out the tweets that have a location attached to them.
As you can see in the following screenshot, I have a latitude and longitude field already:
Attachment 29125
What would be the best approach to use these two fields and create a point feature class? I initially was thinking about Add XY, but I do not think that works with my data. I stumbled upon tokens (SHAPE@XY, for instance), and I was wondering if that might be what I need to implement.
Here is my current cursor in case that helps:
Code:
cursor = arcpy.da.InsertCursor("E:/Redlands/MIP/Files/Twitter.gdb/TweetTable4", ("DateRun", "Username", "GeoEnabled", "Coordinates", "Latitude", "Longitude", "PostTime", "Tweet"))