Earth Engine は、共有コンピューティング リソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層 を導入しています。すべての非商用プロジェクトは、
2026 年 4 月 27 日 までに割り当て階層を選択する必要があります。選択しない場合は、デフォルトでコミュニティ階層が使用されます。階層の割り当ては、
2026 年 4 月 27 日 に(階層の選択日に関係なく)すべてのプロジェクトで有効になります。
詳細
フィードバックを送信
ee.Geometry.LinearRing.intersection
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
2 つのジオメトリの交差を返します。
用途 戻り値 LinearRing. intersection (right, maxError , proj )ジオメトリ
引数 タイプ 詳細 これ: left ジオメトリ オペレーションの左オペランドとして使用されるジオメトリ。 rightジオメトリ 演算の右オペランドとして使用されるジオメトリ。 maxErrorErrorMargin、デフォルト: null 必要な再投影を行う際に許容される最大誤差。 projProjection、デフォルト: null オペレーションを実行するプロジェクション。指定しない場合、演算は球面座標系で実行され、線形距離は球面のメートル単位になります。
例
コードエディタ(JavaScript)
// Define a LinearRing object.
var linearRing = ee . Geometry . LinearRing (
[[ - 122.091 , 37.420 ],
[ - 122.085 , 37.422 ],
[ - 122.080 , 37.430 ]]);
// Define other inputs.
var inputGeom = ee . Geometry . BBox ( - 122.085 , 37.415 , - 122.075 , 37.425 );
// Apply the intersection method to the LinearRing object.
var linearRingIntersection = linearRing . intersection ({ 'right' : inputGeom , 'maxError' : 1 });
// Print the result to the console.
print ( 'linearRing.intersection(...) =' , linearRingIntersection );
// Display relevant geometries on the map.
Map . setCenter ( - 122.085 , 37.422 , 15 );
Map . addLayer ( linearRing ,
{ 'color' : 'black' },
'Geometry [black]: linearRing' );
Map . addLayer ( inputGeom ,
{ 'color' : 'blue' },
'Parameter [blue]: inputGeom' );
Map . addLayer ( linearRingIntersection ,
{ 'color' : 'red' },
'Result [red]: linearRing.intersection' );
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 ]]
)
# Define other inputs.
input_geom = ee . Geometry . BBox ( - 122.085 , 37.415 , - 122.075 , 37.425 )
# Apply the intersection method to the LinearRing object.
linearring_intersection = linearring . intersection ( right = input_geom , maxError = 1 )
# Print the result.
display ( 'linearring.intersection(...) =' , linearring_intersection )
# 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 ( input_geom , { 'color' : 'blue' }, 'Parameter [blue]: input_geom' )
m . add_layer (
linearring_intersection ,
{ 'color' : 'red' },
'Result [red]: linearring.intersection' ,
)
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 `intersection` method computes the overlapping area between two geometries. It takes a `right` geometry as input, and optionally `maxError` for reprojection tolerance, and `proj` for a specific projection. The method is used by calling it on a `LinearRing` geometry with the other geometry provided as an argument. The output, which represents the intersection, is also a geometry, the result of which is returned.\n"]]