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

world files for static maps api #46

Closed
perrygeo opened this issue Jan 10, 2016 · 4 comments
Closed

world files for static maps api #46

perrygeo opened this issue Jan 10, 2016 · 4 comments
Labels

Comments

@perrygeo
Copy link
Contributor

We should add a --worldfile option the staticmaps command which would write a GDAL-recognizable world file alongside the image. This would help users to quickly grab a portion of their tilesets and load them into a local GIS viewer to compare to local data.

We'd need to determine the worldfile extension based on requested image.

Because the exact extent would only be know if bounds were provided, we could make it invalid to specify --worldfile with --auto. Or is the --auto behavior defined well enough to predict it?

@perrygeo
Copy link
Contributor Author

One challenge is that the bounds are not specified exactly, rather the user inputs zoom and center lat and lon. We'd need to write some logic to determine bounds (really just need the upper-left corner) based on the image size and z, lat/lon.

@perrygeo
Copy link
Contributor Author

there's been little interest in this feature so 👋 bye bye

@flackdl
Copy link

flackdl commented Jul 15, 2020

Hi @perrygeo , I know this is quite an old discussion, but it's exactly what I'm interested so I thought I'd ask here.

I've been trying to figure out how to generate a world file from a mapbox static image.

Do you know of a solution for this?

EDIT: I just stumbled upon https://github.com/mapbox/mercantile which looks like it may be exactly what I'm looking for.

@delebash
Copy link

I am also interested in something like this. I need to be able to georefence an rgb png tile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants