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
- 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
- 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
- Build GDAL==3.0.4 by yourself
- Build opencv==4.1.2 by yourself
- 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
- 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
pip install sphinx
pip install sphinx-rtd-theme
pip install numpydoc
- generatate index.rst (https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html)
mkdir docs
cd docs
sphinx-quickstart
- 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']
- generate TronGisPy rst
cd ..
python clean_docs_source.py
sphinx-apidoc --force --separate --module-first -o docs\source .
- generate html
cd docs
make clean
make html
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
TronGisPy-1.3.4-py3-none-any.whl
(13.7 MB
view hashes)
Close
Hashes for TronGisPy-1.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36af292619b77a3c56e1896bbed26b38816ea46a9e5b9b1f588972cfad04d656 |
|
MD5 | 3d274f34e5ffd42df4ae585c49a92122 |
|
BLAKE2b-256 | 6077c7cec81cbe0161de832f47ed95d518b0a312e6ddf591fdcd6e1fd6af6c98 |