Earth Engine は、共有コンピューティングリソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層を導入しています。非商用プロジェクトではデフォルトでコミュニティ
ティアが使用されますが、プロジェクトのティアはいつでも変更できます。
Google は AI 技術を使用して、コンテンツをご希望の言語に翻訳しています。AI 翻訳には誤りが含まれる場合があります。
ee.Geometry.LinearRing.simplify
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された誤差範囲内でジオメトリを簡略化します。maxError が明示的に null に指定されていない限り、このアルゴリズムのコンシューマがリクエストした誤差範囲は考慮されません。
これにより、誤差範囲を伝播するためのデフォルトの Earth Engine ポリシーがオーバーライドされるため、出力からリクエストされたジオメトリの精度に関係なく、入力は、このアルゴリズムの引数で指定された誤差範囲でリクエストされます。これにより、レンダリングされたベクターマップのすべてのズームレベルで一貫したレンダリングが行われますが、ズームレベルが低い(つまりズームアウト)場合、ジオメトリは簡略化されないため、パフォーマンスが低下する可能性があります。
| 用途 | 戻り値 |
|---|
LinearRing.simplify(maxError, proj) | ジオメトリ |
| 引数 | タイプ | 詳細 |
|---|
this: geometry | ジオメトリ | 簡略化するジオメトリ。 |
maxError | ErrorMargin | 結果が入力と異なる可能性がある最大誤差量。 |
proj | 投影、デフォルト: null | 指定した場合、結果はこの投影になります。それ以外の場合は、入力と同じ投影になります。誤差範囲が投影単位の場合、誤差範囲はこの投影の単位として解釈されます。 |
例
コードエディタ(JavaScript)
// Define a LinearRing object.
var linearRing = ee.Geometry.LinearRing(
[[-122.091, 37.420],
[-122.085, 37.422],
[-122.080, 37.430]]);
// Apply the simplify method to the LinearRing object.
var linearRingSimplify = linearRing.simplify({'maxError': 1});
// Print the result to the console.
print('linearRing.simplify(...) =', linearRingSimplify);
// Display relevant geometries on the map.
Map.setCenter(-122.085, 37.422, 15);
Map.addLayer(linearRing,
{'color': 'black'},
'Geometry [black]: linearRing');
Map.addLayer(linearRingSimplify,
{'color': 'red'},
'Result [red]: linearRing.simplify');
Python の設定
Python API と geemap を使用したインタラクティブな開発については、
Python 環境 のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# Define a LinearRing object.
linearring = ee.Geometry.LinearRing(
[[-122.091, 37.420], [-122.085, 37.422], [-122.080, 37.430]]
)
# Apply the simplify method to the LinearRing object.
linearring_simplify = linearring.simplify(maxError=1)
# Print the result.
display('linearring.simplify(...) =', linearring_simplify)
# Display relevant geometries on the map.
m = geemap.Map()
m.set_center(-122.085, 37.422, 15)
m.add_layer(linearring, {'color': 'black'}, 'Geometry [black]: linearring')
m.add_layer(
linearring_simplify, {'color': 'red'}, 'Result [red]: linearring.simplify'
)
m
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2026-04-20 UTC。
[null,null,["最終更新日 2026-04-20 UTC。"],[],["The `simplify` method reduces a geometry's complexity within a specified error margin (`maxError`). It overrides default error margin propagation, ensuring consistent rendering across zoom levels. The method takes the geometry to simplify, the maximum error, and an optional projection as input. If a projection is given, the resulting geometry will be in that projection. It is demonstrated with a `LinearRing` in both Javascript and python examples and shows how to display the results.\n"]]