Attached are two images orig.tif and output.tif. Orig.tif is a 1024x1024 image. I defined the following VRT:
<VRTDataset rasterXSize="1024" rasterYSize="1024">
<ColorInterp?>Gray</ColorInterp>
<VRTRasterBand dataType="Byte" band="1">
<SimpleSource?>
<SourceFileName? relativetoVRT="1">orig.tif</SourceFileName>
<SrcRect? xOff="0" yOff="0" xSize="512" ySize="1024"/>
<DstRect? xOff="0" yOff="0" xSize="512" ySize="1024"/>
</SimpleSource>
</VRTRasterBand>
</VRTDataset>
It was my undertanding that this would select all lines of orig.tif and the first 512 pixels. This is not the case. The entire image is copied into the output.tif image.
Attached are the vrt the orig.tif and output.tif images.
I'm using GDAL 1.4.