I am sending this because I just realized that I posted w/ the wrong subject so that it gets filed correctly in the archive:

This is a great listserv!

Chaitanya using a vrt worked so thank for that tip. Also, it must be the
case as Jukka says that img isn't holding the control points. But as
suggested a GeoTiff (and VRT) work fine.

Thanks so much for your help.

Cheers,
Derek


On 5/25/2012 3:00 AM, Chaitanya kumar CH wrote:
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 <jdmor...@unca.edu <mailto:jdmor...@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.5940266570877NCDCLogo.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@lists.osgeo.org <mailto:gdal-dev@lists.osgeo.org>
    http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E


--
Derek @ NEMAC
http://nemac.unca.edu

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to