gws.gis.feature

gws.gis.feature.from_geojson(js, crs, key_column='id')[source]
gws.gis.feature.from_props(p: gws.types.FeatureProps)[source]
class gws.gis.feature.FeatureProps(*args, **kwargs)[source]
class gws.gis.feature.Feature(uid=None, attributes=None, category=None, elements=None, shape=None, style=None)[source]
props
props_for_render
full_uid
template_context
attr_dict
attr(name: str)[source]
transform_to(crs) → gws.types.IFeature[source]
to_svg_tags(rv: gws.types.MapRenderView, style: gws.types.IStyle = None) → List[tuple][source]
to_svg(rv: gws.types.MapRenderView, style: gws.types.IStyle = None) → str[source]
to_geojson() → dict[source]
apply_data_model(model: gws.types.IModel = None) → gws.types.IFeature[source]
apply_templates(templates: List[gws.types.ITemplate] = None, extra_context: dict = None, keys: List[str] = None) → gws.types.IFeature[source]