Skip to content

VectorLayer

Layer that contains vector data

Notes
  • The data property returns a reference to the data
  • The metadata property returns a reference to the metadata
PARAMETER DESCRIPTION
data

Data

TYPE: gpd.GeoDataFrame

name

Name

TYPE: str

metadata

Metadata

TYPE: dict[str, object] | None DEFAULT: None

copy

If True, the data and metadata are copied during initialization

TYPE: bool DEFAULT: False

data property

RETURNS DESCRIPTION
gpd.GeoDataFrame

Data

name property writable

RETURNS DESCRIPTION
str

Name

metadata property writable

RETURNS DESCRIPTION
dict[str, object]

Metadata

is_copied property

RETURNS DESCRIPTION
bool

If True, the data and metadata are copied during initialization

is_in_vector property

RETURNS DESCRIPTION
bool

True if the layer is inside vector, False otherwise

__eq__

Compares the vector layers.

PARAMETER DESCRIPTION
other

Other vector layer

TYPE: object

RETURNS DESCRIPTION
bool

True if the vector layers are equal, False otherwise

__len__

Computes the number of geometries.

RETURNS DESCRIPTION
int

Number of geometries

copy

Copies the vector layer.

RETURNS DESCRIPTION
VectorLayer

Vector layer