morecantile 7.0.1__tar.gz → 7.0.3__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.3}/PKG-INFO +1 -1
  2. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/__init__.py +13 -4
  3. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/scripts/cli.py +3 -3
  4. {morecantile-7.0.1 → morecantile-7.0.3}/pyproject.toml +1 -1
  5. {morecantile-7.0.1 → morecantile-7.0.3}/.gitignore +0 -0
  6. {morecantile-7.0.1 → morecantile-7.0.3}/LICENSE +0 -0
  7. {morecantile-7.0.1 → morecantile-7.0.3}/README.md +0 -0
  8. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/commons.py +0 -0
  9. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/CDB1GlobalGrid.json +0 -0
  10. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/CanadianNAD83_LCC.json +0 -0
  11. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/EuropeanETRS89_LAEAQuad.json +0 -0
  12. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/GNOSISGlobalGrid.json +0 -0
  13. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/LINZAntarticaMapTilegrid.json +0 -0
  14. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/NZTM2000Quad.json +0 -0
  15. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/README.md +0 -0
  16. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/UPSAntarcticWGS84Quad.json +0 -0
  17. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/UPSArcticWGS84Quad.json +0 -0
  18. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/UTM31WGS84Quad.json +0 -0
  19. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/WGS1984Quad.json +0 -0
  20. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/WebMercatorQuad.json +0 -0
  21. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/WorldCRS84Quad.json +0 -0
  22. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/data/WorldMercatorWGS84Quad.json +0 -0
  23. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/defaults.py +0 -0
  24. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/errors.py +0 -0
  25. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/models.py +2 -2
  26. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/py.typed +0 -0
  27. {morecantile-7.0.1 → morecantile-7.0.3}/morecantile/scripts/__init__.py +0 -0
  28. {morecantile-7.0.1 → morecantile-7.0.3}/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.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/
@@ -8,8 +8,17 @@ Refs:
8
8
 
9
9
  """
10
10
 
11
- __version__ = "7.0.1"
11
+ __version__ = "7.0.3"
12
12
 
13
- from .commons import BoundingBox, Coords, Tile # noqa
14
- from .defaults import TileMatrixSets, tms # noqa
15
- from .models import TileMatrixSet # noqa
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
+ ]
@@ -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 " "False).",
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="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.")
@@ -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 " "False).",
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
@@ -119,7 +119,7 @@ filterwarnings = [
119
119
  ]
120
120
 
121
121
  [tool.bumpversion]
122
- current_version = "7.0.1"
122
+ current_version = "7.0.3"
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)