fromWKB (Geometria)
Constrói um objeto Geometry a partir de WKB.
Sintaxe
Geometry.fromWKB(wkb: bytes, srid: int)
Parâmetros
Parâmetro | Tipo | Descrição |
|---|---|---|
| bytes | Os bytes que representam o WKB da Geometria. |
| int | O valor inteiro que representa o SRID da geometria. |
Devoluções
Geometry
Exemplos
Python
from pyspark.sql.types import Geometry
wkb = bytes.fromhex('010100000000000000000031400000000000001c40')
g = Geometry.fromWKB(wkb, 0)