||Uses the pyconizer lib to create images out of the OEREB server configuration. It is creating symbols for|
create_legend_entries_in_standard_db(config, topic_code, temp_creation_path="/tmp/pyconizer", language="de", section="pyramid_oereb", image_format="image/png", image_height=36, image_width=72, encoding=None)¶
Uses the pyconizer lib to create images out of the OEREB server configuration. It is creating symbols for a dedicated topic. This function will clean all previously created icons from database.
config (str): The path to the used OEREB server configuration YAML file. topic_code (str): The topic code for which the symbols should be created. It must be configured inthe passed yml.
temp_creation_path: The path where the images are created in. language: The language which is used to produce the WMS rules. This is a tricky part. You mustprovide the language your WMS is using.
section: The section which the config can be found in the yml. image_format: The image format. This is passed throug to the WMS request. You need to provide aformat your WMS is supporting here.
image_height: The height of the produced image. image_width: The width of the produced image. encoding (str or unicode): The encoding which is used to encode the XML. Standard is None. This meansthe encoding is taken from the XML content itself. Only use this parameter if your XML content has no encoding set.