table2geotable
Syntax
Description
creates the GT = table2geotable(T,coordinateSystemType,varnames)Shape variable of GT by using the
coordinate system type coordinateSystemType and table variables
varnames. Use this syntax to create the Shape
variable from well-known text (WKT) string representations of geometry or from coordinate
data.
specifies options using name-value arguments. For example, specify that coordinates
represent points, lines, or polygons by using the GT = table2geotable(___,Name=Value)GeometryType
name-value argument. Use this syntax with any of the input arguments in the previous
syntaxes.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
When the input table has latitude-longitude fields and x-y variables, the
table2geotablefunction creates the geospatial table using the latitude-longitude variables. Create the geospatial table using the x-y variables by specifying thecoordinateSystemTypeandvarnamesarguments.
Version History
Introduced in R2021b