-
Notifications
You must be signed in to change notification settings - Fork 173
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
QUESTION: How to get WGS 84 coordinates from GeoTiff? #176
Comments
Hi @jorrit-g Currently, geotiff.js only provides rudimentary information about the internally used projection and location. This information is stored in some special tags called geo keys. The full list of them can be seen in the specification. Unfortunately the possibilities to encode geospatial referencing are quite diverse, so geotiff.js never included anything more than the most rudimentary form. Also, geotiff.js will likely never support reprojection of coordinates and rasters, as this is a much more complicated field and out of scope of this project. For starters, I suggest the following approach:
I hope I could help you with your problem. Let me know if there is still some question unanswered. |
@constantinius thank you for your reply and help! I did have the projection info in my tif under |
Hi there,
I'm fairly new to the GIS domain so maybe i'm not understanding some things.
I'm reading a geotiff file with geotiff.js but now i don't see any method to convert a pixel to an actual WGS84 coordinate?
I do see the
GeogTOWGS84GeoKey
but I have no idea how to use this key to convert tiff pixels to coordinates.Could anybody shed some light on the floats in
GeogTOWGS84GeoKey
?Happy to provide make a PR for a
image.toCoordinate()
method (if that would be even possible?)Much appreciated!
The text was updated successfully, but these errors were encountered: