From 28265964e8e03cc7d7affef34ee4323cbf0a7109 Mon Sep 17 00:00:00 2001 From: Rodrigo Avancini Date: Fri, 14 Jul 2017 14:49:41 -0300 Subject: [PATCH] Fix #1925 - nc test error in Windows. --- .../base/tests/functional/basics/CellularSpace.lua | 3 ++- packages/gis/tests/nc/basic/Layer.lua | 14 +++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/base/tests/functional/basics/CellularSpace.lua b/packages/base/tests/functional/basics/CellularSpace.lua index 923aba29..0ec77155 100644 --- a/packages/base/tests/functional/basics/CellularSpace.lua +++ b/packages/base/tests/functional/basics/CellularSpace.lua @@ -422,7 +422,8 @@ return{ layer = gis.Layer{ project = proj, name = layerName1, - file = filePath1 + file = filePath1, + epsg = 4326 } cs = CellularSpace{ diff --git a/packages/gis/tests/nc/basic/Layer.lua b/packages/gis/tests/nc/basic/Layer.lua index 090db7a6..7f5bfae1 100644 --- a/packages/gis/tests/nc/basic/Layer.lua +++ b/packages/gis/tests/nc/basic/Layer.lua @@ -37,7 +37,8 @@ return { Layer { project = proj, name = layerName1, - file = filePath("test/vegtype_2000.nc", "gis") + file = filePath("test/vegtype_2000.nc", "gis"), + epsg = 4326 } local filePath1 = "vegtype_cells_nc_basic.shp" @@ -78,7 +79,8 @@ return { local l = Layer { project = proj, name = vegType, - file = filePath("test/vegtype_2000.nc", "gis") + file = filePath("test/vegtype_2000.nc", "gis"), + epsg = 4326 } unitTest:assertEquals(l:representation(), "raster") -- SKIP @@ -101,7 +103,8 @@ return { local l = Layer { project = proj, name = vegType, - file = filePath("test/vegtype_2000.nc", "gis") + file = filePath("test/vegtype_2000.nc", "gis"), + epsg = 4326 } unitTest:assertEquals(l:bands(), 1) -- SKIP @@ -125,11 +128,12 @@ return { local l = Layer { project = proj, name = layerName1, - file = filePath("test/vegtype_2000.nc", "gis") + file = filePath("test/vegtype_2000.nc", "gis"), + epsg = 4326 } unitTest:assertEquals( -- SKIP -tostring(l), [[epsg number [0] +tostring(l), [[epsg number [4326] file string [vegtype_2000.nc] name string [Vegtype_layer] project Project