class documentation

class GeoLocations(_HasID, Label): (source)

View In Hierarchy

A batch of location data in GeoJSON format.

The attributes of this class accept lists of data in the format of the corresponding attributes of GeoLocation.

Parameters
pointsa list of points
linesa list of lines
polygonsa list of polygons
Class Method from_geo_json Creates a GeoLocation from a GeoJSON dictionary.
Method to_geo_json Returns a GeoJSON geometry dict for this instance.
Class Variable lines Undocumented
Class Variable points Undocumented
Class Variable polygons Undocumented

Inherited from _HasID:

Class Variable tags Undocumented
Instance Variable id Undocumented
Method _id.setter Undocumented
Property _id Undocumented

Inherited from Label (via _HasID):

Method delete_attribute Deletes the attribute with the given name.
Method get_attribute_value Gets the value of the attribute with the given name.
Method has_attribute Determines whether the label has an attribute with the given name.
Method iter_attributes Returns an iterator over the custom attributes of the label.
Method set_attribute_value Sets the value of the attribute with the given name.
@classmethod
def from_geo_json(cls, d): (source)

Creates a GeoLocation from a GeoJSON dictionary.

Parameters
da GeoJSON dict
Returns
a GeoLocation
def to_geo_json(self): (source)

Returns a GeoJSON geometry dict for this instance.

Returns
a GeoJSON dict

Undocumented

Undocumented

polygons: None = (source)

Undocumented