Python geo-data processing environment builds __python

Source: Internet
Author: User
A recent study on Python's geo-data processing related content. 工欲善其事, its prerequisite, Python the first step in geo-data processing is the setting up of the environment, which is described in detail below.
1. Install Python (https://www.python.org/)If you have ArcGIS installed, Python 2.7 is installed by default, or you can install Python 3.x (I am installing 3.5.4) as needed, and the current maximum version of Python is 3.6.4, install and set the default Python method please own Baidu.
2. Install Python module management tool PIPAfter the Python 3.x installation, The default already contains the PIP (under the/scripts path), if you want to manage the Python package with Pip, you need to Add the scripts path under the System environment variable path。 After the configuration is complete, enter the PIP in cmd to view the instructions. The benefit of installing the PIP is that you can quickly install the Python module by using the PIP install XXXX (module name), and you can easily manage the upgrade and uninstall of the module.
3, the installation of geographical data processing of common modules,The main modules are as follows: gdal/ogr:Used for reading and writing geospatial data, detailed installation methods as described in 4; NumPy: Basic Python array processing module, which can be quickly installed via pip install NumPy matplotlib: Used to draw image data, installation method with NumPy; SCIPY: A scientific Computing module, the installation mode above; Pyproj: A python containment for proj.4 Mapping Gallery, a follow-up description of the installation method; Folium: Use Python to make leaflet.js maps, via PIP install Folium installation; spectral Python: For processing hyperspectral image data, installation methods Follow-up InstructionsScikit-learn: For data analysis, installation methods Follow-up InstructionsMapnik, for the production of beautiful maps, installation methods Follow-up InstructionsNotes: The content of the subsequent instructions is later added in.
4, the installation of Gdal (1) Quick installation modeCheck the installation version of Python (I am installing an additional 64-bit 3.5.4 version) and download the appropriate Gdal installation file at the following site: http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal(Because the site download speed is slow, often download failure, the following will I download to the 3.5.x version of Gdal installation files to share to Baidu Network disk link: "Https://pan.baidu.com/s/1o7Tqn26 Password: pea5", please download the necessary. The file I downloaded to is GDAL-2.1.3-CP35-CP35M-WIN_AMD64.WHL, where 35 represents the 3.5.x version of Python. After the download is complete, install via PIP install GDAL-2.1.3-CP35-CP35M-WIN_AMD64.WHL. You can check to see if the installation is successful through the following version. From OSGeo import Gdal gdal.__version__
(2) General installation General installation method, you can refer to the link below, the specific installation method later summed up here. https://pypi.python.org/pypi/GDAL/http://blog.csdn.net/nickwar/article/details/5728323
The above is the use of Python for geo-data processing of the effective environment to build instructions, if any problems, please contact timely.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.