| django-geo Een Django-toepassing die administratieve geografische gegevens beheren |
Download nu |
django-geo Rangschikking & Samenvatting
- Uitgever website:
- http://k-tech.it
django-geo Tags
django-geo Beschrijving
Django-Geo is een Django-app die administratieve geografische gegevens beheren. Het maakt gebruik van gemodificeerde preorder Tree Traversal, geleverd door Django-MPTT https://github.com/django-mptt/django-mptt/geo is niet bedoeld om een GIS te vervangen, maar om alle gevallen te beheren waar u administratieve bomen hebt, met Een strikte / luie hiërarchie.models-country- gebied- Locatie- AdministratiVearEatype- CurriciAmamultes Drie niveaus ITALIË = Country.Objects.get (ISO_CODE = 'IT') Regione, __ = ITALIË.ADMINISTRATIVEAREATEATEPE_SET.GET_OR_OR_CREATE (NAME = 'Regione') Provincia , __ = italy.administrativeareatype_set.get_or_create (naam = 'Provincia', Parent = Regione) Comune, __ = italy.administrativeareatype_set.get_or_create (naam = 'comune', ouder = Provincia) Lazio, __ = administrativairea.objects.get_or_create (land = Italië, naam = 'Lazio', Type = Regione) Roma_Provincia, __ = Administrativearea.Objects.get_or_create (land = Italië, naam = 'Provincia di Roma', Type = Provincia, Parent = Lazio) Roma_comune, __ = AdministratiMeAna.Objects .get_or_create (land = Italië, naam = 'comune di roma', type = comune, ouder = roma_provincia) Roma, __ = location.objects.get_or_create (land = Italië, naam = 'Roma', type = location.city, gebied = roma_comune) Twee niveaus, US = country.objects.get (ISO_CODE = 'US') Status, __ = italy.administrativeareatype_set.get_or_create (naam = 'staat') County, __ = italy.administrativeareatype_set.get_or_create (naam = 'provincie', ouder = staat) NY, __ = administrativairea.objects.get_or_create (land = VS, naam = ' New York ', Type = Staat) Columbia, __ = AdministrativeAre.Objects.get_or_create (Land = VS, Naam =' Columbia ', Type = County, Parent = NY) Hudson, __ = location.Objects.get_or_create (land = VS, NAME = 'HUDSON', Type = Location.city, Area = Columbia, Is_Administratieve = True) Homepage van het product
django-geo Gerelateerde software