Skip to content

Create Lon and Lat points from UTM zone and lower-left corner #861

Answered by snowman2
dpath2o asked this question in Q&A
Discussion options

You must be logged in to vote

What is the cell size?

Step 1: Build the transform

Based on what you have, you can construct the affine/transform: https://github.com/sgillies/affine

This is helpful for determining the order: https://gdal.org/user/raster_data_model.html#affine-geotransform

from affine import Affine

resolution_x = 100  # right
resolution_y = -100  # down
left = 340700
bottom = 2468000
top = bottom - resolution_y * height
transform  = Affine.translation(left, top) * Affine.scale(resolution_x, resolution_y)

Step 2: Get the CRS from UTM Zone

https://pyproj4.github.io/pyproj/stable/build_crs.html#projected-crs

from pyproj.crs import ProjectedCRS
from pyproj.crs.coordinate_operation import UTMConversion

crs = 

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dpath2o
Comment options

@snowman2
Comment options

@dpath2o
Comment options

Answer selected by snowman2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants