xarray.DataArray.xvec.decode_wkb

xarray.DataArray.xvec.decode_wkb#

DataArray.xvec.decode_wkb()#

Decode geometries from Well-Known Binary (WKB) format.

This method converts all geometry coordinates and data variables in the DataArray or Dataset from WKB format back to shapely geometries. CRS information is restored from the attributes of the encoded geometries. CRS information on variable geometry will be stored using the xproj package. The wkb_encoded_geometry=True atrribute needs to be present at every variable that is supposed to be decoded.

Returns:
xr.DataArray or xr.Dataset

A new object with geometries decoded from WKB format to shapely geometries.