morecantile 7.0.1__py3-none-any.whl → 7.0.3__py3-none-any.whl
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.
- morecantile/__init__.py +13 -4
- morecantile/models.py +2 -2
- morecantile/scripts/cli.py +3 -3
- {morecantile-7.0.1.dist-info → morecantile-7.0.3.dist-info}/METADATA +1 -1
- {morecantile-7.0.1.dist-info → morecantile-7.0.3.dist-info}/RECORD +8 -8
- {morecantile-7.0.1.dist-info → morecantile-7.0.3.dist-info}/WHEEL +0 -0
- {morecantile-7.0.1.dist-info → morecantile-7.0.3.dist-info}/entry_points.txt +0 -0
- {morecantile-7.0.1.dist-info → morecantile-7.0.3.dist-info}/licenses/LICENSE +0 -0
morecantile/__init__.py
CHANGED
|
@@ -8,8 +8,17 @@ Refs:
|
|
|
8
8
|
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
|
-
__version__ = "7.0.
|
|
11
|
+
__version__ = "7.0.3"
|
|
12
12
|
|
|
13
|
-
from .commons import BoundingBox, Coords, Tile
|
|
14
|
-
from .defaults import TileMatrixSets, tms
|
|
15
|
-
from .models import TileMatrixSet
|
|
13
|
+
from .commons import BoundingBox, Coords, Tile
|
|
14
|
+
from .defaults import TileMatrixSets, tms
|
|
15
|
+
from .models import TileMatrixSet
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"BoundingBox",
|
|
19
|
+
"Coords",
|
|
20
|
+
"Tile",
|
|
21
|
+
"TileMatrixSet",
|
|
22
|
+
"TileMatrixSets",
|
|
23
|
+
"tms",
|
|
24
|
+
]
|
morecantile/models.py
CHANGED
|
@@ -1127,7 +1127,7 @@ class TileMatrixSet(BaseModel, arbitrary_types_allowed=True, extra="ignore"):
|
|
|
1127
1127
|
y_coord = (
|
|
1128
1128
|
origin_y - t.y * matrix.cellSize * matrix.tileHeight
|
|
1129
1129
|
if matrix.cornerOfOrigin == "topLeft"
|
|
1130
|
-
else origin_y + t.y * matrix.cellSize * matrix.tileHeight
|
|
1130
|
+
else origin_y + (t.y + 1) * matrix.cellSize * matrix.tileHeight
|
|
1131
1131
|
)
|
|
1132
1132
|
|
|
1133
1133
|
return Coords(x_coord, y_coord)
|
|
@@ -1162,7 +1162,7 @@ class TileMatrixSet(BaseModel, arbitrary_types_allowed=True, extra="ignore"):
|
|
|
1162
1162
|
y_coord = (
|
|
1163
1163
|
origin_y - (t.y + 1) * matrix.cellSize * matrix.tileHeight
|
|
1164
1164
|
if matrix.cornerOfOrigin == "topLeft"
|
|
1165
|
-
else origin_y +
|
|
1165
|
+
else origin_y + t.y * matrix.cellSize * matrix.tileHeight
|
|
1166
1166
|
)
|
|
1167
1167
|
|
|
1168
1168
|
return Coords(x_coord, y_coord)
|
morecantile/scripts/cli.py
CHANGED
|
@@ -175,7 +175,7 @@ def cli(ctx, verbose, quiet):
|
|
|
175
175
|
@click.option(
|
|
176
176
|
"--extents/--no-extents",
|
|
177
177
|
default=False,
|
|
178
|
-
help="Write shape extents as ws-separated strings (default is
|
|
178
|
+
help="Write shape extents as ws-separated strings (default is False).",
|
|
179
179
|
)
|
|
180
180
|
# Optionally buffer the shapes by shifting the x and y values of each
|
|
181
181
|
# vertex by a constant number of decimal degrees or meters (depending
|
|
@@ -436,7 +436,7 @@ def tms(identifier):
|
|
|
436
436
|
help="Identifier of the custom TMS.",
|
|
437
437
|
default="CustomTileMatrixSet",
|
|
438
438
|
)
|
|
439
|
-
@click.option("--minzoom", type=int, default=0, help="
|
|
439
|
+
@click.option("--minzoom", type=int, default=0, help="Minimum Zoom level.")
|
|
440
440
|
@click.option("--maxzoom", type=int, default=24, help="Maximum Zoom level.")
|
|
441
441
|
@click.option("--tile-width", type=int, default=256, help="Width of each tile.")
|
|
442
442
|
@click.option("--tile-height", type=int, default=256, help="Height of each tile.")
|
|
@@ -522,7 +522,7 @@ def custom(
|
|
|
522
522
|
@click.option(
|
|
523
523
|
"--extents/--no-extents",
|
|
524
524
|
default=False,
|
|
525
|
-
help="Write shape extents as ws-separated strings (default is
|
|
525
|
+
help="Write shape extents as ws-separated strings (default is False).",
|
|
526
526
|
)
|
|
527
527
|
# Optionally buffer the shapes by shifting the x and y values of each
|
|
528
528
|
# vertex by a constant number of decimal degrees or meters (depending
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: morecantile
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.3
|
|
4
4
|
Summary: Construct and use map tile grids (a.k.a TileMatrixSet / TMS).
|
|
5
5
|
Project-URL: Source, https://github.com/developmentseed/morecantile
|
|
6
6
|
Project-URL: Documentation, https://developmentseed.org/morecantile/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
morecantile/__init__.py,sha256=
|
|
1
|
+
morecantile/__init__.py,sha256=uPrxv8Ugq8R8n4jfpWmTmca7keZgkdX3rXiNwk-1VcI,526
|
|
2
2
|
morecantile/commons.py,sha256=iHElysLSMu-zb3h1G1-AJnQrZ6y-2GseZkoBkOuzcZ8,1031
|
|
3
3
|
morecantile/defaults.py,sha256=1PqF1YCgV7GcgONQlNErF0jZRc8M12kr1yrC5ZHHY00,1908
|
|
4
4
|
morecantile/errors.py,sha256=rhtdpNglfEz5nC8I-BJKUr_gkOwAPwVi1vhLFJ2StYw,907
|
|
5
|
-
morecantile/models.py,sha256=
|
|
5
|
+
morecantile/models.py,sha256=v3IKaMi0kw1OWPrGB6cupKYtJtCeBHrSjYQpuBixXjc,56424
|
|
6
6
|
morecantile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
morecantile/utils.py,sha256=Caxs1YDL_euj2GDfcpRgoR3jW6r1vj1c3XummiNvpL0,4425
|
|
8
8
|
morecantile/data/CDB1GlobalGrid.json,sha256=VDc2ukAWtTQeCdOG8YMqsGO-D7eSzSCN1TEaBn2qLZI,36115
|
|
@@ -20,9 +20,9 @@ morecantile/data/WebMercatorQuad.json,sha256=SAJ1gBA0LccnIq3qIEoUxoJ6_45sLClKYa-
|
|
|
20
20
|
morecantile/data/WorldCRS84Quad.json,sha256=l0Wf2faYwzRwO0mG-Tea1Vydpi7V1Oel5L9l2NXHogk,7072
|
|
21
21
|
morecantile/data/WorldMercatorWGS84Quad.json,sha256=JaqoBSu5qVJmL-J7oSVU1etP2OPWx_aVaTc68dGX0Ec,7001
|
|
22
22
|
morecantile/scripts/__init__.py,sha256=-CJncfgWDnSZ8au-SJtgX-OFgCddlf7___d91qQcqQM,23
|
|
23
|
-
morecantile/scripts/cli.py,sha256=
|
|
24
|
-
morecantile-7.0.
|
|
25
|
-
morecantile-7.0.
|
|
26
|
-
morecantile-7.0.
|
|
27
|
-
morecantile-7.0.
|
|
28
|
-
morecantile-7.0.
|
|
23
|
+
morecantile/scripts/cli.py,sha256=qKWQeXOkVUZr1kBd90nV8qV07RuNvv5RxyV7y7qLDic,17736
|
|
24
|
+
morecantile-7.0.3.dist-info/METADATA,sha256=hCOY9R-jNhh1Pbjm9X4v55nvrz1GPr9v1-vY5PAY5aI,7760
|
|
25
|
+
morecantile-7.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
26
|
+
morecantile-7.0.3.dist-info/entry_points.txt,sha256=vbc6D3vR1kftKoSquOo7T1wtbIvRI-KkRsXsU1M0R2U,60
|
|
27
|
+
morecantile-7.0.3.dist-info/licenses/LICENSE,sha256=18IxFIta7rF_RcVSIgLUUd_alyfQ9bGoZKQm5vOarGU,1073
|
|
28
|
+
morecantile-7.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|