Posted By

lottegis on 08/19/14


gis arcpy

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Get unique field values

 / Published in: Python

To be used in the Python palette window.

  1. fieldName = ""
  2. namesList = sorted(set((row.getValue(fieldName) for row in arcpy.SearchCursor(r'',fields=fieldName))))
  3. for x in namesList:
  4. print x

Report this snippet  

You need to login to post a comment.