morecantile 7.0.1__tar.gz → 7.0.2__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.
Files changed (28) hide show
  1. {morecantile-7.0.1 → morecantile-7.0.2}/PKG-INFO +1 -1
  2. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/__init__.py +1 -1
  3. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/scripts/cli.py +1 -1
  4. {morecantile-7.0.1 → morecantile-7.0.2}/pyproject.toml +1 -1
  5. {morecantile-7.0.1 → morecantile-7.0.2}/.gitignore +0 -0
  6. {morecantile-7.0.1 → morecantile-7.0.2}/LICENSE +0 -0
  7. {morecantile-7.0.1 → morecantile-7.0.2}/README.md +0 -0
  8. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/commons.py +0 -0
  9. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/CDB1GlobalGrid.json +0 -0
  10. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/CanadianNAD83_LCC.json +0 -0
  11. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/EuropeanETRS89_LAEAQuad.json +0 -0
  12. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/GNOSISGlobalGrid.json +0 -0
  13. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/LINZAntarticaMapTilegrid.json +0 -0
  14. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/NZTM2000Quad.json +0 -0
  15. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/README.md +0 -0
  16. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/UPSAntarcticWGS84Quad.json +0 -0
  17. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/UPSArcticWGS84Quad.json +0 -0
  18. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/UTM31WGS84Quad.json +0 -0
  19. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/WGS1984Quad.json +0 -0
  20. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/WebMercatorQuad.json +0 -0
  21. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/WorldCRS84Quad.json +0 -0
  22. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/data/WorldMercatorWGS84Quad.json +0 -0
  23. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/defaults.py +0 -0
  24. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/errors.py +0 -0
  25. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/models.py +2 -2
  26. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/py.typed +0 -0
  27. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/scripts/__init__.py +0 -0
  28. {morecantile-7.0.1 → morecantile-7.0.2}/morecantile/utils.py +0 -0
@@ -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/
@@ -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
@@ -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.")
@@ -119,7 +119,7 @@ filterwarnings = [
119
119
  ]
120
120
 
121
121
  [tool.bumpversion]
122
- current_version = "7.0.1"
122
+ current_version = "7.0.2"
123
123
 
124
124
  search = "{current_version}"
125
125
  replace = "{new_version}"
File without changes
File without changes
File without changes
@@ -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)