They contour values can be the same but they don't need to be the same. In the screen shot below, you can see the contour lines in the lower part of the image are very dense compared to the upper part of the image. The "dense" contours are 10 foot intervals and the less dense intervals are 33 foot intervals.
Is it possible to modify the method below where it reads
if row[0] == 2:
and instead use something to indicate the extra rows in the table?
The following is the preferred method (ArcGIS version > 10.1) for deleting specific rows using the deleteRow()
method and the da
data access module:
import arcpy shp = r'C:\path\to\your\shapefile.shp'with arcpy.da.UpdateCursor(shp, "some_field") as cursor: for row in cursor: if row[0] == 2: cursor.deleteRow()