morecantile 7.0.1__py3-none-any.whl → 7.0.2__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 CHANGED
@@ -8,7 +8,7 @@ Refs:
8
8
 
9
9
  """
10
10
 
11
- __version__ = "7.0.1"
11
+ __version__ = "7.0.2"
12
12
 
13
13
  from .commons import BoundingBox, Coords, Tile # noqa
14
14
  from .defaults import TileMatrixSets, tms # noqa
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 + (t.y + 1) * matrix.cellSize * matrix.tileHeight
1165
+ else origin_y + t.y * matrix.cellSize * matrix.tileHeight
1166
1166
  )
1167
1167
 
1168
1168
  return Coords(x_coord, y_coord)
@@ -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="Minumum Zoom level.")
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.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: morecantile
3
- Version: 7.0.1
3
+ Version: 7.0.2
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=qZvDTpip4WZ9c4ODn78fqPaW63ARKyqb9rZ4NtP9dDE,436
1
+ morecantile/__init__.py,sha256=tbSm-8Xr3lOYaSgtOnjdVGqXi-FriJMXMNdI-dh9Skg,436
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=Xdw1fl1cqjY8b5s3NpQESSoktFpZTriQ_L8M8LRI8Iw,56424
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=X5Kq4H-fsNeO2IXocVw0fcc9oHHUxLeAVDXRUefkMAY,17742
24
- morecantile-7.0.1.dist-info/METADATA,sha256=IM8hbRVVeZS8EyoCCPQ2AE0iZ6oN03j3tXtr87xCbhY,7760
25
- morecantile-7.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
26
- morecantile-7.0.1.dist-info/entry_points.txt,sha256=vbc6D3vR1kftKoSquOo7T1wtbIvRI-KkRsXsU1M0R2U,60
27
- morecantile-7.0.1.dist-info/licenses/LICENSE,sha256=18IxFIta7rF_RcVSIgLUUd_alyfQ9bGoZKQm5vOarGU,1073
28
- morecantile-7.0.1.dist-info/RECORD,,
23
+ morecantile/scripts/cli.py,sha256=CsHlKLDdJa8pO7ozQx-SM8DkhQpQ3KG5U_ExJ3TPeok,17742
24
+ morecantile-7.0.2.dist-info/METADATA,sha256=PnpiCJSB9zEvE-EaKOR38GeXFfHL_b-NZiCPqhep43A,7760
25
+ morecantile-7.0.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
26
+ morecantile-7.0.2.dist-info/entry_points.txt,sha256=vbc6D3vR1kftKoSquOo7T1wtbIvRI-KkRsXsU1M0R2U,60
27
+ morecantile-7.0.2.dist-info/licenses/LICENSE,sha256=18IxFIta7rF_RcVSIgLUUd_alyfQ9bGoZKQm5vOarGU,1073
28
+ morecantile-7.0.2.dist-info/RECORD,,