I am trying to figure out how to create a Definition query and run some code against those records
How do I create the Definition Query from the species name passed to this function?
Points = r"E:/xyz/ArcGIS/Projects/UserFrontEnd/xyz@server.sde/TestLocations"
def unique_values(table, field):
species = field
expressionValue = "common_name = '{}'".format(species)
# CREATE DEFINTION QUERY FOR COMMON_NAME
Points Feature Class EQUAL TO the ExpressionValue
# RUN SOME CODE AGAINST THE RESULTING RECORDS FROM THE DEFINITION QUERY
Grab the resulting Point records and do something