Derek,<br><br>Please provide the gdalinfo output of the img file.<br><br>Also, try this:<br>Create a vrt file instead of a HFA using the same gdal_translate command. See if gdalwarp works with the vrt file.<br><br><div class="gmail_quote">
On Fri, May 25, 2012 at 7:17 AM, jdmorgan <span dir="ltr"><<a href="mailto:jdmorgan@unca.edu" target="_blank">jdmorgan@unca.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p class="MsoNormal">Hello, </p>
<p class="MsoNormal">I am attempting to georeference and project a
jpeg image
using only gdal tool.<span> </span>I
have georeferenced
the jpeg using the following command:<span> </span></p>
<p><span>gdal_translate
</span>-<span>a_srs EPSG:</span>102719<span> -of HFA </span>-gcp 0.0 0.0
-82.5586187839508 35.59414007259327 -gcp 0.0 410.0
-82.55858659744263
35.5937998255945 -gcp 520.0 0.0 -82.55741715431213
35.594340730401775 -gcp
520.0 410.0 -82.55728840827942 35.5940266570877<span> NCDCLogo.jpg NCDCLogo.img<span>
</span><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The command run fine and produces a img file
however it does
not line up with similarly project layer per the gcp’s.<span> </span>When I check the projection
information the
file shows to be unprojected. Further, when I attempt to project
the resulting
raster with gdalwarp I get the following errors:</p>
<p class="MsoNormal">“There is no affine transformation and no
GCPs.”</p>
<p class="MsoNormal">Any pointers here would be greatly appreciated.</p>
<p class="MsoNormal">Thanks, </p>
<p class="MsoNormal">Derek</p>
</div>
<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 clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>
+91-9494447584<br>17.2416N 80.1426E<br>