Open andrewharvey opened 9 years ago
are you seeing this on a 64 bit linux machine?
are you seeing this on a 64 bit linux machine?
@springmeyer Yes
Thanks. I'm unable to replicate on OS X locally. So it must be something specific about the way I'm building GDAL on linux. Hmmm....
Thanks. I'm unable to replicate on OS X locally. So it must be something specific about the way I'm building GDAL on linux. Hmmm....
I'm using my own build rather than the precompiled binary, so I'll do some more tests to see if it's something to do with my build and compare with the official precompiled.
I'm using my own build rather than the precompiled binary
Oh. Good to know. I also just tried to replicate on linux and could not. It seems likely this is a build issue on your end then if you are not using the precompiled node-mapnik.
I just tried the official mapbox-studio-linux-x64-v0.2.7.zip
build on a Debian Jessie VM and this time, the original HYP_50M_SR.tif works, but the one with DEFLATE compression now gives the error Error: Invalid gdal source. Error opening dataset
.
I don't even have system gdal libraries installed, so I don't think it's conflicts there.
I'll try it on an Ubuntu 15.05 64bit VM and see what happens to try to narrow down when it's occurring.
I'll try it on an Ubuntu 15.05 64bit VM and see what happens to try to narrow down when it's occurring.
On a clean Ubuntu 15.05 64bit VM with the official mapbox-studio-linux-x64-v0.2.7.zip
build, the original HYP_50M_SR.tif works, but the one with DEFLATE compression now gives the error Error: Invalid gdal source. Error opening dataset.
.
Same error message (Error: Invalid gdal source. Error opening dataset.
) with Mapbox Studio 0.2.7 on Windows.
I adjusted gdal-tiling-bench to this test case and node-mapnik@3.1.4
doesn't seem to have a problem with the deflated file.
Error: Error creating Mapnik Datasource: Invalid raster: could not open the file
when trying to load in a GeoTIFF with DEFLATE compression (-co COMPRESS=JPEG also has the same issue, but LZW works).Tested on latest mapbox-studio from git, although issue is probably in underlying library?
To reproduce,
Open
HYP_50M_SR.tif
in Mapbox Studio, works fine.Open
HYP_50M_SR_DEFLATE.tif
in Mapbox Studio, givesError: Error creating Mapnik Datasource: Invalid raster: could not open the file
, with the following logged: