gws.plugin.geojson.finder

The geojson finder.

Source code: gws.plugin.geojson.finder

Module Contents

class gws.plugin.geojson.finder.Config

Bases: gws.base.search.finder.Config

Search in features from a GeoJSON file.

provider: Config.provider | None

GeoJSON file to search in.

class gws.plugin.geojson.finder.Object

Bases: gws.base.search.finder.Object

GeoJSON finder.

provider: Object.provider

The GeoJSON provider.

supportsGeometrySearch = True
configure()
configure_models()
configure_provider()

Configure the GeoJSON provider.

Returns:

True if a provider was set.

create_model(cfg)

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

Parameters:

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

Returns:

The model.