Feature Request: Add the ability to plot a scale (100 pixels = 1km) on the image, with a scale bar drawing #10

Open
opened 2025-11-19 06:14:28 +00:00 by DeflateAwning · 5 comments
DeflateAwning commented 2025-11-19 06:14:28 +00:00 (Migrated from github.com)

Here's an example of what a scale bar looks like on a map. Something simple like this, enabled with the --scale-bar setting, would be awesome! You could take it even further and allow --scale-bar bottom-right, etc. to position it.

Image
Here's an example of what a scale bar looks like on a map. Something simple like this, enabled with the `--scale-bar` setting, would be awesome! You could take it even further and allow `--scale-bar bottom-right`, etc. to position it. <img width="1080" height="760" alt="Image" src="https://github.com/user-attachments/assets/1be0903c-c244-4dbc-b2fb-6d44f9c89347" />
LeviLovie commented 2025-12-06 11:01:43 +00:00 (Migrated from github.com)

Ok, i think this would be possible, the harder part is calculating meters from coordinates. I'll think of implementing this, for now could you please hit the original lib as well?

Ok, i think this would be possible, the harder part is calculating meters from coordinates. I'll think of implementing this, for now could you please hit the [original lib](https://github.com/andolg/satellite-imagery-downloader) as well?
DeflateAwning commented 2025-12-07 11:29:12 +00:00 (Migrated from github.com)

You just project the coordinates to UTM, and that gives you distances in meters. Tons of libraries for doing that projection. You can also do a great circle approximation (reasonably-simple trig expression).

You just project the coordinates to UTM, and that gives you distances in meters. Tons of libraries for doing that projection. You can also do a great circle approximation (reasonably-simple trig expression).
LeviLovie commented 2025-12-07 13:55:01 +00:00 (Migrated from github.com)

Ok, im currently working on another geological project where im gonna have to do conversion to meters, so when i'll finish it there ill come back to add it here.

Ok, im currently working on another geological project where im gonna have to do conversion to meters, so when i'll finish it there ill come back to add it here.
DeflateAwning commented 2025-12-07 21:13:41 +00:00 (Migrated from github.com)

Geological? Like, with underground rocks?

Thanks!

Geological? Like, with underground rocks? Thanks!
LeviLovie commented 2025-12-09 00:44:15 +00:00 (Migrated from github.com)

Yes, underground rocks :)

Yes, underground rocks :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
levi/satellite-imagery#10
No description provided.