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

GeoTiff with overviews results in strange rendering effects. #2741

Open
georgbachmann opened this issue Apr 28, 2021 · 1 comment
Open

GeoTiff with overviews results in strange rendering effects. #2741

georgbachmann opened this issue Apr 28, 2021 · 1 comment
Labels

Comments

@georgbachmann
Copy link

georgbachmann commented Apr 28, 2021

I have a geotiff that I want to render using Tilemill. It's a quite large area, so I need to create overviews for it. Otherwise the rendering performance is just very bad.

4XfJV

So now when I use the tiff without overviews, everything renders fine, but... it would take about 60 days to export the region that I want to export. Which is bad... If I render the same area with a tif that contains overviews, it takes about one day, which is ok. The only problem is that as soon as my tif has overviews in it, it starts to make strange edges on the tiles. It seems like data is somehow shifted or translated or something. I attached an image to better see it. I marked the most obvious regions.

I created the overviews using gdaladdo -r average --config COMPRESS_OVERVIEW LZW input.tif 4 8 16 32. I also tried bilinear resampling, but same effect. So I stopped trying others...

Would be very glad for a pointer in the right direction. Or maybe a system configuration where it's working. Maybe an other gdal-version? Or an other OS? Or an other node version? So if somebody could tell me a working config, I'd be super happy.

Here are some stats about my geotiff (different file (greayscale), but same effect):

Driver: GTiff/GeoTIFF
Files: raster.tif
Size is 89560, 71226
Coordinate System is:
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",
    GEOGCS["GCS_WGS_1984",
        DATUM["D_WGS_1984",
            SPHEROID["WGS_1984",6378137.0,298.257223563]],
        PRIMEM["Greenwich",0.0],
        UNIT["Degree",0.017453292519943295]],
    PROJECTION["Mercator_Auxiliary_Sphere"],
    PARAMETER["False_Easting",0.0],
    PARAMETER["False_Northing",0.0],
    PARAMETER["Central_Meridian",0.0],
    PARAMETER["Standard_Parallel_1",0.0],
    PARAMETER["Auxiliary_Sphere_Type",0.0],
    UNIT["Meter",1.0],
    EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs"]]
Origin = (1037360.000000000000000,6290420.000000000000000)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( 1037360.000, 6290420.000) (  9d19' 7.55"E, 49d 5'29.80"N)
Lower Left  ( 1037360.000, 5578160.000) (  9d19' 7.55"E, 44d43'26.05"N)
Upper Right ( 1932960.000, 6290420.000) ( 17d21'50.67"E, 49d 5'29.80"N)
Lower Right ( 1932960.000, 5578160.000) ( 17d21'50.67"E, 44d43'26.05"N)
Center      ( 1485160.000, 5934290.000) ( 13d20'29.11"E, 46d57' 8.24"N)
Band 1 Block=89560x1 Type=Byte, ColorInterp=Gray
  NoData Value=0
  Overviews: 22390x17807, 11195x8904, 5598x4452, 2799x2226, 1400x1113, 700x557

**Environment: **

  • OS & Version: Ubuntu:18.04 (running on Docker)
  • Browser & Version: Safari 14.0.2
  • Node Version: 8.15.0
  • GDAL on host: 2.1.2 (used to create the overviews)
  • GDAL in tilemill container: 2.2.3

Installation Method
Docker

@csytsma
Copy link
Member

csytsma commented May 1, 2021 via email

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

2 participants