for reasons I don't understand, geometry.GetPoints() doesn't work in my newest gdal/ogr installation???, so I've applied a fix.