usedbytes / osgrid

golang Ordnance Survey tools
MIT License
4 stars 0 forks source link

Unexpected EOF processing raster data #1

Open usedbytes opened 2 years ago

usedbytes commented 2 years ago
ERROR: generating texture: image.Decode: unexpected EOF

This is encountered with some tiles of the VectorMap District data, due to some issue in the golang.org/x/tiff package.

See: https://github.com/golang/go/issues/30827#issuecomment-774469551

I could vendor that fix into this package, or perhaps find a different tiff package to use.

shadow-dies commented 1 year ago

Hello,I have a question. If i don't want to change the package how can I do? Or is there any other different tiff package to use.

usedbytes commented 1 year ago

Which package don't you want to modify?

I think it should be possible to replace the _ "golang.org/x/image/tiff" line in osdata/raster/raster.go with any other library which registers a handler for TIFF files with the standard Go image package.

This one might do it: https://github.com/chai2010/tiff