BIIIIG FIXES

This commit is contained in:
2026-01-21 00:57:53 +01:00
parent 08cfcdee19
commit 5d0d285971
3 changed files with 389 additions and 430 deletions

View File

@@ -41,7 +41,7 @@ Example layout for 100 points and 50 triangles:
Total file size: 1864 bytes
Coordinate System:
Input: Ohio State Plane North (EPSG:3734) in US Survey Feet
Input: Ohio State Plane South (EPSG:3735) in US Survey Feet
Output: Web Mercator (EPSG:3857) in meters
This ensures compatibility with MapLibre GL JS and web mapping standards.
"""
@@ -74,9 +74,9 @@ def transform_to_webmercator(x, y, z):
"""Transform Ohio State Plane coordinates to Web Mercator (EPSG:3857)."""
print("Transforming coordinates to Web Mercator...")
# Ohio State Plane North (EPSG:3734) in US Survey Feet to Web Mercator (EPSG:3857) in meters
# Newark is in the North zone
transformer = Transformer.from_crs("EPSG:3734", "EPSG:3857", always_xy=True)
# Ohio State Plane South (EPSG:3735) in US Survey Feet to Web Mercator (EPSG:3857) in meters
# The lidar data uses FIPS 3402 (Ohio South) per metadata
transformer = Transformer.from_crs("EPSG:3735", "EPSG:3857", always_xy=True)
# Transform x,y (easting, northing) to Web Mercator meters
merc_x, merc_y = transformer.transform(x, y)