メインコンテンツ

このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。

ベクトル データ

ポイント、ライン、ポリゴンデータを解析および変換

ベクトル データは、ポイント、ライン、ポリゴン、およびそれらの非空間属性を使用して、現実世界のオブジェクト、場所、イベントを記述します。たとえば、都市は点を使用して、川はラインを使用して、国は多角形を使用して表すことができます。ポイント、ライン、ポリゴンの頂点は、地理座標 (緯度-経度) または投影座標 (x-y) で表すことができます。

関数

すべて展開する

地理空間table、table、構造

geotable2tableConvert geospatial table to table (R2021b 以降)
table2geotableConvert table to geospatial table (R2021b 以降)
struct2geotableConvert structure array to geospatial table (R2021b 以降)

ラインと多角形の座標配列

poly2ccwConvert polygon vertices to counterclockwise order
poly2cwConvert polygon vertices to clockwise order
poly2fvConvert polygon coordinates to patch faces and vertices
polyjoinラインまたはポリゴン部分をセル配列からベクトル形式に変換する
polymergeMerge line segments with matching endpoints
polysplitConvert line or polygon parts from vector form to cell arrays
closePolygonPartsClose all rings in multipart polygon
removeExtraNanSeparatorsClean up NaN separators in polygons and lines

クエリ

boundsBounds of shape in geographic or planar coordinates (R2024b 以降)
isinteriorQuery geographic or planar points in polygon (R2022a 以降)
ispolycwDetermine if polygon vertices are in clockwise order
ismultipointDetermine which array elements are multipoint shapes (R2022b 以降)
isgeotableDetermine if input is geospatial table (R2021b 以降)
isShapeMultipartDetermine if line or polygon has multiple parts
extractfield構造体配列からのフィールド値

幾何学的量

areaArea of polygon shape in geographic or planar coordinates (R2024a 以降)
perimeterPerimeter of polygon shape in geographic or planar coordinates (R2024a 以降)
linelengthLength of line shape in geographic or planar coordinates (R2024a 以降)

座標の補間

interpmDensify latitude-longitude sampling in lines or polygons
intrplatInterpolate latitude at given longitude
intrplonInterpolate longitude at given latitude

ポイント、ライン、ポリゴンをクリップする

geoclipClip geographic shape to latitude-longitude limits or polygon (R2022a 以降)
mapclipClip planar shape to xy-limits or polygon (R2022a 以降)
maptrimlTrim lines to latitude-longitude quadrangle
maptrimpTrim polygons to latitude-longitude quadrangle
nanclipClip vector data with NaNs at specified pen-down locations
flatearthpolyClip polygon to world limits

バッファリングまたは密度の低減

bufferBuffer shape in geographic or planar coordinates (R2024b 以降)
buffermBuffer zones for latitude-longitude polygons
reducemReduce density of points in vector data
intersectIntersection of shapes in geographic or planar coordinates (R2025a 以降)
unionUnion of shapes in geographic or planar coordinates (R2025a 以降)
subtractDifference of shapes in geographic or planar coordinates (R2025a 以降)
xorExclusive OR of shapes in geographic or planar coordinates (R2025a 以降)
polyxpolyラインまたはポリゴンエッジの交点
linecirc直交座標で直線と円の交点を求める
circcircFind intersection of circles in Cartesian coordinates

オブジェクト

すべて展開する

geopointshapePoint shape in geographic coordinates (R2021b 以降)
geolineshapeLine shape in geographic coordinates (R2021b 以降)
geopolyshapePolygon in geographic coordinates (R2021b 以降)
mappointshapePoint shape in planar coordinates (R2021b 以降)
maplineshapeLine shape in planar coordinates (R2021b 以降)
mappolyshapePolygon in planar coordinates (R2021b 以降)
geopointGeographic point vector
geoshapeGeographic shape vector
mappointPlanar point vector
mapshapePlanar shape vector

トピック

ベクトル データ表現

  • Create Geospatial Tables
    Geospatial tables contain shapes and attributes for point, line, and polygon data. Import geospatial tables from vector data files, convert tables to geospatial tables, or create geospatial tables from arrays.
  • Geographic Data Structures
    A geographic data structure stores geographic features as elements in a structure array. The structure has fields such as the geometry of the feature and the coordinates of points in the vector.

ベクトル データの変更と解析

  • Combine Vector Data Using Table Joins
    Link vector data in tables and geospatial tables according to shared attributes.
  • Create and Display Polygons
    Display polygons using map or geographic coordinates.
  • Compare Polygons and Line Segments
    Geographic objects represented by vector data might or might not be formatted as polygons. Imagine two variables, latcoast and loncoast, that correspond to a sequence of points that caricature the coast of the island of Great Britain. If this data returns to its starting point, then a polygon describing Great Britain exists. This data might be plotted as a patch or as a line, and it might be logically employed in calculations as either.
  • Simplify Vector Coordinate Data
    Eliminate visually redundant coordinates to remove unnecessary detail, and to speed and stylize map displays.
  • Geographic Interpolation of Vectors
    Geographic data interpolation infers the value of geographic data at locations between sampled data points.
  • Find Vector Intersection Points
    Calculate the intersection points of lines, polygons, and circles that are represented by coordinate arrays.

関連情報