GeoServer Layer Not Displaying Entire GeoTIFF Image
I’m having an issue with GeoServer not displaying the entire GeoTIFF image. The image is about 5.23 GB and displays correctly in QGIS, but when I create a layer in GeoServer, only a portion of the image is shown.
Image Description:
GeoTIFF Size: 5.23 GB
Width: 21666 pixels
Height: 16213 pixels
Coordinate System: EPSG:4326 – WGS 84
Bands: 4 (Float32)
Bounding Box:
Min X: -60.0015218264031276
Min Y: -21.6463439891832756
Max X: -59.8968903911278971
Max Y: -21.5731276592465484
What I’ve Done:
Checked Bounding Box: Ensured that the bounding box in GeoServer matches the extent of the image as reported by QGIS.
Generated Overviews: Created image pyramids using gdaladdo.
Compressed Image: Compressed the GeoTIFF using gdal_translate -co COMPRESS=LZW.
Adjusted JVM Memory: Increased the JVM memory settings in Tomcat to -Xms2g -Xmx4g.
Tile Caching: Enabled and configured tile caching in GeoServer.
Problem:
The image is only partially displayed in GeoServer.
When zooming in my application, the image quality degrades and transparency issues appear, unlike the GeoServer preview where the image appears normal.
Screenshots:
Correct Display in GeoServer Preview:
Incorrect Display in Application: