BritishSteel

Creating Point Feature Class from Fields in Table

Discussion created by BritishSteel on Nov 14, 2013
Latest reply on Nov 14, 2013 by BritishSteel
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:

[ATTACH=CONFIG]29125[/ATTACH]

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:

cursor = arcpy.da.InsertCursor("E:/Redlands/MIP/Files/Twitter.gdb/TweetTable4", ("DateRun", "Username", "GeoEnabled", "Coordinates", "Latitude", "Longitude", "PostTime", "Tweet"))


Any advice is appreciated. Thank you!

Attachments

Outcomes