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

Cannot read properties of null (reading 'GeographicTypeGeoKey') #125

Open
Anata22340 opened this issue Apr 19, 2023 · 2 comments
Open

Cannot read properties of null (reading 'GeographicTypeGeoKey') #125

Anata22340 opened this issue Apr 19, 2023 · 2 comments
Labels

Comments

@Anata22340
Copy link

how to ignore when geoKeys is null

@shujaahmedi2l
Copy link

@Anata22340 any luck ? because I am facing the same error

@DanielJDufour
Copy link
Member

Hey, technically you can over-ride the projection using the projection property in metadata. I think it can be accomplish like the following or something close to it:

parseGeoraster(data, { projection: 4326 })

See: https://github.com/GeoTIFF/georaster/pull/66/files#diff-bfe9874d239014961b1ae4e89875a6155667db834a410aaaa2ebe3cf89820556

Thank you to nmaltsev!

However, I should give the disclaimer this functionality will probably be reworked in the next major version upgrade of georaster. It's not a part of the public official API. You'll still be able to accomplish the same purpose, but may have to set the projection in a different way. But as long as you pin your version of georaster, you should be okay :-)

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