I've created a polygon from a raster dataset:
arcpy.RasterToPolygon_conversion(RasterInt, "C:/arc/poly_int.shp", "NO_SIMPLIFY", "Value")
The 'value' field has numbers 1-37, which map to the ID field in the output polygon shapefile feature class.
Now I would like to select points that lay within certain polygons (e.g. delineated by ID). Using the SelectLayerByLocation_management
tool only selects points inside all the polygons. How to a define a criteria?
Alternative approach: How do I create multiple polygons from the main polygon, using the ID field?
I'm looking for solutions in Python -- not necessarily using arcpy but I do have it.