Earth Engine は、共有コンピューティング リソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層 を導入しています。すべての非商用プロジェクトは、
2026 年 4 月 27 日 までに割り当て階層を選択する必要があります。選択しない場合は、デフォルトでコミュニティ階層が使用されます。階層の割り当ては、
2026 年 4 月 27 日 に(階層の選択日に関係なく)すべてのプロジェクトで有効になります。
詳細
フィードバックを送信
ee.Feature.buffer
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された距離でバッファリングされた入力を返します。距離が正の値の場合、ジオメトリは拡大され、距離が負の値の場合、ジオメトリは縮小されます。
用途 戻り値 Feature. buffer (distance, maxError , proj )機能
引数 タイプ 詳細 これ: feature 要素 ジオメトリがバッファリングされるフィーチャー。 distance浮動小数点数 バッファリングの距離(負の値になる場合があります)。投影が指定されていない場合、単位はメートルです。それ以外の場合、単位は投影の座標系になります。 maxErrorErrorMargin、デフォルト: null バッファリング円を近似して必要な再投影を行う際に許容される最大誤差。指定しない場合、デフォルトで距離の 1% になります。 projProjection、デフォルト: null 指定すると、この投影でバッファリングが実行され、距離はこの投影の座標系の単位として解釈されます。それ以外の場合、距離はメートルとして解釈され、バッファリングは球座標系で実行されます。
例
コードエディタ(JavaScript)
// Polygon feature of Serengeti National Park.
var feature = ee . FeatureCollection ( 'WCMC/WDPA/202307/polygons' )
. filter ( 'ORIG_NAME == "Serengeti National Park"' )
. first ();
// Cast the resulting object as an ee.Feature so that the call to the buffer
// method is unambiguous (first() and buffer() are shared by multiple classes).
feature = ee . Feature ( feature );
// Generate buffered features out and in from the original boundary.
var bufferOut = feature . buffer ( 10000 ); // 10 km out
var bufferIn = feature . buffer ( - 10000 ); // 10 km in
// Display the features on the map.
Map . addLayer ( bufferOut , { color : 'red' }, 'Buffer out' );
Map . addLayer ( feature , { color : 'blue' }, 'No buffer' );
Map . addLayer ( bufferIn , { color : 'yellow' }, 'Buffer in' );
Map . setCenter ( 34.8407 , - 2.398 , 8 );
Python の設定
Python API とインタラクティブな開発での geemap の使用については、
Python 環境 のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# Polygon feature of Serengeti National Park.
feature = (
ee . FeatureCollection ( 'WCMC/WDPA/202307/polygons' )
. filter ( 'ORIG_NAME == "Serengeti National Park"' )
. first ()
)
# Cast the resulting object as an ee.Feature so that the call to the buffer
# method is unambiguous (first() and buffer() are shared by multiple classes).
feature = ee . Feature ( feature )
# Generate buffered features out and in from the original boundary.
buffer_out = feature . buffer ( 10000 ) # 10 km out
buffer_in = feature . buffer ( - 10000 ) # 10 km in
# Display the features on the map.
m = geemap . Map ()
m . add_layer ( buffer_out , { 'color' : 'red' }, 'Buffer out' )
m . add_layer ( feature , { 'color' : 'blue' }, 'No buffer' )
m . add_layer ( buffer_in , { 'color' : 'yellow' }, 'Buffer in' )
m . set_center ( 34.8407 , - 2.398 , 8 )
m
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
ご意見をお聞かせください
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[],["The `buffer()` method expands or contracts a feature's geometry by a specified distance. A positive distance expands the geometry, while a negative distance contracts it. The `distance` is in meters unless a `proj` projection is given, in which case the units are in the projection's coordinate system. An optional `maxError` sets tolerance. The method returns a new `Feature` that represents the geometry buffered with the parameters used.\n"]]