somme_valeur_cadastrale+=valeur_cadastrale/surf_parcelle# Increment the cadastral values(m2)
iflen(liste_i[y])!=0:# If there is less than one patch possesing the type 'y'
ifaffichage==True:
print("La moyenne des valeurs cadastrales pour les parcelles de type "+str(culture_tab[y])+" est de "+str(somme_valeur_cadastrale/len(liste_i[y]))+" par mètre carré")
The purpose of this indice is to reflect the proximity between productions site and consommation site.
We are calculating it with a comparison of the area of patches cultivating fruits and vegetables and the population of living area (bassin de vie) in the PAT's territory
A living area with a low population will require a lower cultivating area to get a good value.
:param shape: The scenario to analyse as a list
:param fruit_legume: The proportion of area we want in the PAT for the "fruits and vegetables" type
:param affichage: True if we want the display in the console, False is the other case
'''
classProximite:
# 3 is the code for Fruits and vegetables
pourcentage_surface={}
pourcentage_surface[3]=fruit_legumes
#Total area of the PAT
total_culture=153256.0#
# Calculated with the layer 'ADMIN_EXPRESS-GOG_1-1__SHP__FRA_2018-04-03'
Population_PAT=498873
# Create a dictionary of living area (bassin de vie) bv[code_Living_Area] = Population_Living_Area