[gdal-dev] georeference and project a jpeg

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri May 25 03:00:56 EDT 2012


Derek,

Please provide the gdalinfo output of the img file.

Also, try this:
Create a vrt file instead of a HFA using the same gdal_translate command.
See if gdalwarp works with the vrt file.

On Fri, May 25, 2012 at 7:17 AM, jdmorgan <jdmorgan at unca.edu> wrote:

>  Hello,
>
> I am attempting to georeference and project a jpeg image using only gdal
> tool.  I have georeferenced the jpeg using the following command:
>
> gdal_translate -a_srs EPSG:102719 -of HFA -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 NCDCLogo.jpg NCDCLogo.img  ****
>
> ** **
>
> The command run fine and produces a img file however it does not line up
> with similarly project layer per the gcp’s.  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:
>
> “There is no affine transformation and no GCPs.”
>
> Any pointers here would be greatly appreciated.
>
> Thanks,
>
> Derek
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120525/1463336c/attachment.html


More information about the gdal-dev mailing list