Skip to main content

Features

A geometry with properties. Created with kind feature.

TypeClass
"feature"Feature

"feature" — Feature

{"type": "feature", "geometry":, "properties":}
KeyTypeAlways requiredNotes
geometryobject std::shared_ptr<Geometry>yesan id of kind geometry, or an inline spec
propertiesstruct Variantyes
PropertyTypeAccessDescription
geometryobject geometry.Geometryread-onlyReturns the geometry of the feature.
geometryGeoJSONstringread-onlyReturns the feature's geometry as a GeoJSON string, in its own coordinates. Serialising a geometry otherwise means constructing a GeoJSONGeometryWriter in the binding, which every binding then does differently and, in a scripting one, slowly.
propertiesvariantread-onlyReturns the properties of the feature.