> myElevation = myFeature.GetGeometryRef().getZ(0) > ----------- > > But I get an "AttributeError: getZ" error when executing it.
The method name is GetZ(). And due to how the memory management of the python bindings work, I'd encourage you storing the geometry in a temporary variable before calling GetZ() myGeom = myFeature.GetGeometryRef() myElevation = myGeom.GetZ() _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
