Annotation#

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

An annotation: a geometry and associated properties.

Parameters:
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 string representation of this annotation.

Attributes

to_feature()[source]#

Return a feature representation of this annotation.

A feature representation is a Python dictionary with the same schema as a geoJSON feature.

Returns:

A feature representation of this annotation.

Return type:

dict

to_geojson()[source]#

Return a GeoJSON string representation of this annotation.

Returns:

A GeoJSON representation of this annotation.

Return type:

str