Small tool based on GDAL/PROJ4 to automatic crop box on raster referenced maps (GDAL supported, in most cases - Russians).
Input maps must be with RGB color space: croped box replaces by transparent color. Output maps also in RGB color space. To convert between indexed pallete and RGB and back you can use: pct2rgb.py and rgb2pct.py tools.
Under debian-based distibutives this scripts present at the
sudo apt-get install python-gdal
gdalwarp command line tool, under debian-based distributives it present at the
sudo apt-get install gdal-bin
On Ubuntu/Mint you need to install: sudo apt-get install libgdal1-dev libproj-dev cmake
On ArchLinux you need simple packages
- Get & unpack sources
- Create build directory and goes to it:
mkdir build && cd build
- Run cmake:
- Simple type:
Installation does not required, you can run application in-place. Or you can "install" it manually:
sudo cp ./geocrop /usr/local/bin
proj includes or libraries not found, double check if all needed development files installed.
Simple run without any options to see help.