jonmagnar

Something VERY strange.. bug?

Discussion created by jonmagnar on Nov 17, 2011
Latest reply on Nov 17, 2011 by jonmagnar
I have a shape file (can be found here: http://www.npd.no/engelsk/cwi/pbl/en/factmap/download/csvwkt/prlArea.zip)

I want to delete all rows where "CURR_AREA" is 'ACTIVE'

import arcpy
from arcpy import env
cur = arcpy.UpdateCursor("D:/v_geo_prlarea_shape_download.shp",'"CURR_AREA"=\'ACTIVE\'')
for row in cur:
cur.deleteRow(row)
del cur, row


The delete is sucessfull but values in existing fields are changed. One example can be the one row with "IS_STRAT"='NO' and "IDLICENCE"=34512. After the script, the content of these two fields are "IS_STRAT"=' N' and "IDLICENCE"=0

Anyone got any idea what this can be?

Outcomes