Documentation

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

Functions

buffermBuffer zones for latitude-longitude polygons
closePolygonPartsClose all rings in multipart polygon
extractfieldField values from structure array
flatearthpolyInsert points along date line to pole
interpmDensify latitude-longitude sampling in lines or polygons
intrplatInterpolate latitude at given longitude
intrplonInterpolate longitude at given latitude
isShapeMultipartTrue if polygon or line has multiple parts
linecircIntersections of circles and lines in Cartesian plane
maptrimlTrim lines to latitude-longitude quadrangle
maptrimpTrim polygons to latitude-longitude quadrangle
polyjoinConvert line or polygon parts from cell arrays to vector form
polymergeMerge line segments with matching endpoints
polysplitConvert line or polygon parts from vector form to cell arrays
reducemReduce density of points in vector data
removeExtraNanSeparatorsClean up NaN separators in polygons and lines
ispolycwTrue if polygon vertices are in clockwise order
poly2ccwConvert polygon contour to counterclockwise vertex ordering
poly2cwConvert polygon contour to clockwise vertex ordering
poly2fvConvert polygonal region to patch faces and vertices
polyboolSet operations on polygonal regions
polyxpolyIntersection points for lines or polygon edges

Using Objects

geopointGeographic point vector
geoshapeGeographic shape vector
mappointPlanar point vector
mapshapePlanar 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.

Concepts

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?