Main Content

isgeotable

Determine if input is geospatial table

Since R2021b

Description

example

tf = isgeotable(A) determines if the input A is a geospatial table. The function returns a logical 1 (true) if A is a geospatial table and a logical 0 (false) otherwise.

A geospatial table is a table or timetable object in which:

For more information about geospatial tables, see Create Geospatial Tables.

Examples

collapse all

Import a shapefile as a geospatial table. Verify that it is a geospatial table.

GT = readgeotable("concord_roads.shp");
tf = isgeotable(GT)
tf = logical
   1

Convert the geospatial table GT to a table T. The isgeotable function returns false because T is not a geospatial table.

T = geotable2table(GT);
tf = isgeotable(T)
tf = logical
   0

Input Arguments

collapse all

Input array. The array can have any data type.

Version History

Introduced in R2021b

See Also

Functions