class documentation
Location data in GeoJSON format.
Parameters | |
point | a [longitude, latitude] point |
line | a line defined by coordinates as shown below: [[lon1, lat1], [lon2, lat2], ...] |
polygon | a polygon defined by coorindates as shown below: [ [[lon1, lat1], [lon2, lat2], ...], [[lon1, lat1], [lon2, lat2], ...], ... ] where the first outer list describes the boundary of the polygon and any remaining entries describe holes |
Class Method | from |
Creates a GeoLocation from a GeoJSON dictionary. |
Method | to |
Returns a GeoJSON geometry dict for this instance. |
Class Variable | line |
Undocumented |
Class Variable | point |
Undocumented |
Class Variable | polygon |
Undocumented |
Inherited from _HasID
:
Class Variable | tags |
Undocumented |
Instance Variable | id |
Undocumented |
Method | _id |
Undocumented |
Property | _id |
Undocumented |
Inherited from Label
(via _HasID
):
Method | delete |
Deletes the attribute with the given name. |
Method | get |
Gets the value of the attribute with the given name. |
Method | has |
Determines whether the label has an attribute with the given name. |
Method | iter |
Returns an iterator over the custom attributes of the label. |
Method | set |
Sets the value of the attribute with the given name. |