[FWTools] Get extent from rasters

Susana Iraiis Delgado Rodriguez susana.delgado_s at utzmg.edu.mx
Thu Oct 21 10:07:19 EST 2010


Hello list!

I´m working in a python module to read rasters and get information out of
them. I'm using GDAL and some of the osgeo libraries. I already have the
ratsers' projection, but I also need its extent (x_min, y_min, x_max,
y_max).
I have been searching in google and don't have any results. My code is:

from osgeo import gdal
from osgeo.gdalconst import *

gdal.AllRegister()
dataset = gdal.Open(filepath, GA_ReadOnly)
if dataset:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20101021/9e550ede/attachment.htm 


More information about the FWTools mailing list