主要内容

本页采用了机器翻译。点击此处可查看英文原文。

矢量数据

分析并转换点、线和多边形数据

矢量数据通过点、线、面及其非空间属性来描述现实世界中的对象、位置和事件。例如,您可以用点表示城市,用线表示河流,用多边形表示国家。点、线和多边形的顶点可采用地理坐标(纬度-经度)或投影坐标(x-y)表示。

函数

全部展开

地理空间表、表和结构

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 起)

坐标插值

interpm在直线或多边形上加密经纬度采样点
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在笛卡尔坐标系中求直线与圆的交点
circcirc在笛卡尔坐标系中求圆的交点

对象

全部展开

geopointshapePoint shape in geographic coordinates (自 R2021b 起)
geolineshapeLine shape in geographic coordinates (自 R2021b 起)
geopolyshape多边形在地理坐标系中 (自 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.

修改和分析矢量数据

相关信息