gws.gis.source

class gws.gis.source.SourceStyle(*args, **kwargs)[source]
is_default = False
legend = ''
meta = None
name = ''
class gws.gis.source.SourceLayer(*args, **kwargs)[source]
data_source = {}
supported_crs = []
supported_bounds = []
is_expanded = False
is_group = False
is_image = False
is_queryable = False
is_visible = False
layers = []
meta = None
name = ''
title = ''
opacity = 1
scale_range = []
styles = []
legend = ''
resource_urls = {}
a_path = ''
a_uid = ''
a_level = 0
class gws.gis.source.LayerFilter(*args, **kwargs)[source]

Layer filter

level = 0

use layers at this level

names = None

use these layer names (top-to-bottom order)

pattern = ''

use layers whose full path matches a pattern

gws.gis.source.layer_matches(sl: gws.types.SourceLayer, slf: gws.gis.source.LayerFilter) → bool[source]

Check if a source layer matches the filter

gws.gis.source.filter_layers(layers: List[gws.types.SourceLayer], slf: gws.gis.source.LayerFilter, image_only=False, queryable_only=False) → List[gws.types.SourceLayer][source]

Filter source layers by the given layer filter.

gws.gis.source.image_layers(sl: gws.types.SourceLayer) → List[gws.types.SourceLayer][source]
gws.gis.source.bounds_from_layers(source_layers: List[gws.types.SourceLayer], target_crs) → gws.types.Bounds[source]

Return merged bounds from a list of source layers in the target_crs.

gws.gis.source.crs_from_layers(source_layers: List[gws.types.SourceLayer]) → List[str][source]

Return an intersection of crs supported by each source layer.