GeoJsonFeature interface

A valid GeoJSON Feature object type. Please refer to RFC 7946 for details.

Extends

Properties

type

Inherited Properties

featureType

The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.

geometry

A valid GeoJSON geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to RFC 7946 for details.

id

Identifier for the feature.

properties

Properties can contain any additional metadata about the Feature. Value can be any JSON object or a JSON null value

Property Details

type

type: "Feature"

Property Value

"Feature"

Inherited Property Details

featureType

The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value.

featureType?: string

Property Value

string

Inherited From GeoJsonFeatureData.featureType

geometry

A valid GeoJSON geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to RFC 7946 for details.

geometry: GeoJsonGeometry

Property Value

Inherited From GeoJsonFeatureData.geometry

id

Identifier for the feature.

id?: string

Property Value

string

Inherited From GeoJsonFeatureData.id

properties

Properties can contain any additional metadata about the Feature. Value can be any JSON object or a JSON null value

properties?: Record<string, unknown>

Property Value

Record<string, unknown>

Inherited From GeoJsonFeatureData.properties