Giter Site home page Giter Site logo

pygeoc's Introduction

pygeoc

详情请访问用户手册及开发文档

依赖

安装

Use Docker

PyGeoC image on Docker hub

docker pull crazyzlj/pygeoc:v0.3.2

# Testing examples:
docker run -v /path/to/PyGeoC:/pygeoc crazyzlj/pygeoc:v0.3.2 /pygeoc/examples/ex01_begin_with_pygeoc.py

Install by yourself

Numpy, GDAL, and matplotlib

Although the GISInternals support site (http://www.gisinternals.com/index.html) also provides the GDAL Python bindings (e.g., GDAL-1.11.4.win-amd64-py2.7.msi), it may not work properly. So, the site of Unofficial Windows Binaries for Python Extension Packages by Christoph Gohlke (https://www.lfd.uci.edu/~gohlke/pythonlibs/) is highly recommended. Not only the GDAL, almost the commonly used packages can be found here. Please read the instructions very carefully at the head of this website.

  • Select 32- or 64-bit binaries of packages according to the version of your python, not the version of your Windows. In other words, even if the Windows is 64-bit, the Python can be 32- or 64-bit.

  • Install Microsoft Visual C++ Redistributable packages first, since many binaries cannot run without them, i.e., Microsoft Visual C++ 2008 (x64, x86, and SP1 for CPython 2.7), Visual C++ 2010 (x64 and x86 for CPython 3.4), or the Visual C++ 2017 (x64 or x86 for CPython 3.5, 3.6, and 3.7).

  • Install numpy+mkl (https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy), e.g., numpy-1.15.4+mkl-cp27-cp27m-win_amd64.whl.

  • Download and Install GDAL, e.g. GDAL-2.2.4-cp27-cp27m-win_amd64.whl.

  • (Optional) Install Esri’s FileGDB API 1.3 or FileGDB 1.5 if you want to use the FileGDB plugin for GDAL. Otherwise, just delete the ogr_FileGDB.dll located in D:\demo\python27\Lib\site-packages\osgeo\gdalplugins.

  • Open a CMD window and enter the following commands to test if the GDAL package for Python is successfully installed.

    import osgeo
    osgeo.__version__
    '2.2.4'
    from osgeo import ogr
    from osgeo import osr
    from osgeo import gdalconst
    from osgeo import gdal_array
    from osgeo import gdal
  • Download and Install matplotlib, e.g. matplotlib‑2.2.3‑cp27‑cp27m‑win_amd64.whl.

Install PyGeoC

PyGeoC处在不断开发完善中,请根据如下命令安装最新开发版本。

pip install git+https://github.com/lreis2415/PyGeoC@master

或者:

git clone https://github.com/lreis2415/PyGeoC
cd PyGeoC
# For *nix OS
sudo ./reinstall.sh
# For Windows, open a cmd windows as Administrator
./reinstall.bat
# You can specific the Python path, e.g.,
./reinstall.bat D:\demo\python36

For Developers

pip install -r requirements_dev.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.