Annotation

class Annotation(geometry, properties=<factory>)[source]

An annotation: a geometry and associated properties.

Parameters
Return type

None

geometry

The geometry of the annotation.

Type

Geometry

properties

The properties of the annotation.

Type

dict

Methods

to_feature

Return a feature representation of this annotation.

to_geojson

Return a GeoJSON representation of this annotation.

Attributes

geometry

properties

to_feature()[source]

Return a feature representation of this annotation.

Returns

feature – A feature representation of this annotation.

Return type

dict

to_geojson()[source]

Return a GeoJSON representation of this annotation.

Returns

geojson – A GeoJSON representation of this annotation.

Return type

str