Skip to content

Instantly share code, notes, and snippets.

@t-book
Created July 11, 2024 07:37
Show Gist options
  • Save t-book/c81a2948e87ba4e4c6df43955d9e4ae2 to your computer and use it in GitHub Desktop.
Save t-book/c81a2948e87ba4e4c6df43955d9e4ae2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
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">
<NamedLayer>
<Name>16bit_greyscale</Name>
<UserStyle>
<Title>16-bit Greyscale</Title>
<Abstract>A greyscale style for 16-bit GeoTIFF images</Abstract>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<ChannelSelection>
<GrayChannel>
<SourceChannelName>1</SourceChannelName>
</GrayChannel>
</ChannelSelection>
<ContrastEnhancement>
<Normalize>
<VendorOption name="minValue">0</VendorOption>
<VendorOption name="maxValue">65535</VendorOption>
</Normalize>
</ContrastEnhancement>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment