django-geo

Screenshot der Software:
django-geo
Softwarebeschreibung:
Version: 0.3 Beta 1
Upload-Datum: 20 Feb 15
Entwickler: sax
Lizenz: Frei
Popularität: 2

Rating: 2.0/5 (Total Votes: 1)

django-geo ist ein Django-Applikation, die Verwaltungs geographischen Daten zu verwalten. Es verwendet Modified Preorder Traversal Baum, bereitgestellt durch django-MPTT https://github.com/django-mptt/django-mptt/
Geo ist nicht gedacht ein GIS zu ersetzen, sondern um alle Fälle, in denen Sie Verwaltungs Bäume haben, mit einer strikten / faul Hierarchie zu verwalten.
Modelle
- Land
- Die Umgebung
- Location
- AdministrativeAreaType
- Devisen
Beispiele
& Nbsp; Drei Ebenen
& Nbsp; italien = Country.objects.get (iso_code = "IB")
& Nbsp; Die Region, __ = italy.administrativeareatype_set.get_or_create (name = "Regione)
& Nbsp; provincia, __ = italy.administrativeareatype_set.get_or_create (name = "Provincia"
& Nbsp; parent = Region)
& Nbsp; Gemeinde, __ = italy.administrativeareatype_set.get_or_create (name = "Comune",
& Nbsp; parent = provincia)
& Nbsp; lazio, __ = AdministrativeArea.objects.get_or_create (country = italien,
& Nbsp; name = "Lazio",
& Nbsp; type = Region)
& Nbsp; roma_provincia, __ = AdministrativeArea.objects.get_or_create (country = italien,
& Nbsp; name = 'Provincia di Roma',
& Nbsp; type = provincia,
& Nbsp; parent = Lazio)
& Nbsp; roma_comune, __ = AdministrativeArea.objects.get_or_create (country = italien,
& Nbsp; name = "Comune di Roma ',
& Nbsp; type = Gemeinde,
& Nbsp; parent = roma_provincia)
& Nbsp; roma, __ = Location.objects.get_or_create (country = italien,
& Nbsp; name = "Roma",
& Nbsp; type = Location.CITY,
& Nbsp; Bereich = roma_comune)
& Nbsp; Zwei Ebenen,
& Nbsp; us = Country.objects.get (iso_code = 'USA'),
& Nbsp; Zustand, __ = italy.administrativeareatype_set.get_or_create (name = "Staat")
& Nbsp; county, __ = italy.administrativeareatype_set.get_or_create (name = "Grafschaft"
& Nbsp; parent = Zustand)
& Nbsp; ny, __ = AdministrativeArea.objects.get_or_create (country = us,
& Nbsp; name = 'New York',
& Nbsp; type = Zustand)
& Nbsp; kolumbien, __ = AdministrativeArea.objects.get_or_create (country = us,
& Nbsp; name = 'Columbia',
& Nbsp; type = county,
& Nbsp; parent = ny)
& Nbsp; hudson, __ = Location.objects.get_or_create (country = us,
& Nbsp; name = 'Hudson',
& Nbsp; type = Location.CITY,
& Nbsp; Bereich = kolumbien,
& Nbsp; is_administrative = True)

Anforderungen :

  • Python
  • Django

Andere Software von Entwickler sax

django-nojs
django-nojs

11 May 15

django-iadmin
django-iadmin

20 Feb 15

django-buildhost
django-buildhost

20 Feb 15

Kommentare zu django-geo

Kommentare nicht gefunden
Kommentar hinzufügen
Schalten Sie auf die Bilder!