1

beginner here. I'm practicing loading a raster file into Geoserver, and loading/viewing it works fine with my uncompressed (1.2GB) tif (seems I can use either GeoTiff or Worldfile options just fine), but it will simply not display compressed tifs using the same workflow.

A bit more detail of what I've done:

  • I merged some landsat images into a large GeoTiff via gdalwarp (1.2GB file)
  • I use listgeo command to create a tfw file associated with the tif
  • I edited the tif in GIMP to adjust some color settings, etc, which loses the georeference data
  • After GIMP edits complete, I use gdal_edit.py to reassign srs (EPSG:3857) and ensure tfw has same name as tif file.
  • At this point, I can then load the large tif/tfw files (1.2GB) onto my Geoserver as a store and then publish as layer, and I can see/zoom,etc the raster just fine in layer preview (openlayers).
  • However, if I use any compression ("gdal_translate -co COMPRESS=LZW -co TILED=YES in.tif out.tif" or COMPRESS=JPEG) and upload this smaller (~200MB) file (and associated tfw) to geoserver as a store and publish as layer (same procedure as uncompressed tif), it simply does not show when I try to view in layer preview (open layers) as the larger one does. The window's coordinate area seems fine, but it is just a blank box with no visible raster!

Does anybody have any ideas why I might be experiencing this?


I figured out I was missing a step in the re-georeferencing (I used gdal_translate's -a_ullr to add in upper right, lower left, etc coords back into the tif). So I can now get the properly georeferenced compressed tif to show, so I'm assuming it had something to do with that. I still can't get the non-properly georeferenced compressed version to show on Geoserver, though the non-properly georeferenced uncompressed one does just fine still. This is GeoServer v2.9.0. I'll consider this matter resolved for now.

closed as off-topic by PolyGeo Jul 28 '16 at 23:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    We need to know that geoserver version, plus paste here the output of the gdalinfo on one of the images that are failing to load. It would also help to see the log of GeoServer (use a verbose level) when the image does not show. – simogeo Jul 28 '16 at 15:47
  • I'm having the same problem, if someone knows the answer please post the solution – Luffydude Nov 3 '16 at 12:21

Browse other questions tagged or ask your own question.