Struct polars_gdal::WriteParams
source · pub struct WriteParams<'a> {
pub layer_name: Option<&'a str>,
pub geometry_column_name: Option<&'a str>,
pub geometry_format: GeometryFormat,
pub fid_column_name: Option<&'a str>,
pub srs: Option<&'a SpatialRef>,
pub geometry_type: Option<Type>,
pub options: Option<&'a [&'a str]>,
}
Expand description
Parameters to configure the conversion of a Polars DataFrame to a GDAL dataset.
Fields§
§layer_name: Option<&'a str>
For multi-layer files, the specific layer to read. If None, the first layer will be read.
geometry_column_name: Option<&'a str>
The Geometry colum name. By default geomery
will be used.
geometry_format: GeometryFormat
The Geometry format to use, defaults to WKB. In the future, this will default to GeoArrow format.
fid_column_name: Option<&'a str>
The Feature ID column name.
srs: Option<&'a SpatialRef>
The SRS of the newly created layer, or None
for no SRS.
geometry_type: Option<Type>
The type of geometry for the new layer, or None
to auto-detect the geometry type.
options: Option<&'a [&'a str]>
Additional driver-specific options to pass to GDAL, in the form name=value
.
Trait Implementations§
source§impl<'a> Debug for WriteParams<'a>
impl<'a> Debug for WriteParams<'a>
source§impl<'a> Default for WriteParams<'a>
impl<'a> Default for WriteParams<'a>
source§fn default() -> WriteParams<'a>
fn default() -> WriteParams<'a>
Returns the “default value” for a type. Read more