package documentation

Undocumented

From __init__.py:

Class LayerFilter Source layer filter
Function check_layers Insert our properties in the source layer tree.
Function combined_crs_list Return an intersection of crs supported by each source layer.
Function filter_layers Filter source layers by the given layer filter.
Function layer_matches Check if a source layer matches the filter
def layer_matches(sl: gws.SourceLayer, f: LayerFilter) -> bool: (source)

Check if a source layer matches the filter

def check_layers(layers: list[gws.SourceLayer], revert: bool = False) -> list[gws.SourceLayer]: (source)

Insert our properties in the source layer tree.

Also remove empty layers.

Parameters
layers:list[gws.SourceLayer]List of source layers
revert:boolRevert the order of layers and sub-layers.
Returns
list[gws.SourceLayer]Undocumented
def filter_layers(layers: list[gws.SourceLayer], slf: LayerFilter = None, is_group: bool = None, is_image: bool = None, is_queryable: bool = None, is_visible: bool = None) -> list[gws.SourceLayer]: (source)

Filter source layers by the given layer filter.

def combined_crs_list(layers: list[gws.SourceLayer]) -> list[gws.ICrs]: (source)

Return an intersection of crs supported by each source layer.