Skip to content

Module invenio_rest_api_client.models.feature

Variables

T
TYPE_CHECKING

Classes

Feature

class Feature(
    geometry: ForwardRef('GeoJSONLineString') | ForwardRef('GeoJSONMultiLineString') | ForwardRef('GeoJSONMultiPoint') | ForwardRef('GeoJSONMultiPolygon') | ForwardRef('GeoJSONPoint') | ForwardRef('GeoJSONPolygon') | invenio_rest_api_client.types.Unset = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    identifiers: invenio_rest_api_client.types.Unset | list['FeatureIdentifier'] = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    place: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    description: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>
)

A GeoJSON feature object.

Attributes

Name Type Description Default
geometry Union['GeoJSONLineString', 'GeoJSONMultiLineString', 'GeoJSONMultiPoint', 'GeoJSONMultiPolygon','GeoJSONPoint', 'GeoJSONPolygon', Unset] None
identifiers Union[Unset, list['FeatureIdentifier']] A list of geographic location identifiers. None
place Union[Unset, str] Free text, used to describe a geographical location. None
description Union[Unset, str] Free text, used for any extra information related to the location. None

Static methods

from_dict

def from_dict(
    src_dict: collections.abc.Mapping[str, typing.Any]
) -> ~T

Instance variables

additional_keys
additional_properties
description
geometry
identifiers
place

Methods

to_dict

def to_dict(
    self
) -> dict[str, typing.Any]