Skip to content

Commit

Permalink
Data version 2022d (#166)
Browse files Browse the repository at this point in the history
* Delete poly_max_values.bin

* update binaries 2022d

* Update pyproject.toml

* Update CHANGELOG.rst

* Update file_converter.py
  • Loading branch information
jannikmi authored Oct 30, 2022
1 parent d81cdb7 commit d2db045
Show file tree
Hide file tree
Showing 16 changed files with 145 additions and 145 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ Future TODOs:
* parameterised tests


6.1.6 (2022-10-30)
------------------

* updated the data to `2022d <https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2022d>`__.


6.1.5 (2022-10-25)
------------------

* updated the data to `2021c <https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2021c>`__.
* updated the data to `2022b <https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2022b>`__.
* logging build failures with warnings


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "timezonefinder"
version = "6.1.5"
version = "6.1.6"
description = "fast python package for finding the timezone of any point on earth (coordinates) offline"
authors = ["jannikmi <github@michelfe.it>"]
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions scripts/file_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ def parse_polygons_from_json(input_path: Path) -> int:

poly_id = 0
zone_id = 0
print("extracting data.\nfound holes:")
print("parsing data...\nprocessing holes:")
for zone_id, tz_dict in enumerate(tz_list):

tz_name = tz_dict.get("properties").get("tzid")
all_tz_names.append(tz_name)
geometry = tz_dict.get("geometry")
Expand Down Expand Up @@ -181,8 +180,8 @@ def parse_polygons_from_json(input_path: Path) -> int:

# everything else is interpreted as a hole!
for hole_nr, hole in enumerate(poly_with_hole):
print(f"#{nr_of_holes}: polygon #{poly_id}({hole_nr}) zone: {tz_name}")
nr_of_holes += 1 # keep track of how many holes there are
print(f"\rpolygon {poly_id}, zone {tz_name}, hole number {nr_of_holes}, {hole_nr+1} in polygon", end="")
polynrs_of_holes.append(poly_id)
hole_poly = to_numpy_polygon(hole)
holes.append(hole_poly)
Expand All @@ -195,6 +194,7 @@ def parse_polygons_from_json(input_path: Path) -> int:
if DEBUG and zone_id >= DEBUG_ZONE_CTR_STOP:
break

print("\n")
nr_of_polygons = len(polygon_lengths)
nr_of_zones = len(all_tz_names)
assert nr_of_polygons >= 0
Expand Down
Binary file modified timezonefinder/hole_adr2data.bin
Binary file not shown.
Binary file modified timezonefinder/hole_coord_amount.bin
Binary file not shown.
Binary file modified timezonefinder/hole_data.bin
Binary file not shown.
Loading

0 comments on commit d2db045

Please sign in to comment.