お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Image.sldStyle
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された OGC SLD スタイルでラスター入力をスタイル設定します。
注意点:
* OGC SLD 1.0 と OGC SE 1.1 がサポートされています。
* 渡される XML ドキュメントは完全なものでも、SldRasterSymbolizer 要素以下だけでも構いません。
* SldRasterSymbolizer が 1 つだけ必要です。
* バンドは、適切な EarthEngine 名または数値識別子(「1」、「2」など)を使用して選択できます。適切な EarthEngine 名が最初に試されます。
* ヒストグラムと正規化のコントラスト ストレッチ メカニズムがサポートされています。
* SLD 1.0(GeoServer 拡張機能)の ColorMap 要素の type="values"、type="intervals"、type="ramp" 属性がサポートされています。
* 不透明度は、0.0(透明)の場合にのみ考慮されます。不透明度の値が 0 以外の場合は、完全に不透明として扱われます。
* OverlapBehavior の定義は現在無視されます。
* 現在、ShadedRelief メカニズムはサポートされていません。
* ImageOutline メカニズムは現在サポートされていません。
* Geometry 要素は無視されます。
ヒストグラムの均等化または正規化がリクエストされた場合、出力画像には histogram_bandname メタデータが含まれます。
用途 | 戻り値 |
---|
Image.sldStyle(sldXml) | 画像 |
引数 | タイプ | 詳細 |
---|
これ: input | 画像 | SLD を使用してレンダリングする画像。 |
sldXml | 文字列 | OGC SLD 1.0 または 1.1 ドキュメント(またはフラグメント)。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 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). |"]]