[gdal-dev] How to access a part of an image

Tamas Szekeres szekerest at gmail.com
Tue Jun 17 04:58:29 EDT 2008


Andreas,

You could do such things by using the affine transformation
coefficients as described at:

http://www.gdal.org/classGDALDataset.html#f9593cc241e7d140f5f3c4798a43a668

Best regards,

Tamas


2008/6/17 Andreas Theofilu <andreas at theosys.at>:
> Am Montag, 16. Juni 2008 22:00:15 schrieben Sie:
>> Andreas,
>>
>> If you use RasterIO the nXSize,nYSiye should correspond to the
>> nBufXSize nBufYSize to avoid the image decimation / replication
>> according to
>> http://www.gdal.org/classGDALDataset.html#e077c53268d2272eebed10b891a05743
>>
> Thanks. This is the case and in the mean time I found out how I can load only
> a part of the image. What I'm searching for is a function or a way to define
> the dimensions of the image in geo coordinates and have a function giving me
> the pixel coordinate, width and height of the wanted part of the image. But
> such functions seems not to be part of GDAL.
>
> --
> Andreas Theofilu
> TheoSys - Software Systems and Solutions
> http://www.theosys.at
> Tel.: +43 676 / 786 53 89
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


More information about the gdal-dev mailing list