Skip to content

A geotool for tif (support big memory)

Notifications You must be signed in to change notification settings

JiChaoInBNU/geotool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geo Tool

A simple tool implemetation on gdal. Now supporting grid clip, clip with shape file, mask with shape file and merge tif. It has been tailored for computer vision in remote sensing. Help you construct your pipline easily!

Also see an visiliazed UI on Baidu Pan: https://pan.baidu.com/s/1FfDVzu3mlM9wItu7KVTl3A Fetch code: 2333

Getting Started

Prerequisites

GDAL
numpy >= 1.11.1

Installing

pip install git+https://github.com/Kindron/geotool.git

Usage Example

from geotool.tif_process import GeoTiff, define_ref_predict
from geotool.tif_merge import run_merge
tif = GeoTiff('xx.tif')
# if you want to clip tif with grid reserved geo reference
tif.clip_tif_with_grid(512, 'out_dir')
# if you want to clip tif with shape file
tif.clip_tif_with_shapefile('shapefile.shp', 'out_dir')
# if you want to mask tif with shape file
tif.mask_tif_with_shapefile('shapefile.shp', 'save_path.tif')
# After you get your model results(pngs or tifs), you can redefine their reference
# with you clipped before, notice they must match names
define_ref_predict('cipped_before_dir', 'your_result_dir', 'save_dir')
# if you want to merge tifs
run_merge('tif_dir', 'save_path.tif')

Authors

  • Kingdrone - Initial work - geotool

About

A geotool for tif (support big memory)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%