Signature
Parameters
bool
default:"False"
If True, export WKB values as hexadecimal strings. By default,
values are returned as binary objects.
Shapely-specific serialization options are not supported by the
distributed implementation and raise
NotImplementedError.Returns
pyspark.pandas.DataFrame
A distributed DataFrame with every geometry-typed column encoded
as WKB and all other columns unchanged.
Duplicate column labels remain subject to pandas-on-Spark’s DataFrame
construction restrictions.Unlike GeoPandas, this method returns a lazy pandas-on-Spark DataFrame.
Call
to_pandas() on the result to materialize a local pandas
DataFrame.GeoDataFrame.to_wktGeoSeries.to_wkb

