[gdal-dev] gdal info in python script
Even Rouault
even.rouault at mines-paris.org
Tue Aug 28 02:23:49 PDT 2012
Selon Chaitanya kumar CH <chaitanya.ch at gmail.com>:
> Neha,
>
> You can use the subprocess module of Python.
I can also mention a Python port of gdalinfo that you can adapt to extract the
information that interest you and/or reformat the output according to your needs
: http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/gdalinfo.py
>
> On Tue, Aug 28, 2012 at 2:06 PM, Neha Bijalwan
> <bijalwanneha7 at gmail.com>wrote:
>
> > how to use gdalinfo with python script? i intend to store the result
> > of gdalinfo for a raster into a variable and display it, the end
> > result being the output of gdalinfo being displayed? how is it
> > possible?
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> >
>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
>
> +91-9494447584
> 17.2416N 80.1426E
>
More information about the gdal-dev
mailing list