Skip to content

Commit

Permalink
removed all non sphereical codes"
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Dec 3, 2024
1 parent 9f16d5b commit c4c8445
Show file tree
Hide file tree
Showing 171 changed files with 5 additions and 198,225 deletions.
10 changes: 5 additions & 5 deletions src/planetcantile/data/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def make_tms(crss_wkts: dict[str, WKT]):
)
yield tms_mercator
# TODO web mercator custom
case '00' | '01' | '02':
case '00':
# Geographic codes
id = f'{body_name}Geographic{get_ellipsoid_kind(crs)}'
tms_geographic = morecantile.TileMatrixSet.custom(
Expand Down Expand Up @@ -770,7 +770,7 @@ def make_tms(crss_wkts: dict[str, WKT]):
tms_geographic_coalesced = add_coalesce_to_tms(tms_geographic_coalesced)
yield tms_geographic_coalesced
# TODO coalesced tmss
case '10' | '11' | '12':
case '10':
# Equirectangular codes
id = f'{body_name}EquidistantCylindrical{get_ellipsoid_kind(crs)}'
tms_equidistant = morecantile.TileMatrixSet.custom(
Expand Down Expand Up @@ -799,7 +799,7 @@ def make_tms(crss_wkts: dict[str, WKT]):
)
tms_equidistant_coalesced = add_coalesce_to_tms(tms_equidistant_coalesced)
yield tms_equidistant_coalesced
case '30' | '31' | '32':
case '30':
# North Polar codes
try:
(FE, FN), around_80_north = determine_FE_FN(crs, in_north=True)
Expand All @@ -818,7 +818,7 @@ def make_tms(crss_wkts: dict[str, WKT]):
maxzoom = get_max_zoom(crs, aspect=1)
)
yield tms_northpolar
case '35' | '36' | '37':
case '35':
# South Polar codes
try:
(FE, FN), around_80_south = determine_FE_FN(crs, in_north=False)
Expand Down Expand Up @@ -872,7 +872,7 @@ def main():
# with open(f"./v4/{tms_dict['id']}.json", "w") as dst:
# json.dump(tms_dict, dst, indent=4)
# print(f"wrote {dst.name}")

for tms in make_tms(crss_wkts):
with open(f"./v4/{tms.id}.json", "w") as dst:
model_dict = tms.model_dump(exclude_none=True)
Expand Down
347 changes: 0 additions & 347 deletions src/planetcantile/data/v4/CallistoEquidistantCylindricalOgraphic.json

This file was deleted.

Loading

0 comments on commit c4c8445

Please sign in to comment.