-
Notifications
You must be signed in to change notification settings - Fork 24
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
cannot load some tiff files #219
Comments
@Tigeraus , thank you so much for testing this and catching these bugs! I will look into them immediately! :-) |
Thank you for catching this error. It appears that your raster doesn't load because georaster-layer-for-leaflet doesn't support UTM. I created an issue for this library here: GeoTIFF/georaster-layer-for-leaflet#5 |
Thanks for your information. I test this with a transformed file odm_orthophoto.originaly.tif and I think it meets the format requirements now. This time it seems the geotiff.io has properly find the coordinates, but the image has not been rendered yet. See: Since I have 4 channels in this tiff file, is this issue caused by the alpha channel? |
@Tigeraus , thank you for your feedback. This is very helpful for us! :-) georaster-layer-for-leaflet uses a super simple nearest neighbor interpolation. It sets the resolution here: https://github.com/GeoTIFF/georaster-layer-for-leaflet/blob/master/georaster-layer-for-leaflet.js#L114 The resolution is a measurement of how many pixels to sample for the rendered canvas. I have created an issue for this and assigned it Would a URL param and an advanced setting tool with an ability for the user to configure the resolution meet your need? |
Yes, a URL param configuration is enough for a web app. But I think it would be better for those who want to customize this app if you can add some static configuration approaches like a json or yaml file. |
yes @Tigeraus , that is a great idea! Among the solutions listed below, which is most important to you. We'll work on that first! :-)
|
Hi, @Tigeraus . I just wanted to let you know that you can now adjust the resolution of the raster based on the I'm still working on the other solutions like the configuration JSON and/or YAML |
Wow, that's cool! thanks a lot! |
Describe the bug
Thanks for your great work on online tiff browsing first! It's really helpful!
I try to use geotiff.io to visualize one of my tiff files: odm_orthophoto.original.tif. And the geotiff.io just give me something like this in the map region:
![](https://camo.githubusercontent.com/d4e1e229fefdefce233a7e02b25cfbee82eac011038d1bd6588ba730bbe2df91/68747470733a2f2f7773342e73696e61696d672e636e2f6c617267652f303036744e6252776c7931667733327a6b783536386a33316b7730766b7136792e6a7067)
I'm new to geotiff visualization. So I'm not sure if this is caused by the file format or a geotiff.io's bug.
I tried some other tiff files, some of them works while others don't.
Here are some other examples of the failed tiff files (from geotiff.js's test data):
And one successful example:
The text was updated successfully, but these errors were encountered: