I use python and GDAL under apache to make a webservice.
I have a GeoTIFF file and i want only a subset of the data, everything inside one polygon defined by a buffer of a line (coord is the input parameter of the service):
line = ogr.Geometry(ogr.wkbLineString)
for i in range(len(coord)):
line.AddPoint(coord[i][0], coord[i][1])
line.Transform(coordTransform)
polygon = ogr.Geometry(ogr.wkbPolygon)
polygon = line.Buffer(10.0, 2)
I find only solutions with shapefile, not with programmatically created geometries. Any help?