Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eStyles raster images using OGC SLD 1.0 and 1.1, accepting either a complete document or just the SldRasterSymbolizer element.\u003c/p\u003e\n"],["\u003cp\u003eSupports various functionalities like band selection, Histogram and Normalize contrast stretches, and ColorMap types (values, intervals, ramp).\u003c/p\u003e\n"],["\u003cp\u003eWhile opacity is acknowledged, it only recognizes 0.0 for transparency, with other values treated as opaque, and certain features like OverlapBehavior, ShadedRelief, and ImageOutline are not supported.\u003c/p\u003e\n"],["\u003cp\u003eThe output image may contain metadata about histogram equalization or normalization, and the styling is applied using the \u003ccode\u003eImage.sldStyle(sldXml)\u003c/code\u003e function where \u003ccode\u003esldXml\u003c/code\u003e is the SLD document.\u003c/p\u003e\n"]]],[],null,["# ee.Image.sldStyle\n\nStyles a raster input with the provided OGC SLD styling.\n\n\u003cbr /\u003e\n\nPoints of note:\n\n\\* OGC SLD 1.0 and OGC SE 1.1 are supported.\n\n\\* The XML document passed in can be complete, or just the SldRasterSymbolizer element and down.\n\n\\* Exactly one SldRasterSymbolizer is required.\n\n\\* Bands may be selected by their proper EarthEngine names or using numeric identifiers (\"1\", \"2\", ...). Proper EarthEngine names are tried first.\n\n\\* The Histogram and Normalize contrast stretch mechanisms are supported.\n\n\\* The type=\"values\", type=\"intervals\" and type=\"ramp\" attributes for ColorMap element in SLD 1.0 (GeoServer extensions) are supported.\n\n\\* Opacity is only taken into account when it is 0.0 (transparent). Non-zero opacity values are treated as completely opaque.\n\n\\* The OverlapBehavior definition is currently ignored.\n\n\\* The ShadedRelief mechanism is not currently supported.\n\n\\* The ImageOutline mechanism is not currently supported.\n\n\\* The Geometry element is ignored.\n\nThe output image will have histogram_bandname metadata if histogram equalization or normalization is requested.\n\n| Usage | Returns |\n|--------------------------|---------|\n| Image.sldStyle`(sldXml)` | Image |\n\n| Argument | Type | Details |\n|---------------|--------|------------------------------------------------|\n| this: `input` | Image | The image to rendering using the SLD. |\n| `sldXml` | String | The OGC SLD 1.0 or 1.1 document (or fragment). |"]]