Skip to main content

A library designed to streamline GIS (Geographic Information System) related tasks. Whether it is geometry, GeoDataFrames, images, or mathematical operations, GTKit provides a set of commonly used methods and operations to simplify your workflow.

Project description

GTKit - GIS Toolkit

Downloads

GTKit (GIS Toolkit) is a library designed to streamline GIS (Geographic Information System) releated tasks. Whether it is geometry, GeoDataFrames, images, or mathematical operations, GTKit provides a set of commonly used methods and operations to simplify your workflow. This utility has been curated to include some of the regularly used methods and operations that I, frequently employ.

Features

GTKit offers a range of functionalities to assist you in working with GIS data effectively:

  • Geometry Operations: Perform various geometry-based operations such as splitting a LineString, line referencing, interpolation, extrapolation

  • GeoDataFrame Manipulation

  • Image Processing: Convert images to geometries, Generate Geometries from binary geo referenced mask

  • Mesh Creation: Create Mesh either using images or using LineString.

Installation with pip

External dependencies

  1. Create conda env
conda env create --name gtkit --file=env.yml
conda activate gtkit
  1. Run:
pip install gtkit

Usage

Import GTKit in your Python script or notebook:

import gtkit

GTKit's modular structure allows you to import specific functionalities as needed for your project.

Examples

A. Generate Bitmap From Shp.
Generate Shp From Bitmap.
alt text
B. Generate mesh around a line string. alt text
C. Some geometry Operations. alt text

Stitch And Split Geo Reference Image

import numpy as np

from gtkit.imgops import georead, geowrite
from gtkit.imgops import StitchNSplitGeo

sns = StitchNSplitGeo(split_size=(256, 256, 3), img_size=(1500, 1500, 3))
image = georead(r"22978945_15.tiff")

stitched_image = np.zeros((1500, 1500, 3))
for win_number, window in sns:
    split_image, meta = sns.split(image, window)
    # ....Processing on image
    stitched_image = sns.stitch(split_image, stitched_image, window)

geowrite(
    save_path=r"new.tiff",
    image=stitched_image,
    transform=image.transform,
    crs=image.crs,
)

Documentation

For detailed information on available methods, classes, and their usage, refer to the GTKit Documentation.

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

gtkit-0.1.1.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gtkit-0.1.1-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file gtkit-0.1.1.tar.gz.

File metadata

  • Download URL: gtkit-0.1.1.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for gtkit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c8b97db783b6096afb8f6ecb680563cdead4f2bc1563cb081f665aa150299ec6
MD5 98d5aabf101358632edb72aafb220a14
BLAKE2b-256 8c12738561ecf85e486f24875cf0231130beeab1aa4a2c9a4f895ba8710289d8

See more details on using hashes here.

File details

Details for the file gtkit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gtkit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for gtkit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b81f0497130e3bac39dfc5be1fc971f577f56b08e9beb5681630e58dabdd39bc
MD5 587e1f3adf5ba4fb140615db4ff68d3b
BLAKE2b-256 91d76083bbc5e871b99726d26fab51b67562480247348f4da6e084a940781ac2

See more details on using hashes here.

Supported by

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