add first energy meta

This commit is contained in:
2025-12-11 00:52:57 +00:00
parent 8a3fb0545c
commit 0b921ae933
5 changed files with 20 additions and 20 deletions

View File

@@ -35,7 +35,7 @@ import sys
# The zoom level to generate keys for.
# Level 7 is standard for the "entry" lists in your scraper (e.g. '0320001').
# If the utility uses a different zoom level for its top-level clusters, adjust this.
TARGET_ZOOM = 7
TARGET_ZOOM = 6
# Increase the CSV field size limit to handle massive WKT strings
import csv
@@ -74,11 +74,13 @@ def generate_keys_from_wkt(wkt_string):
if service_area.intersects(tile_geom):
valid_keys.append(mercantile.quadkey(tile))
# 6. Output formatted for Python list
import json
# 6. Output in JSON format
valid_keys.sort()
print(f"\nFound {len(valid_keys)} intersecting tiles.")
print("-" * 30)
print(f"KEY_LIST = {valid_keys}")
print(json.dumps(valid_keys))
print("-" * 30)
except Exception as e:
@@ -97,4 +99,4 @@ if __name__ == "__main__":
except EOFError:
print("Error reading input.")
except KeyboardInterrupt:
print("\nCancelled.")
print("\nCancelled.")