geopyspark.vector_pipe package¶
-
class
geopyspark.vector_pipe.
Feature
¶ Represents a geometry that is derived from an OSM Element with that Element’s associated metadata.
Parameters: - geometry (shapely.geometry) – The geometry of the feature that is represented as
a
shapely.geometry
. This geometry is derived from an OSM Element. - properties (
Properties
orCellValue
) – The metadata associated with the OSM Element. Can be represented as either an instance ofProperties
or aCellValue
.
-
geometry
¶ shapely.geometry – The geometry of the feature that is represented as a
shapely.geometry
. This geometry is derived from an OSM Element.
-
properties
¶ Properties
orCellValue
– The metadata associated with the OSM Element. Can be represented as either an instance ofProperties
or aCellValue
.
-
count
(value) → integer -- return number of occurrences of value¶
-
geometry
Alias for field number 0
-
index
(value[, start[, stop]]) → integer -- return first index of value.¶ Raises ValueError if the value is not present.
-
properties
Alias for field number 1
- geometry (shapely.geometry) – The geometry of the feature that is represented as
a
-
class
geopyspark.vector_pipe.
Properties
¶ Represents the metadata of an OSM Element.
This object is one of two types that can be used to represent the
properties
of aFeature
.Parameters: - element_id (int) – The
id
of the OSM Element. - user (str) – The display name of the last user who modified/created the OSM Element.
- uid (int) – The numeric id of the last user who modified the OSM Element.
- changeset (int) – The OSM
changeset
number in which the OSM Element was created/modified. - version (int) – The edit version of the OSM Element.
- minor_version (int) – Represents minor changes between versions of an OSM Element.
- timestamp (datetime.datetime) – The time of the last modification to the OSM Element.
- visible (bool) – Represents whether or not the OSM Element is deleted or not in the database.
- tags (dict) – A
dict
ofstr
s that represents the given features of the OSM Element.
-
element_id
¶ int – The
id
of the OSM Element.
-
user
¶ str – The display name of the last user who modified/created the OSM Element.
-
uid
¶ int – The numeric id of the last user who modified the OSM Element.
-
changeset
¶ int – The OSM
changeset
number in which the OSM Element was created/modified.
-
version
¶ int – The edit version of the OSM Element.
-
minor_version
¶ int – Represents minor changes between versions of an OSM Element.
-
timestamp
¶ datetime.datetime – The time of the last modification to the OSM Element.
-
visible
¶ bool – Represents whether or not the OSM Element is deleted or not in the database.
dict – A
dict
ofstr
s that represents the given features of the OSM Element.
-
changeset
Alias for field number 3
-
count
(value) → integer -- return number of occurrences of value¶
-
element_id
Alias for field number 0
-
index
(value[, start[, stop]]) → integer -- return first index of value.¶ Raises ValueError if the value is not present.
-
minor_version
Alias for field number 5
-
tags
Alias for field number 8
-
timestamp
Alias for field number 6
-
uid
Alias for field number 2
-
user
Alias for field number 1
-
version
Alias for field number 4
-
visible
Alias for field number 7
- element_id (int) – The
-
class
geopyspark.vector_pipe.
CellValue
¶ Represents the
value
andzindex
of a geometry.This object is one of two types that can be used to represent the
properties
of aFeature
.Parameters: - value (int or float) – The value of all cells that intersects the associated geometry.
- zindex (int) – The
Z-Index
of each cell that intersects the associated geometry.Z-Index
determines which value a cell should be if multiple geometries intersect it. A highZ-Index
will always be in front of aZ-Index
of a lower value.
-
value
¶ int or float – The value of all cells that intersects the associated geometry.
-
zindex
¶ int – The
Z-Index
of each cell that intersects the associated geometry.Z-Index
determines which value a cell should be if multiple geometries intersect it. A highZ-Index
will always be in front of aZ-Index
of a lower value.
-
count
(value) → integer -- return number of occurrences of value¶
-
index
(value[, start[, stop]]) → integer -- return first index of value.¶ Raises ValueError if the value is not present.
-
value
Alias for field number 0
-
zindex
Alias for field number 1