From 6cd20ec943649c50fa2de354473b9bd99165fcdd Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 10 Oct 2016 00:56:37 -0700 Subject: [PATCH] Fix AttributeError in export command line This is a partial fix for #235 --- worldengine/imex/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldengine/imex/__init__.py b/worldengine/imex/__init__.py index 8d83cd32..b3c41fbe 100644 --- a/worldengine/imex/__init__.py +++ b/worldengine/imex/__init__.py @@ -92,7 +92,7 @@ def export(world, export_filetype = 'GTiff', export_datatype = 'float32', path = raise TypeError("Type of data not recognized or not supported by GDAL: %s" % export_datatype) # massage data to scale between the absolute min and max - elevation = numpy.copy(world.elevation['data']) + elevation = numpy.copy(world.layers['elevation'].data) # shift data according to minimum possible value if signed: