Skip to content

Alternative and faster (vectorized) version of gdal2xyz.py. Builded on top of GDAL, Numpy and Pandas.

Notifications You must be signed in to change notification settings

cayetanobv/raster2xyz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raster2xyz

Build Status PyPI version Python versions

Alternative and faster (vectorized) version of gdal2xyz.py (https://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdal2xyz.py)

Builded on top of GDAL, Numpy and Pandas.

Install

Install from PYPI:

$ pip install raster2xyz

Usage

Command Line

$ raster2xyz [-h] input_raster out_csv

positional arguments:
  input_raster  input_raster filepath
  out_csv       out_csv filepath

optional arguments:
  -h, --help    show this help message and exit

Importing module

from raster2xyz.raster2xyz import Raster2xyz

input_raster = "input_raster.tif"
out_csv = "/tmp/out_xyz.csv"

rtxyz = Raster2xyz()
rtxyz.translate(input_raster, out_csv)

Requirements

About author

Developed by Cayetano Benavent. GIS Analyst at Geographica.

http://www.geographica.gs

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

About

Alternative and faster (vectorized) version of gdal2xyz.py. Builded on top of GDAL, Numpy and Pandas.

Resources

Stars

Watchers

Forks

Packages

No packages published