<font face="courier new,monospace">I am not totally sure, but I believe that the gdal data model always uses the upper left corner for the origin, even on files that reference the lower left in space. I think this is also the way rasterio handles it.  See RasterIO docs:<br>

<br><a href="http://gdal.org/classGDALDataset.html#e077c53268d2272eebed10b891a05743">http://gdal.org/classGDALDataset.html#e077c53268d2272eebed10b891a05743</a><br clear="all"></font><br>Specifically the nXOff and nYOff parameters.<br>

<br>kss<br># ============================<br>Kyle Shannon<br>Physical Science Technician<br>RMRS Fire Sciences Lab<br>Fire, Fuels &amp; Smoke - RWU 4405<br>5775 Highway 10 W.<br>Missoula, MT 59808<br>(406)829-6954<br><a href="mailto:kshannon@fs.fed.us">kshannon@fs.fed.us</a><br>

# ============================<br>
<br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 5:28 PM, Todd Smith <span dir="ltr">&lt;<a href="mailto:smith.todd@gmail.com">smith.todd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div>The default way of doing things at my company is to treat the lower left corner of a file as the origin.  Thus when I call RasterIO on a GeoTIFF, I make the buffer I pass as pData address to the last row of the buffer I&#39;ve allocated, and I make nLineSpace negative.  This has the effect of reading the file from the beginning, but placing each line into my buffer starting at the last and finishing at the first line.  This was working great until I started reading ArcInfo/Ascii files with origins in the lower-left.  In this case, I wouldn&#39;t want to address to the last row of my buffer, I&#39;d want to address to the beginning of my buffer, and use a positive value for my line space.  </div>




<div> </div>
<div>Is there metadata that will tell me where the file&#39;s origin is?  If not, any suggestions as to how to deal with this problem?</div>
<div> </div>
<div>Thanks!</div>
<div> </div><font color="#888888">
<div>Todd</div>
</font><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>