django-geo

Software screenshot:
django-geo
Software informatie:
Versie: 0.3 Beta 1
Upload datum: 20 Feb 15
Ontwikkelaar: sax
Licentie: Gratis
Populariteit: 2

Rating: 2.0/5 (Total Votes: 1)

django-geo is een Django app die administratieve geografische data te beheren. Het maakt gebruik van Modified Preorder Boom Traversal, verzorgd door django-mptt https://github.com/django-mptt/django-mptt/
Geo is niet de bedoeling om een ​​GIS te vervangen, maar om alle zaken waar je administratieve bomen, met een strikte / luie hiërarchie beheren.
Modellen
- Land
- De Omgeving
- Locatie
- AdministrativeAreaType
- Valuta
Voorbeelden
& Nbsp; Drie niveaus
& Nbsp; italië = Country.objects.get (iso_code = 'IT')
& Nbsp; regione, __ = italy.administrativeareatype_set.get_or_create (naam = 'Regione')
& Nbsp; provincia, __ = italy.administrativeareatype_set.get_or_create (naam = 'Provincia',
& Nbsp; ouder = regione)
& Nbsp; comune, __ = italy.administrativeareatype_set.get_or_create (naam = 'Comune',
& Nbsp; ouder = provincia)
& Nbsp; lazio, __ = AdministrativeArea.objects.get_or_create (land = italië,
& Nbsp; naam = 'Lazio',
& Nbsp; type = regione)
& Nbsp; roma_provincia, __ = AdministrativeArea.objects.get_or_create (land = italië,
& Nbsp; naam = 'Provincia di Roma',
& Nbsp; type = provincia,
& Nbsp; ouder = lazio)
& Nbsp; roma_comune, __ = AdministrativeArea.objects.get_or_create (land = italië,
& Nbsp; naam = 'Comune di Roma',
& Nbsp; type = comune,
& Nbsp; ouder = roma_provincia)
& Nbsp; roma, __ = Location.objects.get_or_create (land = italië,
& Nbsp; naam = 'Roma',
& Nbsp; type = Location.CITY,
& Nbsp; gebied = roma_comune)
& Nbsp; Twee niveaus,
& Nbsp; ons = Country.objects.get (iso_code = "VS")
& Nbsp; staat, __ = italy.administrativeareatype_set.get_or_create (naam = "staat")
& Nbsp; provincie, __ = italy.administrativeareatype_set.get_or_create (naam = 'County',
& Nbsp; ouder = staat)
& Nbsp; ny, __ = AdministrativeArea.objects.get_or_create (land = ons,
& Nbsp; naam = 'New York',
& Nbsp; type = staat)
& Nbsp; colombia, __ = AdministrativeArea.objects.get_or_create (land = ons,
& Nbsp; naam = 'Columbia',
& Nbsp; type = provincie,
& Nbsp; ouder = ny)
& Nbsp; hudson, __ = Location.objects.get_or_create (land = ons,
& Nbsp; naam = 'Hudson',
& Nbsp; type = Location.CITY,
& Nbsp; gebied = colombia,
& Nbsp; is_administrative = True)

Eisen

  • Python
  • Django

Andere software van ontwikkelaar sax

django-iadmin
django-iadmin

20 Feb 15

django-buildhost
django-buildhost

20 Feb 15

uTorrentPauser
uTorrentPauser

11 Jul 15

Reacties op django-geo

Reacties niet gevonden
Commentaar toe te voegen
Zet op de beelden!