Package for generation of metastructures for Panter project
Project description
ptr-metagen
Python package for creation of metastracture used within the Panther Framework (https://github.com/gisat-panther)
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.0.5.tar.gz
(11.3 kB
view hashes)
Built Distribution
ptrmetagen-1.0.5-py3-none-any.whl
(11.9 kB
view hashes)
Close
Hashes for ptrmetagen-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 664b52511136cb1c80b0bd3949ae2d6fba210f685f9ba3d426a46ea59ce10819 |
|
MD5 | 713cc765bdf6d106da4178bcf2a3436a |
|
BLAKE2b-256 | 81fd7530399cf3f6c3d4e2acacb2ae118e50c64897f26cfa0a172fa32d1e2492 |