topo_map_processor 0.1.23__tar.gz → 0.1.25__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/PKG-INFO +2 -2
- topo_map_processor-0.1.25/topo_map_processor/_version.py +24 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/processor.py +4 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/retile.py +2 -2
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/tile.py +1 -1
- topo_map_processor-0.1.23/topo_map_processor/_version.py +0 -34
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/.gitignore +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/LICENSE +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/README.md +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/pyproject.toml +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/__init__.py +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/__init__.py +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/collect_bounds.py +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/create_force_redo_bounds.py +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/retile_e2e.py +0 -0
- {topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: topo_map_processor
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.25
|
|
4
4
|
Summary: Library for processing topographic maps
|
|
5
5
|
Project-URL: homepage, https://github.com/ramSeraph/topo_map_processor
|
|
6
6
|
Project-URL: repository, https://github.com/ramSeraph/topo_map_processor.git
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.1.25'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 25)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|
|
@@ -845,8 +845,12 @@ class TopoMapProcessor:
|
|
|
845
845
|
|
|
846
846
|
map_bbox, map_min_rect, _ = self.get_maparea()
|
|
847
847
|
_, _, angle = map_min_rect
|
|
848
|
+
# minAreaRect can report either [0, 90] or [-90, 0) angles.
|
|
849
|
+
# Deskew by the nearest axis so upright maps are not turned sideways.
|
|
848
850
|
if angle > 45:
|
|
849
851
|
angle = angle - 90
|
|
852
|
+
elif angle < -45:
|
|
853
|
+
angle = angle + 90
|
|
850
854
|
|
|
851
855
|
self.ensure_dir(workdir)
|
|
852
856
|
|
|
@@ -183,7 +183,7 @@ class Tiler:
|
|
|
183
183
|
print('start creating base tiles')
|
|
184
184
|
cmd = [
|
|
185
185
|
'gdal2tiles.py',
|
|
186
|
-
'-r', '
|
|
186
|
+
'-r', 'lanczos',
|
|
187
187
|
'--verbose',
|
|
188
188
|
'-w', 'none',
|
|
189
189
|
# N.B. if transperent tiles are excluded, the old data might show through
|
|
@@ -210,7 +210,7 @@ class Tiler:
|
|
|
210
210
|
# N.B. if transperent tiles are excluded, the old data might show through
|
|
211
211
|
#'exclude_transparent': True,
|
|
212
212
|
'profile': 'mercator',
|
|
213
|
-
'resampling': '
|
|
213
|
+
'resampling': 'lanczos',
|
|
214
214
|
'tiledriver': tile_driver,
|
|
215
215
|
}
|
|
216
216
|
options_dict.update(self.get_tiler_options())
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# file generated by setuptools-scm
|
|
2
|
-
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
__all__ = [
|
|
5
|
-
"__version__",
|
|
6
|
-
"__version_tuple__",
|
|
7
|
-
"version",
|
|
8
|
-
"version_tuple",
|
|
9
|
-
"__commit_id__",
|
|
10
|
-
"commit_id",
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
TYPE_CHECKING = False
|
|
14
|
-
if TYPE_CHECKING:
|
|
15
|
-
from typing import Tuple
|
|
16
|
-
from typing import Union
|
|
17
|
-
|
|
18
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
-
COMMIT_ID = Union[str, None]
|
|
20
|
-
else:
|
|
21
|
-
VERSION_TUPLE = object
|
|
22
|
-
COMMIT_ID = object
|
|
23
|
-
|
|
24
|
-
version: str
|
|
25
|
-
__version__: str
|
|
26
|
-
__version_tuple__: VERSION_TUPLE
|
|
27
|
-
version_tuple: VERSION_TUPLE
|
|
28
|
-
commit_id: COMMIT_ID
|
|
29
|
-
__commit_id__: COMMIT_ID
|
|
30
|
-
|
|
31
|
-
__version__ = version = '0.1.23'
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 1, 23)
|
|
33
|
-
|
|
34
|
-
__commit_id__ = commit_id = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/__init__.py
RENAMED
|
File without changes
|
{topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/collect_bounds.py
RENAMED
|
File without changes
|
|
File without changes
|
{topo_map_processor-0.1.23 → topo_map_processor-0.1.25}/topo_map_processor/tools/retile_e2e.py
RENAMED
|
File without changes
|
|
File without changes
|