<div dir="ltr">I&#39;m looking for the best approach to figuring out the specific projected coordinate of a raster read via the GDAL C# wrappers.<div><br></div><div>If I open a dataset using Gdal.Open(...) which has projection information, what is the best way in C# to determine the actual coordinate of a specific pixel?</div>
<div><br></div><div><br></div><div>For example, I want to determine where, in projected space, the pixel at [50,25] in image coordinates might lie.</div><div><br></div><div>Right now, I&#39;m calculating this by hand using the dataset.GetGeoTransform(...) array, but this is less simple if the transformation isn&#39;t simple. &nbsp;I&#39;d ideally like a solution that works with GCP defined datasets, as well.</div>
<div><br></div><div>It looks like GDAL.Transformer is the way to go here, but the C# wrappers only seem to work by taking a dataset to project from and to, and then transforming a coordinate from one to the other. &nbsp;Is the best approach to create a dataset in memory with 1 pixel wide spacing, located at the origin, and use that as from and the loaded dataset as the &quot;to&quot; dataset? &nbsp;Is there an easier/simpler/faster approach?</div>
<div><br></div><div>Thank you,</div><div>Reed Copsey</div><div><br></div></div>