-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add demo files and data * regnerating with the right library (untie) * using relative path in config.json * launch basic demo (`tie_demo`) --------- Co-authored-by: Monnerat Marc swisstopo <[email protected]>
- Loading branch information
1 parent
3336e57
commit 8b628d0
Showing
21 changed files
with
255 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.9 | ||
0.4.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
toolbox/tietoolbox/data/cache/Bedrock_HARMOS_lt40000_Extract.geojson
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs,crs:EPSG::2056,crs:EPSG::5729" } }, | ||
"features": [ | ||
{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 2587200.0, 1165920.0 ], [ 2587200.0, 1166900.0 ], [ 2588800.0, 1166900.0 ], [ 2588800.0, 1165920.0 ], [ 2587200.0, 1165920.0 ] ] ] } } | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "Stierenberg", | ||
"Lines": { | ||
"source": "geocover.gdb.zip", | ||
"layer": "Linear_Objects", | ||
"attribute": "KIND" | ||
}, | ||
"bbox": [ | ||
2587200.0, | ||
1165920.0, | ||
2588800.0, | ||
1166900.0 | ||
], | ||
"gdb": "geocover.gdb.zip", | ||
"Bedrock": { | ||
"source": "geocover.gdb.zip", | ||
"layer": "Bedrock_HARMOS_lt40000_Extract", | ||
"attribute": "TOPGIS_GC_GC_BED_FORM_ATT_FMAT_LITSTRAT" | ||
}, | ||
"project_dir": ".", | ||
"DEM": { | ||
"source": "swissalti3d-2.0-mosaic.tif", | ||
"resolution": "2.0" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
D:\conda\envs\TIE\python.exe D:\conda\envs\TIE\Lib\site-packages\tietoolbox\scripts\tie_viewer.py --data-dir H:\code\lg-tie-toolbox\toolbox\data\cache --log-level DEBUG --config H:\code\lg-tie-toolbox\toolbox\data\config.json -p 3DTIE |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ["tie_viewer", "config", "tie_demo", "utils"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# tietoolbox/scripts/demo.py | ||
import importlib.resources | ||
from tietoolbox.scripts import tie_viewer | ||
|
||
|
||
def main(): | ||
data_dir = importlib.resources.files("tietoolbox").joinpath("data") | ||
|
||
cfg_file_path = data_dir.joinpath("config.json") | ||
cache_dir = data_dir.joinpath("cache") | ||
|
||
predefined_args = ["--config", cfg_file_path, "-d", cache_dir] | ||
|
||
tie_viewer.main(predefined_args) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |