AnsweredAssumed Answered

Editing shapefile with Python

Question asked by joao123456 on Apr 11, 2014
Latest reply on Apr 17, 2014 by joao123456
I'm new here at the Forum and I tried looking for something like my problem, and I got nothing. If there is something, please, forgive me.

I have a binary polygon shapefile, with a feature called GRIDCODE with 0s and 1s for earch polygon.
I want to edit this shapefile and delete every polygon with the number 1. In other words, I want only the polygons with GRIDCODE number 0 in my shapefile. To do that in Editor mode is quite simple, but I want to do it through a python code. Does anymore here know how to do it?