I have a data set of palette imagery. These are basically RGB imagery that have been converted to 1 band color map imagery using ArcGIS.

I am loading the images to GeoServer as GeoTIFFs but nothing is being displayed in OpenLayers, it is just blank white page. I was wondering if this has to do with their style file, or am I missing something else?

  • How are you attempting to view the images with OpenLayers? I mean are you trying to view a TIFF in a browser? or do you have a WMS using the GeoTIFF as a datasource. What request is sent to GeoServer from your OpenLayers client? – nmtoken Apr 18 '18 at 17:52
  • In GeoServer's "Layer Preview" there is an option of OpenLayes.. That's what I was referring to. And When I cache a Tiff file using GeoWebCache and create a WMTS, the result is still white and blank. – JackB Apr 18 '18 at 18:01
  • You should edit your question to add those details. There is still a request being sent to the GeoServer server, which you can capture. I'm still not clear from your response whether you are requesting a TIFF or not. TIFFs generally don't display in a browser, doesn't matter what the palette is. – nmtoken Apr 18 '18 at 18:51
  • 1
    how did you add the tiff to geoserver, what style did you apply? Does the coverage band info on the layer page show that it is palletted? – Ian Turton Apr 19 '18 at 8:27
  • Try to change WMS style. From Layers--> Publishing Tab--> WMS style. – Oscar Campo Apr 22 '18 at 8:14

It's hard to answer this without access to your data file, but when I add a palleted geotif to GeoServer I see the following on the layer page under coverage parameters:

enter image description here

I use a simple style to just set a minimum and maximum scale to display at and everything works just fine:

<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
      <Title>A raster style</Title>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.