Skip to content

Commit

Permalink
Fix distill refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Feb 21, 2024
1 parent 0f92f36 commit d8a3108
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and the versioning aim to respect [Semantic Versioning](http://semver.org/spec/v

Here is a template for new release sections

## [0.18.1] - 2024-02-20
### Fixed
- distill refactoring

## [0.18.0] - 2024-02-20
### Fixed
- map image loading for maplibre version > 2.4.0
Expand Down
2 changes: 1 addition & 1 deletion django_mapengine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Map Engine init, holds version"""

__version__ = "0.18.0"
__version__ = "0.18.1"
5 changes: 4 additions & 1 deletion django_mapengine/distill.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"""Module holding helper functions for MVT destillation."""

import range_key_dict

from django.conf import settings


def get_region_zooms():
"""Create range-key-dict from regions and related zoom factors."""
return range_key_dict.RangeKeyDict(
{zoom: layer for layer, zoom in settings.MAP_ENGINE_ZOOM_LEVELS.items() if layer in settings.MAP_ENGINE_REGIONS}
)
Expand Down Expand Up @@ -44,5 +47,5 @@ def get_all_statics_for_state_lod(view_name: str) -> tuple[int, int, int]:
tuple[int, int, int]
Holding x,y,z
"""
for x, y, z in distill.get_coordinates_for_distilling(view_name):
for x, y, z in get_coordinates_for_distilling(view_name):
yield z, x, y
120 changes: 119 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-mapengine"
version = "0.18.0"
version = "0.18.1"
description = "Map engine for maplibre in django"
authors = ["Hendrik Huyskens <[email protected]>"]
readme = "README.md"
Expand All @@ -21,6 +21,8 @@ django-geojson = "^3.1.0"
django = "^3.2.3"
black = "^23.1.0"
isort = "^5.12.0"
flake8 = "^7.0.0"
pylint = "^3.0.3"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit d8a3108

Please sign in to comment.