主要内容

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

矢量数据

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

矢量数据通过点、线、面及其非空间属性来描述现实世界中的对象、位置和事件。例如,您可以用点表示城市,用线表示河流,用多边形表示国家。点、线和多边形的顶点可采用地理坐标(纬度-经度)或投影坐标 (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
poly2cw将多边形顶点转换为顺时针顺序
poly2fvConvert polygon coordinates to patch faces and vertices
polyjoin将元胞数组中的线段或多边形部分转换为向量形式
polymergeMerge line segments with matching endpoints
polysplit将线段或多边形部分从向量形式转换为元胞数组
closePolygonParts关闭多段多边形中的所有环
removeExtraNanSeparators清理多边形和线段中的 NaN 分隔符

查询

boundsBounds of shape in geographic or planar coordinates (自 R2024b 起)
isinteriorQuery geographic or planar points in polygon (自 R2022a 起)
ispolycw判断多边形顶点是否按顺时针顺序排列
ismultipointDetermine which array elements are multipoint shapes (自 R2022b 起)
isgeotable判断输入是否为地理空间表 (自 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 specified longitude
intrplonInterpolate longitude at specified latitude

剪切点、线和多边形

geoclipClip geographic shape to latitude-longitude limits or polygon (自 R2022a 起)
mapclipClip planar shape to xy-limits or polygon (自 R2022a 起)
maptriml将线段裁剪为经纬度四边形
maptrimp将多边形裁剪为经纬度四边形
nanclipClip vector data with NaNs at specified pen-down locations
flatearthpolyClip polygon to world limits

缓冲或降低密度

bufferBuffer shape in geographic or planar coordinates (自 R2024b 起)
bufferm经纬度多边形的缓冲区
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

主题

向量数据表示法

  • 创建地理空间表
    地理空间表包含点、线和多边形数据的几何形状及属性。从向量数据文件导入地理空间表、将表转换为地理空间表,或从数组创建地理空间表。
  • 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.

修改和分析矢量数据

相关信息