Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Editing shapefile with Python

$
0
0
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?

Thanks

Viewing all articles
Browse latest Browse all 2485

Trending Articles