Maarten Pronk ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5c618d5760cf8e3dfccf82b3
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiOGQxYWQ3ODNlOGE2NGQxNzg5NDgzY2NjNmFmN2FmMTAiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10295?atlOrigin=eyJpIjoiOGQxYWQ3ODNlOGE2NGQxNzg5NDgzY2NjNmFmN2FmMTAiLCJwIjoiaiJ9
 ) GEOS-10295 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10295?atlOrigin=eyJpIjoiOGQxYWQ3ODNlOGE2NGQxNzg5NDgzY2NjNmFmN2FmMTAiLCJwIjoiaiJ9
 ) Band names are automatically renamed when 1-3/4 band geotiff raster store is 
created ( 
https://osgeo-org.atlassian.net/browse/GEOS-10295?atlOrigin=eyJpIjoiOGQxYWQ3ODNlOGE2NGQxNzg5NDgzY2NjNmFmN2FmMTAiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.19.3 Assignee: Unassigned Created: 
03/Nov/21 7:01 PM Priority: Medium Reporter: Maarten Pronk ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5c618d5760cf8e3dfccf82b3
 )

If I create a store and a layer based on a geotiff with either 1, 3 or 4 bands, 
the band names are renamed automatically, as shown in Coverage Band Details 
part on the layer page.

1 band - GRAY_INDEX
3 bands - RED_BAND, GREEN_BAND and BLUE_BAND
4 bands - RED_BAND, GREEN_BAND, BLUE_BAND and ALPHA_BAND

Any other number of bands and the bands are called Band1, Band2, etc.

This behavior isn't documented nor configurable.

GDAL has the same behaviour, but has a configuration option 
(`PHOTOMETRIC=[MINISBLACK/MINISWHITE/RGB/CMYK/YCBCR/CIELAB/ICCLAB/ITULAB`) that 
writes a tiff tag, but this is not picked up by GeoServer it seems.

Not every 4 band geotiff is RGBA, so I like to have the option to always have 
my bands named consistently Band1, Band2 etc, either by configuring an option 
in GeoServer, or by setting a tag in the source geotiff.

Related to https://osgeo-org.atlassian.net/browse/GEOS-9889.

( 
https://osgeo-org.atlassian.net/browse/GEOS-10295#add-comment?atlOrigin=eyJpIjoiOGQxYWQ3ODNlOGE2NGQxNzg5NDgzY2NjNmFmN2FmMTAiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10295#add-comment?atlOrigin=eyJpIjoiOGQxYWQ3ODNlOGE2NGQxNzg5NDgzY2NjNmFmN2FmMTAiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183- 
sha1:8e458bc )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to