Trying to print out a polygon shapefile in WKT format in a standalone script. I am using ArcGIS 10.1 and use the da modules all the time. I have seen this post Converting geometry to WKT using ArcPy? and have copied and pasted that code to use on my polygon shapefile and it does not work. The error I get is
RuntimeError: unknown geometry token 'SHAPE@WKT' import arcpy arcpy.env.workspace = "C:\\Users\\Ralph\\Desktop\\sql" shp = "C:\\Users\\Ralph\\Desktop\\sql\\states2.shp" for row in arcpy.da.SearchCursor(shp, ["SHAPE@WKT"]): print row
I know it is mentioned in the above post that this token was made available for service pack 1. I am starting to think I do not have service pack 1 nor do I know how to check if I have it. I plan on reading this polygon in a easy format so I can import it using psycopg2 to postgreSQL. Is there another way to read polygon geometries for this task only by using Arcpy?