Vector data uses points, lines, polygons, and their non-spatial attributes to describe real-world objects, locations, and events. For example, you can represent a city by using a point, a river by using a line, and a country by using a polygon. The vertices of points, lines, and polygons can be in geographic (latitude-longitude) or projected (x-y) coordinates.
Geospatial Tables, Tables, and Structures
|Convert geospatial table to table|
|Convert table to geospatial table|
|Convert structure array to geospatial table|
Line and Polygon Coordinate Arrays
|Convert polygon contour to counterclockwise vertex ordering|
|Convert polygon contour to clockwise vertex ordering|
|Convert polygonal region to patch faces and vertices|
|Convert line or polygon parts from cell arrays to vector form|
|Merge line segments with matching endpoints|
|Convert line or polygon parts from vector form to cell arrays|
|Close all rings in multipart polygon|
|Clean up |
Examine Vector Data
Modify Vector Data
|Densify latitude-longitude sampling in lines or polygons|
|Interpolate latitude at given longitude|
|Interpolate longitude at given latitude|
Clip Lines and Polygons
|Trim lines to latitude-longitude quadrangle|
|Trim polygons to latitude-longitude quadrangle|
|Clip vector data with NaNs at specified pen-down locations|
|Clip polygon to world limits|
Buffer or Reduce Density
Point, Line, and Polygon Shapes
Vector Data Representations
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.
A geographic data structure stores geographic features as elements in a structure array. The structure has fields such as the geometry of the vector feature, and the coordinates of points in the vector.
Modify and Analyze Vector Data
Display polygons using map or geographic coordinates.
Eliminate visually redundant coordinates to remove unnecessary detail, and to speed and stylize map displays.
Geographic data interpolation infers the value of geographic data at locations between sampled data points.
Calculate the intersections of vector data, circles, and rhumb lines.