pixel-map 0.2.3__tar.gz → 0.2.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pixel-map
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A Python CLI tool for plotting geo files in the terminal
5
5
  Author-Email: Kamil Raczycki <kraczycki@kraina.ai>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
1
  """Pixel-map library."""
2
2
 
3
3
  __app_name__ = "pixel-map"
4
- __version__ = "0.2.3"
4
+ __version__ = "0.2.4"
@@ -248,6 +248,11 @@ def _expand_bbox_to_match_ratio(
248
248
  bottom = bottom - height_padding
249
249
  top = top + height_padding
250
250
 
251
+ left = max(left, EPSG_3857_BOUNDS[0])
252
+ bottom = max(bottom, EPSG_3857_BOUNDS[1])
253
+ right = min(right, EPSG_3857_BOUNDS[2])
254
+ top = min(top, EPSG_3857_BOUNDS[3])
255
+
251
256
  new_minx, new_miny = TRANSFORMER.transform(left, bottom, direction=TransformDirection.INVERSE)
252
257
  new_maxx, new_maxy = TRANSFORMER.transform(right, top, direction=TransformDirection.INVERSE)
253
258
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pixel-map"
3
- version = "0.2.3"
3
+ version = "0.2.4"
4
4
  description = "A Python CLI tool for plotting geo files in the terminal"
5
5
  authors = [
6
6
  { name = "Kamil Raczycki", email = "kraczycki@kraina.ai" },
@@ -149,7 +149,7 @@ close-quotes-on-newline = true
149
149
  wrap-one-line = true
150
150
 
151
151
  [tool.bumpver]
152
- current_version = "0.2.3"
152
+ current_version = "0.2.4"
153
153
  version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
154
154
  commit_message = "chore(CI/CD): bump version {old_version} -> {new_version}"
155
155
  commit = true
File without changes
File without changes
File without changes
File without changes
File without changes