getLayerById

pyslm.geometry.getLayerById(layers, layerId)

Finds the Layer within a list given an id

Parameters:
  • layers (List[Layer]) – The list of layers to search

  • layerId (int) – The layer id to find

Return type:

Layer

Returns:

If found the layer or None