Select properties from each Feature in a collection. It is also possible to call this function with only string arguments; they will be all be interpreted as propertySelectors (varargs).
Returns the feature collection with selected properties.
Usage | Returns |
---|---|
FeatureCollection.select(propertySelectors, newProperties, retainGeometry) | FeatureCollection |
Argument | Type | Details |
---|---|---|
this: featurecollection | FeatureCollection | The FeatureCollection instance. |
propertySelectors | List | A list of names or regexes specifying the attributes to select. |
newProperties | List, optional | A list of new names for the output properties. Must match the number of properties selected. |
retainGeometry | Boolean, optional | When false, the result will have a NULL geometry. Defaults to true. |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!