Documentation Center

  • Trial Software
  • Product Updates

rmprop

Class: geopoint

Remove properties from geopoint vector

Syntax

PF = rmprop(P,propname)
PF = rmprop(P,propnames)

Description

PF = rmprop(P,propname) removes the property specified by the string, propname from the geopoint vector, P.

PF = rmprop(P,propnames) removes all the properties specified in the cell array, propnames, from the geopoint vector, P. If propnames contains a coordinate property an error is issued.

    Note:   rmprop cannot remove Latitude, Longitude and Metadata fields and the string specified is case sensitive.

Input Arguments

P

geopoint vector.

Output Arguments

PF

Modified geopoint vector with the specified property(s) removed.

Examples

expand all

Remove a property of a geopoint vector

Create a geopoint vector and remove a property.

p = geopoint(shaperead('tsunamis', 'UseGeo', true));
p2 = rmprop(p, 'Validity')
p2 = 

 162x1 geopoint vector with properties:

 Collection properties:
       Geometry: 'point'
       Metadata: [1x1 struct]
 Feature properties:
       Latitude: [1x162 double]
      Longitude: [1x162 double]
           Year: [1x162 double]
          Month: [1x162 double]
            Day: [1x162 double]
           Hour: [1x162 double]
         Minute: [1x162 double]
         Second: [1x162 double]
       Val_Code: [1x162 double]
     Cause_Code: [1x162 double]
          Cause: {1x162 cell}
         Eq_Mag: [1x162 double]
        Country: {1x162 cell}
       Location: {1x162 cell}
     Max_Height: [1x162 double]
       Iida_Mag: [1x162 double]
      Intensity: [1x162 double]
     Num_Deaths: [1x162 double]
    Desc_Deaths: [1x162 double]

See Also

Was this topic helpful?