It is right but it is technically invalid SLD so the validator rejects it.
It will work fine as it is.
Ian
On 1 August 2017 at 11:49, Filipe <[email protected]> wrote:
> Hello, I'm trying to add a raster layer to geoserver. currently i can see
> it in ArcGis with a style definition of "RGB Composite", all the channels
> set to the corresponding banc (red, green and blue), and a Stretch of the
> type "Percent Clip". This gives me an image of something like this:
>
> ive configured the same Tif file at geoserver and it shows at preview.
>
>
> now im trying to set the style to something close to the previous one.
> after digging at the documentation i came up of something like:
>
> <ContrastEnhancement>
> <Normalize>
> <VendorOption name="algorithm">ClipToMinimumMaximum</VendorOption>
> <VendorOption name="minValue">50</VendorOption>
> <VendorOption name="maxValue">100</VendorOption>
> </Normalize>
> </ContrastEnhancement>
>
>
> the problem is this that this is not recognized as a valid sld at the
> style editor:
>
> "line 24: cvc-complex-type.2.1: Element 'Normalize' must have no character or
> element information item [children], because the type's content type is
> empty."
>
>
> is this the correct way to accomplish this? What am i doing wrong at the
> style? regards, Filipe
> ------------------------------
> View this message in context: Raster Normalize
> <http://osgeo-org.1560.x6.nabble.com/Raster-Normalize-tp5330021.html>
> Sent from the GeoServer - User mailing list archive
> <http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html> at
> Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
> userlist-guidelines.html
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users