I have a .csv file with 3 fields: lat, long, and value. I'd like to create a Thiessen Polygon raster from this file in Python without creating intermediate datasets. Here's what I have:
# Create layer from points arcpy.MakeXYEventLayer_management(points_file, 'lon', 'lat', "points_lyr", arcpy.SpatialReference(4326)) # Make polygons arcpy.CreateThiessenPolygons_analysis("points_lyr", "tp", "ALL") # Rasterize PolygonToRaster_conversion("points_lyr", "grid_id", "weather_grid")
This fails at step 2, raising the following error:
arcgisscripting.ExecuteError: ERROR 000339: Input points_lyr does not have OIDs Failed to execute (CreateThiessenPolygons).
Is it possible to create Thiessen polygons without first converting "points_lyr" into a shapefile?