Vector Objects#

Opening Vectors#

open_vectors(path[, layers])

Open a vector source.

Attributes#

Vector.bounds

(minx, miny, maxx, maxy).

Vector.crs

The vector CRS.

Vector.data

Vector.field_dtypes

The field dtypes.

Vector.field_names

The field names.

Vector.field_schema

A mapping of the field names to dtypes.

Vector.geometry

The vector geometry series.

Vector.shape

The shape of the attribute table.

Vector.size

The number of vectors contained.

Vector.table

The vector attribute table.

Vector.tasks

The number of lazy operations left to be computed.

Operations#

IO#

Vector.eval()

Computes the built-up chain of operations on the underlying data.

Vector.save(path, **fiona_kwargs)

Save the vector data to a file.

Contents / Conversions#

Vector.to_crs(crs)

Transform the vector coordinates to the specified crs.

Vector.to_dask()

Returns the underlying data as a dask_geopandas.GeoDataFrame.

Vector.to_dataframe()

Returns the underlying GeoDataFrame.

Vector.to_lazy([npartitions])

Converts to a lazy dask-backed Vector.

Vector.to_raster(like[, field, ...])

Convert vector feature data to a raster.

Vector.to_shapely()

Returns the vector data as a list of shapely geometries objects.

Vector.cast_field(name, dtype)

Cast a field to the specified dtype.

Vector Ops#

Vector.buffer(*args, **kwargs)

Apply the buffer operation to the vector geometries.

Vector.simplify(*args, **kwargs)

Simplify the vector geometries.