Closed avancinirodrigo closed 8 years ago
Did you replace the name of the arguments for CellularSpace (such as dbType) to the newest version?
Yes, but the error persists.
Wrong execution, got error: '...rame/bin/packages/base/tests/database/basics/Society.lua:65: Error: Not enough information to build the CellularSpace.'.
Which arguments loadShape takes? It seems that none!
registerCellularSpaceDriver{
source = "shp",
load = loadShape,
check = checkShape
}
local function loadShape(self)
local tlib = terralib.TerraLib{}
local dSet = tlib:getShpByFilePath(self.file)
setCellsByTerraLibDataSet(self, dSet)
end
So it should be
registerCellularSpaceDriver{
source = "shp",
load = loadShape,
compulsory = "file",
check = checkShape
}
isn't it?
Not yet.
Use the same strategies of CellularSpace to create a Society when using geospatial data. Call TerraLib directly without passing by CellularSpace.
The test in database/Society break after to change to terralib:
I have been thinked that it was happened because load shape was not implemented yet, but after implementation, it still do not work. There is not shape handle in Society. Only this code below exists associeted to CellularSpace.
I didn't change because I don't know about the behavior. @pedro-andrade-inpe would you have some solution?