This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Vector Data

Analyze and transform point, line, and polygon data


bufferm Buffer zones for latitude-longitude polygons
closePolygonParts Close all rings in multipart polygon
extractfield Field values from structure array
flatearthpoly Insert points along date line to pole
interpm Densify latitude-longitude sampling in lines or polygons
intrplat Interpolate latitude at given longitude
intrplon Interpolate longitude at given latitude
isShapeMultipart True if polygon or line has multiple parts
linecirc Intersections of circles and lines in Cartesian plane
maptriml Trim lines to latitude-longitude quadrangle
maptrimp Trim polygons to latitude-longitude quadrangle
polyjoin Convert line or polygon parts from cell arrays to vector form
polymerge Merge line segments with matching endpoints
polysplit Convert line or polygon parts from vector form to cell arrays
reducem Reduce density of points in vector data
removeExtraNanSeparators Clean up NaN separators in polygons and lines
ispolycw True if polygon vertices are in clockwise order
poly2ccw Convert polygon contour to counterclockwise vertex ordering
poly2cw Convert polygon contour to clockwise vertex ordering
poly2fv Convert polygonal region to patch faces and vertices
polybool Set operations on polygonal regions
polyxpoly Intersection points for lines or polygon edges


geopoint Geographic point vector
geoshape Geographic shape vector
mappoint Planar point vector
mapshape Planar shape vector

Examples and How To

Inspect an Example of Vector Map Data

This example shows how to display vector map data and examine vector data values.

Extracting and Joining Polygons or Line Segments

This example shows how to identify line or patch segments and how to separate or join individual polygon or line segments.

Link Line Segments into Polygons Using the polymerge Function

This example shows how to link line segments into polygons using the polymerge function.

Interpolate Vertices Between Known Data Points

This example shows how to interpolate values in a set of vertices using the interpm function.

Interpolate Coordinates at Specific Locations

This example shows how to interpolate coordinates at specific locations using intrplat and intrplon functions.

Overlay Polygons Using Set Logic

This example shows how to overlay polygons using set logic.

Remove Longitude Coordinate Discontinuities at Date Line Crossings

This example shows how to remove longitude coordinate discontinuities at date line crossings.

Generate Buffer Internal to Polygon

This example shows how to generate a buffer zone internal to a land area polygon using the bufferm function.

Trim Vectors to Form Lines and Polygons

This example shows how to trim vectors to form lines and polygons using the maptriml and maptrimp functions.

Trimming Vector Data to an Arbitrary Region

Filter a vector data set to remove data outside a region of interest.

Simplify Polygon and Line Data

This example shows how to simplify polygon and line data using the reducem function.

Calculate Intersections of Arbitrary Vector Data

This example shows how to calculate the intersections of arbitrary vector data, such as polylines or polygons, using the polyxpoly function.


Vector Geodata

Vector geodata consists of sequentially ordered pairs of geographic (latitude, longitude) or projected (x,y) coordinate pairs.

Buffer Zones

A buffer zone is the area within a specified distance of a map feature. The shape of the buffer zone depends on the type of geodata or feature.

Geographic Interpolation of Vectors

Geographic data interpolation provides information about topography between sampled data points.

Polygon Set Logic

Polygon objects allow standard set operations.

Vector Coordinate Data Simplification

Eliminate visually redundant coordinates to remove unnecessary detail, and to speed and stylize map displays.

Segments Versus Polygons

Geographic objects represented by vector data might or might not be formatted as polygons.

Vector Intersections

Calculate the intersections of vector data, circles, and rhumb lines.

Mapping Toolbox Geographic Data Structures

A geographic data structure is a structure array with one element per geographic feature.

Points, Lines, and Polygons

Vector data can represent entities of different dimensionality.

Was this topic helpful?