geopyspark.vector_pipe.features_collection module

class geopyspark.vector_pipe.features_collection.FeaturesCollection(scala_features)

Represents a collection of features from OSM data. A feature is a geometry that is derived from an OSM Element with that Element’s associated metadata. These features are grouped together by their geometry type.

There are 4 different types of geometries that a feature can contain:
  • Points
  • Lines
  • Polygons
  • MultiPolygons
Parameters:scala_features (py4j.JavaObject) – The Scala representation of FeaturesCollection.
scala_features

py4j.JavaObject – The Scala representation of FeaturesCollection.

get_line_features_rdd()

Returns each Line feature in the FeaturesCollection as a Feature in a Python RDD.

Returns:RDD[Feature]
get_line_tags()

Returns all of the unique tags for all of the Lines in the FeaturesCollection as a dict. Both the keys and values of the dict will be strs.

Returns:dict
get_multipolygon_features_rdd()

Returns each MultiPolygon feature in the FeaturesCollection as a Feature in a Python RDD.

Returns:RDD[Feature]
get_multipolygon_tags()

Returns all of the unique tags for all of the MultiPolygons in the FeaturesCollection as a dict. Both the keys and values of the dict will be strs.

Returns:dict
get_point_features_rdd()

Returns each Point feature in the FeaturesCollection as a Feature in a Python RDD.

Returns:RDD[Feature]
get_point_tags()

Returns all of the unique tags for all of the Points in the FeaturesCollection as a dict. Both the keys and values of the dict will be strs.

Returns:dict
get_polygon_features_rdd()

Returns each Polygon feature in the FeaturesCollection as a Feature in a Python RDD.

Returns:RDD[Feature]
get_polygon_tags()

Returns all of the unique tags for all of the Polygons in the FeaturesCollection as a dict. Both the keys and values of the dict will be strs.

Returns:dict