注: 以下の翻訳の正確性は検証されていません。AIPを利用して英語版の原文から機械的に翻訳されたものです。

ジオメトリの簡略化

サポート対象: Batch, Streaming

この式は、地球の球面モデルを使用して、指定された許容誤差距離内のポイントを削除することで GeoJSON ジオメトリを簡略化します。許容誤差より小さいループは完全に削除される場合があります。

式カテゴリー: Geospatial

引数

  • Geometry - 有効な GeoJSON ジオメトリ。
    Expression<Geometry>
  • Tolerance - 許容誤差 (メートル)。
    Expression<Long>
  • 任意 Coordinate precision - 座標の最大小数点以下桁数 (デフォルトは小数点以下 6 桁)。
    Expression<Long>

出力タイプ: Geometry

例 1: 基本ケース

引数の値:

  • Geometry: Geometry
  • Tolerance: Tolerance
  • Coordinate precision: null
GeometryToleranceOutput
{"type":"LineString","coordinates":[[30.0,0.0],[35.0,0.0],[40.0,0.0]]}1000{"type":"LineString","coordinates":[[30.0,0.0],[40.0,0.0]]}
{"type":"Polygon","coordinates":[[[-1.0,-1.0],[1.0,-1.0],[1.0,1.0],[0.0,1.0],[-1.0,1.0],[-1.0,-1.0]]]}12000{"type":"Polygon","coordinates":[[[-1.0,1.0],[1.0,1.0],[1.0,-1.0],[-1.0,-1.0],[-1.0,1.0]]]}
{"type":"MultiLineString","coordinates":[[[0.0,0.0],[5.0,0.1],[10.0,0.0]], [[0.0,-5.0],[5.0,0.1],[10.0,5.0]]]}12000{"type":"MultiLineString","coordinates":[[[0.0,0.0],[10.0,0.0]],[[0.0,-5.0],[10.0,5.0]]]}
{"type":"MultiPolygon","coordinates":[[[[-2.0,-2.0],[2.0,-2.0],[2.0,2.0],[0.0,2.1],[-2.0,2.0],[-2.0,...12000{"type":"MultiPolygon","coordinates":[[[[-2.0,2.0],[2.0,2.0],[2.0,-2.0],[-2.0,-2.0],[-2.0,2.0]], [[1...

例 2: 基本ケース

引数の値:

  • Geometry: Geometry
  • Tolerance: Tolerance
  • Coordinate precision: Coordinate precision
GeometryToleranceCoordinate precisionOutput
{"type":"Polygon","coordinates":[[[-1.012345,-1.0],[1.012345,-1.0],[1.012345,1.0],[0.0,1.0],[-1.012345,1.0],[-1.012345,-1.0]]]}120003{"type":"Polygon","coordinates":[[[-1.012,1.0],[1.012,1.0],[1.012,-1.0],[-1.012,-1.0],[-1.012,1.0]]]}
{"type":"Polygon","coordinates":[[[-1.0123456789,-1.0],[1.0123456789,-1.0],[1.0123456789,1.0],[0.0,1.0],[-1.0123456789,1.0],[-1.0123456789,-1.0]]]}120006{"type":"Polygon","coordinates":[[[-1.012346,1.0],[1.012346,1.0],[1.012346,-1.0],[-1.012346,-1.0],[-1.012346,1.0]]]}
{"type":"Polygon","coordinates":[[[-1.0123456789,-1.0],[1.0123456789,-1.0],[1.0123456789,1.0],[0.0,1.0],[-1.0123456789,1.0],[-1.0123456789,-1.0]]]}1200010{"type":"Polygon","coordinates":[[[-1.0123456789,1.0],[1.0123456789,1.0],[1.0123456789,-1.0],[-1.0123456789,-1.0],[-1.0123456789,1.0]]]}

例 3: Null ケース

引数の値:

  • Geometry: Geometry
  • Tolerance: Tolerance
  • Coordinate precision: null
GeometryToleranceOutput
null0null

例 4: エッジケース

引数の値:

  • Geometry: Geometry
  • Tolerance: Tolerance
  • Coordinate precision: Coordinate precision
GeometryToleranceCoordinate precisionOutput
{"type":"Polygon","coordinates":[[[-1.0,-1.0],[1.0,-1.0],[1.0,1.0],[0.0,1.0],[-1.0,1.0],[-1.0,-1.0]]]}2000003null
{"type":"Polygon","coordinates":[[[-1.0,-1.0],[1.0,-1.0],[1.0,1.0],[0.0,1.0],[-1.0,1.0],[-1.0,-1.0]],[[5.0,0.0],[10.0,0.0],[10.0,5.0],[5.0,5.0],[5.0,0.0]]]}2000003{"type":"Polygon","coordinates":[[[10.0, 5.0], [10.0, 0.0], [5.0, 0.0], [5.0, 5.0], [10.0, 5.0]]]}
{"type":"MultiPolygon","coordinates":[[[[-1.0,-1.0],[1.0,-1.0],[1.0,1.0],[0.0,1.0],[-1.0,1.0],[-1.0,-1.0]]],[[[5.0,0.0],[10.0,0.0],[10.0,5.0],[5.0,5.0],[5.0,0.0]]]]}2000003{"coordinates":[[[10.0, 5.0], [10.0, 0.0], [5.0, 0.0], [5.0, 5.0], [10.0, 5.0]]], "type":"Polygon"}
{"type":"MultiPolygon","coordinates":[[[[-1.0,-1.0],[1.0,-1.0],[1.0,1.0],[0.0,1.0],[-1.0,1.0],[-1.0,-1.0]]],[[[5.0,0.0],[10.0,0.0],[10.0,5.0],[5.0,5.0],[5.0,0.0]]]]}5000003null
{"type":"GeometryCollection","geometries":[{"type":"MultiLineString","coordinates":[[[0.0,0.0],[5.0,...5000003{"type":"GeometryCollection","geometries":[{"type":"MultiLineString","coordinates":[[[0.0, 0.0], [10.0, 0.0]], [[0.0, -5.0],[10.0, 5.0]]]}]}
{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[-1.0,-1.0],[1.0,-1.0],...5000003null