Skip to main content
Encode all geometry columns in the GeoDataFrame to WKB.

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.
See also
  • GeoDataFrame.to_wkt
  • GeoSeries.to_wkb