| I'm using the CropCoverage process to crop my raster file. It is cropped correctly but it renders white, vertical lines in the output (see attached screenshot). This happens only with nearest neighbor interpolation. Input raster is a 3 band aerial. Published with the image pyramid plugin.
<?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"> <NamedLayer> <Name></Name> <UserStyle> <Title>A raster style</Title> <FeatureTypeStyle> <Transformation> <ogc:Function name="gs:CropCoverage"> <!-- crop coverage --> <ogc:Function name="parameter"> <ogc:Literal>coverage</ogc:Literal> </ogc:Function> <ogc:Function name="parameter"> <ogc:Literal>cropShape</ogc:Literal> <ogc:Function name="env"> <ogc:Literal>shape</ogc:Literal> <ogc:Literal> POLYGON((2604817 1247794, 2604817 1228205, 2631936 1228205, 2631936 1247794, 2604817 1247794)) </ogc:Literal> </ogc:Function> </ogc:Function> </ogc:Function> </Transformation> <Rule> <RasterSymbolizer> <Opacity>1.0</Opacity> </RasterSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> |