georaster-layer-for-leaflet icon indicating copy to clipboard operation
georaster-layer-for-leaflet copied to clipboard

Cannot read properties of null (reading 'GeographicTypeGeoKey')

Open Anata22340 opened this issue 2 years ago • 2 comments

how to ignore when geoKeys is null

Anata22340 avatar Apr 19 '23 09:04 Anata22340

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

shujaahmedi2l avatar Jul 05 '23 08:07 shujaahmedi2l

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 :-)

DanielJDufour avatar Dec 01 '23 00:12 DanielJDufour