geopyspark.vector_pipe.features_collection module¶
-
class
geopyspark.vector_pipe.features_collection.FeaturesCollection(scala_features)¶ Represents a collection of features from OSM data. A
featureis a geometry that is derived from an OSM Element with that Element’s associated metadata. Thesefeatures are grouped together by their geometry type.- There are 4 different types of geometries that a
featurecan contain: PointsLinesPolygonsMultiPolygons
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
Linefeaturein theFeaturesCollectionas aFeaturein a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
Lines in theFeaturesCollectionas adict. Both the keys and values of thedictwill bestrs.Returns: dict
-
get_multipolygon_features_rdd()¶ Returns each
MultiPolygonfeaturein theFeaturesCollectionas aFeaturein a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
MultiPolygons in theFeaturesCollectionas adict. Both the keys and values of thedictwill bestrs.Returns: dict
-
get_point_features_rdd()¶ Returns each
Pointfeaturein theFeaturesCollectionas aFeaturein a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
Points in theFeaturesCollectionas adict. Both the keys and values of thedictwill bestrs.Returns: dict
-
get_polygon_features_rdd()¶ Returns each
Polygonfeaturein theFeaturesCollectionas aFeaturein a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
Polygons in theFeaturesCollectionas adict. Both the keys and values of thedictwill bestrs.Returns: dict
- There are 4 different types of geometries that a