Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite8beb5604c

README.md

core.raster.remove_layer (procNode)

Remove a named layer from a raster.

Built from a point-class column removal on the raster's layers.

Inputs

  • raster (Raster). The raster shortened.
  • name (String). Default "". The layer removed.

Outputs

  • raster: the raster without the layer.

Example

local raster = g.core.raster.new({ size = { x = 8, z = 8 }, resolution = 1, layers = { "height" } })
local bare = g.core.raster.remove_layer({ raster = raster, name = "height" })

bare.layers holds no column.