TerraME / terrame

TerraME is a programming environment for spatial dynamical modelling
www.terrame.org
GNU Lesser General Public License v3.0
35 stars 13 forks source link

Cell with no parent when loading CellularSpace from shapefile #2370

Open pedro-andrade-inpe opened 3 years ago

pedro-andrade-inpe commented 3 years ago

When loading a CellularSpace from a shapefile, the Cells do not have attribute parent. Fix it.

cs = CellularSpace{xdim = 10}

print(cs.cells[1].parent) -- OK

cs = CellularSpace{file = filePath("amazonia.shp")}

print(cs.cells[1].parent) -- nil