Package for generation of metastructures for Panter project
Project description
ptr-metagen
Description
Python package for creation of metastracture used within the Panther Framework (https://github.com/gisat-panther)
Install
pip install ptrmetagen
Exaples
View generation example ... tags and layer template prepared
from metagen.elements import View
from metagen.elements import LayerTemplate, Tag
from metagen.components import Timeline, State, Maps
from metagen.presets import PresetBackgroundMaps, PresetMapSynchronization, PresetMapSettingView
# timeline
time_line = Timeline.set(start='2000-01-01', end='2000-02-01')
time_line.set_timelineLayer_by_layerTemplate(legend=layer_template_1, items=[layer_template_1])
# view
view_comp = ViewComponent(longDescription='test descrioption')
# maps
maps = Maps.set(mapKey='map-1', mapSetKey='map-set-1', activeSetKey='map-set', background=PresetBackgroundMaps.CartoDB_LightNoLabels,
view_setting=PresetMapSettingView.Europe, map_synchronisation=PresetMapSynchronization.AllTrue)
# state
state = State()
state.add_component(time_line)
state.add_component(view_comp)
state.add_maps(maps)
View(nameInternal='test_view',applicationKey='test',nameDisplay='test',description='test description',state=state,tagKeys=[tag])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ptrmetagen-1.3.0.tar.gz
(19.9 kB
view details)
Built Distribution
File details
Details for the file ptrmetagen-1.3.0.tar.gz
.
File metadata
- Download URL: ptrmetagen-1.3.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f254ed599e5df0470b59e34036de0609ad3c23ada5e135687ae5610b1c7a9065 |
|
MD5 | 90c8941d418d1058ef178e7750f485f2 |
|
BLAKE2b-256 | 4c355b985d4c010b3adbec5d3c43fda181256d8241097b29c8ad456434e808c9 |
File details
Details for the file ptrmetagen-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: ptrmetagen-1.3.0-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1fa7c82c2000ceb6d2a127b0a3da897f1bdff1f1f10e12680091ce84c95f331 |
|
MD5 | b9dcab99f38a4ef181ec8c90ab657a04 |
|
BLAKE2b-256 | 4c90f03619cad6416c422da1313effbd575856fa1b7cd263cf7d0101d4d18bda |