[gdal-dev] Read Ascii Grid and produce GeoTiff
Even Rouault
even.rouault at spatialys.com
Thu Jun 4 07:22:40 PDT 2015
Le jeudi 04 juin 2015 15:58:49, Ronquillo, Edgar Nahum a écrit :
> Hello everyone,
> I have been looking around for a while now. I want to create a python
> script that can read an AsciiGrid file and be able to produce a GeoTiff
> out of it. I know it is possible with Gdal, I just don't seem to get it.
> There are some references out there about this but nothing exact. Someone
> please help we accomplish this or maybe link me to anything out there that
> can help me with this task.
Edgar,
those 2 lines should do it:
from osgeo import gdal
gdal.GetDriverByName('GTiff').CreateCopy('out.tif', gdal.Open('in.asc'))
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list