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. Thesefeature
s are grouped together by their geometry type.- There are 4 different types of geometries that a
feature
can contain: Point
sLine
sPolygon
sMultiPolygon
s
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 theFeaturesCollection
as aFeature
in a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
Line
s in theFeaturesCollection
as adict
. Both the keys and values of thedict
will bestr
s.Returns: dict
-
get_multipolygon_features_rdd
()¶ Returns each
MultiPolygon
feature
in theFeaturesCollection
as aFeature
in a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
MultiPolygon
s in theFeaturesCollection
as adict
. Both the keys and values of thedict
will bestr
s.Returns: dict
-
get_point_features_rdd
()¶ Returns each
Point
feature
in theFeaturesCollection
as aFeature
in a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
Point
s in theFeaturesCollection
as adict
. Both the keys and values of thedict
will bestr
s.Returns: dict
-
get_polygon_features_rdd
()¶ Returns each
Polygon
feature
in theFeaturesCollection
as aFeature
in a Python RDD.Returns: RDD[Feature]
Returns all of the unique tags for all of the
Polygon
s in theFeaturesCollection
as adict
. Both the keys and values of thedict
will bestr
s.Returns: dict
- There are 4 different types of geometries that a