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 (
PropertiesorCellValue) – The metadata associated with the OSM Element. Can be represented as either an instance ofPropertiesor 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¶ PropertiesorCellValue– The metadata associated with the OSM Element. Can be represented as either an instance ofPropertiesor 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
propertiesof aFeature.Parameters: - element_id (int) – The
idof 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
changesetnumber 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
dictofstrs that represents the given features of the OSM Element.
-
element_id¶ int – The
idof 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
changesetnumber 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
dictofstrs 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
valueandzindexof a geometry.This object is one of two types that can be used to represent the
propertiesof aFeature.Parameters: - value (int or float) – The value of all cells that intersects the associated geometry.
- zindex (int) – The
Z-Indexof each cell that intersects the associated geometry.Z-Indexdetermines which value a cell should be if multiple geometries intersect it. A highZ-Indexwill always be in front of aZ-Indexof a lower value.
-
value¶ int or float – The value of all cells that intersects the associated geometry.
-
zindex¶ int – The
Z-Indexof each cell that intersects the associated geometry.Z-Indexdetermines which value a cell should be if multiple geometries intersect it. A highZ-Indexwill always be in front of aZ-Indexof 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