お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
ee.Geometry.Polygon.cutLines
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
LineString、MultiLineString、LinearRing ジオメトリを、長さに沿って指定された距離以下の部分に分割して MultiLineString に変換します。他のすべてのジオメトリ タイプは、空の MultiLineString に変換されます。
| 用途 | 戻り値 |
|---|
Polygon.cutLines(distances, maxError, proj) | ジオメトリ |
| 引数 | タイプ | 詳細 |
|---|
これ: geometry | ジオメトリ | このジオメトリの線をカットします。 |
distances | リスト | 各 LineString に沿った距離。この距離で線を個別の部分に分割します。指定された proj の単位で測定されます。proj が指定されていない場合はメートル単位です。 |
maxError | ErrorMargin、デフォルト: null | 必要な再投影を行う際に許容される最大誤差。 |
proj | Projection、デフォルト: null | 結果と距離の測定値の投影。指定されていない場合は EPSG:4326。 |
例
コードエディタ(JavaScript)
// Notice: the cutLines geometry method applies only to LineString,
// MultiLineString, and LinearRing geometries. All other geometry types result
// in an empty MultiLineString.
Python の設定
Python API とインタラクティブな開発での geemap の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
# Notice: the cutLines geometry method applies only to LineString,
# MultiLineString, and LinearRing geometries. All other geometry types result
# in an empty MultiLineString.
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],["The `cutLines` method transforms LineString, MultiLineString, and LinearRing geometries into a MultiLineString. It divides these geometries into segments based on specified distances along their length. The `distances` parameter dictates the cutting points, measured in units defined by the `proj` parameter (or meters if unspecified). `maxError` defines tolerance during reprojection. Other geometry types are converted to an empty MultiLineString. The method is not available in the example provided in Javascript. The python example only show how to import the libraries.\n"]]