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 vertices to counterclockwise order|
|Convert polygon vertices to clockwise order|
|Convert polygon coordinates 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
|Query geographic or planar points in polygon|
|Determine if polygon vertices are in clockwise order|
|Determine which array elements are multipoint shapes|
|Determine if input is geospatial table|
|True if polygon or line has multiple parts|
|Field values from structure array|
Modify Vector Data
|Densify latitude-longitude sampling in lines or polygons|
|Interpolate latitude at given longitude|
|Interpolate longitude at given latitude|
Clip Points, Lines, and Polygons
|Clip geographic shape to latitude-longitude limits|
|Clip shape to xy-limits in planar coordinates|
|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
- 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 vector feature, and the coordinates of points in the vector.
Modify and Analyze Vector Data
- 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.
- 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.
- Vector Intersections
Calculate the intersections of vector data, circles, and rhumb lines.