stilt.config.FileGeometrySpec#

class stilt.config.FileGeometrySpec(*, kind: Literal['file'] = 'file', path: str, ids: str | None = None, layer: str | None = None, where: str | None = None) → None[source]#

Polygons read from a vector file such as a shapefile or GeoPackage.

Parameters#

Parameter

Description

Default

kind

'file'

path

Path to the vector file.

Required

ids

Attribute column holding the cell ids. Unset uses the row number.

None

layer

Layer to read from a multi-layer file.

None

where

Attribute filter as an OGR SQL WHERE clause.

None

Methods#

build()

Read the file into a stilt.Mesh.