gws.plugin.geojson.layer

The geojson layer.

Source code: gws.plugin.geojson.layer

Module Contents

class gws.plugin.geojson.layer.Config

Bases: gws.base.layer.Config

Vector layer with features from a GeoJSON file.

provider: Config.provider

GeoJSON file with the layer features.

class gws.plugin.geojson.layer.Object

Bases: gws.base.layer.vector.Object

GeoJSON layer.

provider: Object.provider

The GeoJSON provider.

configure()
configure_extent()
configure_models()
configure_provider()
create_finder(cfg)

Create a GeoJSON finder that uses the provider of the layer.

Parameters:

cfg – Finder configuration, or None for the default finder.

Returns:

The finder.

create_model(cfg)

Create a GeoJSON model that uses the provider of the layer.

Parameters:

cfg – Model configuration, or None for the default model.

Returns:

The model.