qgreenland/util/qgis.py
def _build_dataset_description(layer_cfg):
    """Return a string representing the layer's dataset description."""
    dataset_description = ''

    dataset_metadata = layer_cfg['dataset']['metadata']
    dataset_description += dataset_metadata['title']

    if abstract := dataset_metadata.get('abstract'):
        dataset_description += '\n\n'
        dataset_description += abstract

    return dataset_description
Return a string representing the layer's dataset description.
Return a string representing the layer's dataset description.
Return a string representing the layer ' s dataset description .
def _build_dataset_description(layer_cfg):
    dataset_description = ''
    dataset_metadata = layer_cfg['dataset']['metadata']
    dataset_description += dataset_metadata['title']
    if abstract := dataset_metadata.get('abstract'):
        dataset_description += '\n\n'
        dataset_description += abstract
    return dataset_description
def _build_dataset_description ( layer_cfg ) : dataset_description = '' dataset_metadata = layer_cfg [ 'dataset' ] [ 'metadata' ] dataset_description += dataset_metadata [ 'title' ] if abstract := dataset_metadata . get ( 'abstract' ) : dataset_description += '\n\n' dataset_description += abstract return dataset_description
Return a string representing the layer's dataset description.
Return a string representing the layer ' s dataset description .
"""Return a string representing the layer's dataset description."""
layer_cfg