====
Automatize the creation of a dictionnary of geographic data in a folders structure. The output dictionary is an Excel file (.xls).
-
In English:
-
En español:
-
En français :
- présentation ;
- consulter l'article sur GeoTribu.
- Download the last release,
- Uncompress it,
- Execute DicoGIS.exe.
If you've all dependencies installed, you can also clone this repository, edit it and create your customized executable, running:
python setup2exe_DicoGIS.py py2exe
- Open an elevated powershell (as admin) ;
- Ensure that you have Python to the environment path typing
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
; - Download get_pip.py and execute it:
python get_pip.py
; - Download the repository and execute:
pip install virtualenv virtualenvwrapper-powershell
; - Execute:
set-executionpolicy RemoteSigned
to allow powershell advanced scripts. ; - Create the environment:
virtualenv virtenv --no-site-packages
; - Activate it:
.\virtenv\Scripts\activate.ps1
. Your prompt should have changed. ; - Get the dependencies, choosing between 32/64 bits versions:
pip install -r requirements_32bits.txt
orpip install -r requirements_64bits.txt
; - Assuming you have installed Python in C:\Python27, copy the tcl folder from C:\Python27\ over to the root of the new virtenv (see: http://stackoverflow.com/a/30377257) to avoid this error: "This probably means that tk wasn't installed properly.". You can do that from your admin powershell prompt executing:
Copy-Item -Path c:\python27\tcl\* -Destination {absolute_path_to_the_folder}\DicoGIS\virtenv\tcl -recurse -Container: $true
- For a more friendly usage, create a Windows shortcut: Right clic > New > Shortcut and insert this command replacing with the absolute paths (removing brackets):
C:\Windows\System32\cmd.exe /k "{absolute_path_to_the_folder}\DicoGIS\virtenv\Scripts\python {absolute_path_to_the_folder}\DicoGIS\DicoGIS.py"
You can download this repository or run these commands:
sudo apt-get install -y git python-software-properties python-virtualenv
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install -y libgdal-dev python-setuptools python-pip python-dev python-tk python-gdal
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
git clone --recursive https://github.com/Guts/DicoGIS.git
cd DicoGIS/
virtualenv virtenv --no-site-packages
source virtenv/bin/activate
sudo pip install -r requirements.txt
Available in 3 languages (English, French and Spanish) but you can add your own translations (in locale folder).