32 lines
696 B
Python
Executable File
32 lines
696 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
import os
|
|
import pandas as pd
|
|
import geopandas as gpd
|
|
from geoalchemy2 import Geometry
|
|
|
|
def move2filedir():
|
|
'''
|
|
Orientation vers le répertoire où est localiser le script zh2gn.py
|
|
'''
|
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
os.chdir(dir_path)
|
|
|
|
# print(os.getcwd())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
# move2filedir()
|
|
os.chdir('/home/colas/Documents/13_CEN74/medwet2gn_ZH/tools')
|
|
|
|
PATH = '../template/'
|
|
FILE_DATA = 'BDD_ZH_CCPR.xlsx'
|
|
GEO_DATA = 'ZH_CCPR_finalisées/ZH_asters_finalisées.shp'
|
|
|
|
data = pd.read_excel(PATH+FILE_DATA,'formulaire_type')
|
|
geo = gpd.read_file(PATH+GEO_DATA)
|
|
|
|
|