Skip to content

How to get the geo coordinates of a pixel within a bounding box? #1032

Answered by adamjstewart
rsousa95 asked this question in Q&A
Discussion options

You must be logged in to vote

You can get this information from the bounding box:

bbox = sample["bbox"]
center_x = (bbox.minx + bbox.maxx) / 2
center_y = (bbox.miny + bbox.maxy) / 2

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@calebrob6
Comment options

@adamjstewart
Comment options

@adamjstewart
Comment options

@rsousa95
Comment options

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