gemgis.utils.create_surface_color_dict
gemgis.utils.create_surface_color_dict#
- gemgis.utils.create_surface_color_dict(path: str) dict #
Creating GemPy surface color dict from a QML file
- Parameters
path (str) – Path to the qml file, e.g.
qml_name='style.qml'
- Returns
surface_color_dict – Dict containing the surface color values for GemPy
- Return type
dict
New in version 1.0.x.
Example
>>> # Loading Libraries and File >>> import gemgis as gg >>> surface_colors_dict = gg.utils.create_surface_color_dict(path='style.qml') >>> surface_colors_dict {'Sand1': '#b35a2a', 'Sand2': '#b35a2a', 'Ton': '#525252'}
See also
build_style_dict
Building style dictionairy from loaded style file
parse_categorized_qml
Reading the contents of a QGIS Style file (qml)
load_surface_colors
Loading surface colors as list