gws.base.feature

Source code: gws.base.feature

Package Contents

class gws.base.feature.Feature(model: gws.Model)

Bases: gws.Feature

Feature object.

attributes
category = ''
createWithFeatures = []
cssSelector = ''
errors = []
insertedPrimaryKey = ''
isNew = False
model
views
get(name, default=None)
has(name)
raw(name)
render_views(templates, **kwargs)
set(name, value)
shape()
to_svg(view, label=None, style=None)
transform_to(crs) gws.Feature
uid()
gws.base.feature.new(model: gws.Model, attributes: dict | None = None, record: gws.FeatureRecord | None = None, props: gws.FeatureProps | None = None) gws.Feature