Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20km UTM tile splitter #745

Open
jdries opened this issue Feb 27, 2025 · 0 comments
Open

20km UTM tile splitter #745

jdries opened this issue Feb 27, 2025 · 0 comments

Comments

@jdries
Copy link
Collaborator

jdries commented Feb 27, 2025

Example grid: https://artifactory.vgt.vito.be/ui/repos/tree/General/auxdata-public/grids/utm-tiling-grid-20km.gpkg

Define a function like this:

def split_area(aoi: Union[bounds, shapely.Geometry], projection="AUTO:42001", tile_size:float=20.0)

That simply returns a list of geometries that define grid cells, coordinates should be in projection.

Then we want to make it trivial to construct a job_db based on this, so wrap this code in a function:

df = gpd.GeoDataFrame({
    "geometry": split_area(aoi),
})
job_db = create_job_db("jobs.csv").initialize_from_df(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant