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

Unable to Load Large GeoTIF #263

Open
jillianpihulak opened this issue Dec 29, 2021 · 2 comments
Open

Unable to Load Large GeoTIF #263

jillianpihulak opened this issue Dec 29, 2021 · 2 comments

Comments

@jillianpihulak
Copy link

Whether on the opening prompt to load a TIF or in the load TIF button in the left hand corner, I can't get a 138 MB TIF to load.

Thanks so much for making the tool!

@DanielJDufour
Copy link
Member

Hello @jillianpihulak . Thanks for the question! Are you trying to load from a URL or a downloaded Tiff? If you are trying to load from a URL, the issue is probably that geotiff.io doesn't currently support COGs (but it's on the roadmap). If you are trying to load a file, it could be an issue with the projection. Would you be able to share a link to your tiff here? If not, feel free to email it to me at [email protected] and I can help debug. Thanks.

@DanielJDufour
Copy link
Member

Hi, @jillianpihulak . The issue is that the tiff has a custom projection. It uses a standard datum, but its projection is "user-defined" (i.e. custom) as indicated by 32767 for ProjectedCSTypeGeoKey.

(await (await require("geotiff").fromFile("file.tiff")).getImage()).getGeoKeys()
{
  ProjectedCSTypeGeoKey: 32767,
  ...
}

I hope to add support to geotiff.io for custom projections via https://github.com/matafokka/geotiff-geokeys-to-proj4 or parsing the ESRI Projection Engine string in the PCSCitationGeoKey, but it's honestly going to take a long time because of the complexity of georaster and georaster-layer-for-leaflet.

Meanwhile, if you really want to use this tiff with geotiff.io, I would recommend re-projecting it to a standard projection via gdal or QGIS (maybe projection 32610)?

Please keep this issue open and I'll try to update it when I have a better solution.

Additionally, would it be okay if I used this tiff as a public test case? Honestly, custom-projected tiffs are somewhat uncommon and so it would be very helpful if I could add it to the tests. Just let me know if that is okay or if the tiff should be treated as private.

Lastly, thank you so much for brining this to my attention. It's been fun trying to figure out what was going on.

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

No branches or pull requests

2 participants