The mg.metadata.position application

Requires The mg.core.element application.

Django models

mg.metadata.position Application models

This application permits to attach geotagging information to elements.

digraph position {
element [shape = "box", label="Element\nmg.core.element"];
position [shape = "box", label="Position"];

position -> element [headlabel = "1", taillabel = "1"];
}

The Position model

class mg.metadata.position.models.Position
element

Pointer to an Element.

lat

Latitude, in degrees

lon

Longitude, in degrees

alt

Altitude, in meters. May be None if information is unknown.

Updaters

ExifPositionUpdater

Updates the position from the relevant Exif fields.

Templatetags

The mg_position templatetag library

In order to use these templatetags, you must use the following code in your template:

{% load mg_position %}

position

This inclusion tag retrieves the HTML code to display position associated to element, if available.

{% position element %}

It actually uses the template named position/position_data.html.