Ejemplo n.º 1
0
def run(verbose=True):
    lm = LayerMapping(Noeud, tunisia_nodes, node_mapping, transform=True, encoding='utf8')
    lm.save(strict=True, verbose=verbose)
    for i in Noeud.objects.all():
		i.type   = slugify(i.type )
		i.label  = slugify(i.label)
		i.save()
Ejemplo n.º 2
0
def run(verbose=True):
    lm = LayerMapping(Voie, tunisia_voie, voie_mapping, transform=True, encoding='utf8')
    lm.save(strict=True, verbose=verbose)
    for i in Voie.objects.all():
		i.label     = slugify(i.label    )
		i.nom_usage = slugify(i.nom_usage)
		i.save()
Ejemplo n.º 3
0
def run(verbose=True):
	lm = LayerMapping(DirectionRegionale, tunisia_states, states_mapping, transform=True, encoding='utf8')
	lm.save(strict=True, verbose=verbose)
	for i in DirectionRegionale.objects.all():
		i.label = slugify(i.label)
		i.save()