1

I want to publish an Image Mosaic layer with several images and I start with one image/granule. However, I find that the Coverage Band Details of this layer can not be recognized when I published this image. enter image description here

I then try to load this image on ArcGIS. And the Coverage Band Details can be seen as well after I use ArcGIS to export the image to a new geotiff.

enter image description here

Does anyone know where GeoServer get these information? I checked the properties of both geotiffs in ArcGIS and find nothing different.

Software version: GeoServer 2.23.0, ArcGIS Desktop 10.8.

I use python and gdal to check both file and here is the result

print('Original Image===========')
ds = gdal.Open('original.tif')
metadata = ds.GetMetadata()
print(metadata)
print('Image Exported by ArcGIS===========')
ds = None
ds = gdal.Open('exported_by_arcgis.tif')
metadata = ds.GetMetadata()

The results are as follows:

Original Image===========
{'AREA_OR_POINT': 'Area', 'TIFFTAG_SOFTWARE': 'UltraMap Aerial v5.3.0.1 (Build 35.1.2107.501)'}
Image Exported by ArcGIS===========
{'AREA_OR_POINT': 'Area', 'DataType': 'Generic'}

Attributes in ArcGIS are as follows. enter image description here enter image description here

2
  • Can you add gdalinfo output for the before and after images
    – Ian Turton
    May 11, 2023 at 17:29
  • Thanks for your reply. It's strange that I can only get a few of the iteams using python and gdal GetMetadata.
    – Tommy
    May 12, 2023 at 6:08

1 Answer 1

2

Typically image formats do not have an actual "band name", the names are based on heuristics like the color model of the image and the format involved.

So you are likely to get different results based on the format you're using, how it's configured, and the like.

1
  • Thank you for the reply. The strange thing is that I can not find what differences in the two geotiffs cause the different recognition results in GeoServer. T_T –
    – Tommy
    May 12, 2023 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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