here.inspector package#
HERE Platform Python SDK, Jupyter GeoData Inspector package
- here.inspector.inspect(features: GeoSeries | GeoDataFrame | BaseGeometry | Iterable[BaseGeometry] | Iterable[Tuple[BaseGeometry, Dict[str, Any]]] | Dict[str, Any] | Iterable[Dict[str, Any]] | None = None, name=None, style: Color | Dict | None = None, layers: Mapping[Any, GeoSeries | GeoDataFrame | BaseGeometry | Iterable[BaseGeometry] | Iterable[Tuple[BaseGeometry, Dict[str, Any]]] | Dict[str, Any] | Iterable[Dict[str, Any]]] | Sequence[Tuple[Any, GeoSeries | GeoDataFrame | BaseGeometry | Iterable[BaseGeometry] | Iterable[Tuple[BaseGeometry, Dict[str, Any]]] | Dict[str, Any] | Iterable[Dict[str, Any]]] | Tuple[Any, GeoSeries | GeoDataFrame | BaseGeometry | Iterable[BaseGeometry] | Iterable[Tuple[BaseGeometry, Dict[str, Any]]] | Dict[str, Any] | Iterable[Dict[str, Any]], Color | Dict]] | None = None, layers_style: Mapping[Any, Color | Dict] | None = None, tiles: Series | Iterable[int] | None = None, tiles_style: Color | Dict | None = None, center: Point | None = None, zoom: int | None = None, theme: Theme | None = None)[source]#
Shorthand function to instantiate, configure and show the inspector.
It supports the majority of the features of the inspector. For finer control, please manually instantiate, configure and
show()anInspectorimplementation.- Parameters:
features –
an optional set of attributed geometries. Supported types: -
gpd.GeoSeries, unattributed geometries -gpd.GeoDataFrame, attributes geometries -BaseGeometry, individual geometries -Iterableof BaseGeometry, it can be any containerbut also a
Generatorof unattributed geometriesIterableof pairs ofBaseGeometryandDict, it can be any containerbut also a
Generatorof geometries paired with attributes
Dicta parsed GeoJSONFeatureCollectionorFeatureIterableof parsed GeoJSON Feature, it can be any containerbut also a
Generatorof parsed GeoJSON features
Noneno single set of features is rendered
name – the name of features, used as layer name.
style – an optional style for the features. If not present, a default one is picked. It can be a generic inspector style, as defined in
here.inspector.styles, or directly a style dictionary, compatible with the inspector implementation.layers –
optional set of layers, each with a set of attributed geometries. It can be a
Mappingcontaining layer names and attributed geometries. It can also be aSequenceof tuples, each with 2 or 3 components: the layer name, the attributed geometries, and an optional style, removing the need to uselayers_style. Supported types for the attributed geometries: -gpd.GeoSeries, unattributed geometries -gpd.GeoDataFrame, attributes geometries -Iterableof BaseGeometry, it can be any containerbut also a
Generatorof unattributed geometriesIterableof pairs ofBaseGeometryandDict, it can be any containerbut also a
Generatorof geometries paired with attributes
Dicta parsed GeoJSONFeatureCollectionorFeatureIterableof parsed GeoJSON Feature, it can be any containerbut also a
Generatorof parsed GeoJSON features
layers_style – an optional dictionary with one style per layer: layers not mentioned in the dictionary are styled with a default style. Each style can be a generic inspector style, as defined in
here.inspector.styles, or directly a style dictionary, compatible with the inspector implementation.tiles – an optional tiling grid. Supported types: -
pd.Seriesof tile identifiers -Iterableof tile identifiers, it can be any container but also aGenerator-Noneno tiling grid is renderedtiles_style – an optional style for the tiling grid. If not present, a default one is picked. It can be a generic inspector style, as defined in
here.inspector.styles, or directly a style dictionary, compatible with the inspector implementation.center – the center point of the map
zoom – the zoom level, from 0 to 31
theme – the inspector visual theme, default is used if not specified
- Returns:
an object renderable by Jupyter
- Raises:
ValueError – in case the combination of input parameters is not supported
- here.inspector.new_inspector() Inspector[source]#
Instantiate a new inspector.
- Returns:
A new inspector.
- Raises:
ValueError – If invalid
inspector_classattribute is set inoptions.