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§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.