Tagged Questions
5
votes
2answers
373 views
Why does this simple Python OGR code create an empty polygon?
Please excuse my ignorance...I am new to Python OGR.
I am trying to create a simple square polygon and fail...this produces an empty polygon.
Where did I go wrong?
from osgeo import ogr
driver = ...
3
votes
1answer
358 views
How to programatically populate a shapefile field with polygon areas in OGR?
I'm trying to programatically populate a shp field with polygon areas:
import sys
import ogr
ds = ogr.Open( 'tttttttttt.shp', update = 1 )
if ds is None:
print "Open failed./n"
sys.exit( 1 ...