Skip to main content

Gis image Processing tool

Project description

Introduction

The repo aims to build a geographic information system (GIS) library for Python interface. The library includes the following modules.

Instlall

Windows

  1. Install preinstall thinktron pypi server
pip install -U --index-url http://192.168.0.128:28181/simple --trusted-host 192.168.0.128 GDAL==3.0.4 Fiona==1.8.13 Shapely==1.6.4.post2 geopandas==0.7.0 Rtree==0.9.4 opencv_python==4.1.2
  1. Install TronGisPy from thinktron pypi server (Windows)
pip install -U --extra-index-url http://192.168.0.128:28181/simple --trusted-host 192.168.0.128 TronGisPy

Linux

  1. Build GDAL==3.0.4 by yourself
  2. Build opencv==4.1.2 by yourself
  3. install preinstall from public pypi server
pip install GDAL==3.0.4 Fiona==1.8.13 Shapely==1.6.4.post2 geopandas==0.7.0 Rtree==0.9.4
  1. Install TronGisPy from thinktron pypi server (Windows)
pip install -U --extra-index-url http://rd.thinktronltd.com:28181/simple --trusted-host rd.thinktronltd.com TronGisPy

Quick Start

import TronGisPy as tgp
raster = tgp.read_raster(tgp.get_testing_fp('satellite_tif'))
print("raster.data.shape:", raster.data.shape)
print("raster.geo_transform:", raster.geo_transform)
print("raster.projection:", raster.projection)
print("raster.no_data_value:", raster.no_data_value)
raster.plot()

For Developer

Build

python setup.py sdist bdist_wheel

Document Generation

  1. Installaion
pip install sphinx
pip install sphinx-rtd-theme
pip install numpydoc
  1. generatate index.rst (https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html)
mkdir docs
cd docs
sphinx-quickstart
  1. modify docs/source/conf.py (https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html)
vim source/conf.py
base_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.abspath(os.path.join(base_dir, '..', '..')))

html_theme = "classic"
extensions = ['sphinx.ext.napoleon']
exclude_patterns = ['setup.py', 'req_generator.py', 'test.py']
  1. generate TronGisPy rst
cd ..
python clean_docs_source.py
sphinx-apidoc --force --separate --module-first -o docs\source .
  1. generate html
cd docs
make clean
make html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TronGisPy-1.3.4.tar.gz (9.7 MB view hashes)

Uploaded Source

Built Distribution

TronGisPy-1.3.4-py3-none-any.whl (13.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page