Main Content

properties

Return property names of geographic or planar vector

Description

prop = properties(v) returns the property names of the geographic or planar vector v.

example

Examples

collapse all

Create a mapshape vector.

ms = mapshape(shaperead('tsunamis.shp', 'UseGeoCoords', true));

Display all properties of the mapshape vector. This includes the Geometry and Metadata collection properties, the X and Y required mapshape Vertex properties, and all dynamic properties.

properties(ms)
Properties for class mapshape:

    Geometry
    Metadata
    X
    Y
    Lon
    Lat
    Year
    Month
    Day
    Hour
    Minute
    Second
    Val_Code
    Validity
    Cause_Code
    Cause
    Eq_Mag
    Country
    Location
    Max_Height
    Iida_Mag
    Intensity
    Num_Deaths
    Desc_Deaths

Input Arguments

collapse all

Geographic or planar vector, specified as a geopoint, geoshape, mappoint, or mapshape object.

Output Arguments

collapse all

Property names of geographic or planar vector v, returned as a cell array.

Version History

Introduced in R2012a

See Also

|