I have created one script which set a defination query at certain location in script.
lyr.definitionquery = "some expression"
After running the script i want to remove the definition query . But not getting any hint to do it.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Just clear that property:
lyr.definitionQuery = None
None is the python for
NULL, so making it = None will clear the query.
I use an empty string to clear a definition query from a layer:
lyr.definitionQuery = ""