Am 25.10.2014 um 09:29 schrieb Artur Bercik:


sorry, yes the pixel size are in degrees,0.047 deg.(5 km approx. at
equator), in GCS and WGS84.


Ok, then it is easy. Using the values from your other post:

upperLeftX, upperLeftY = 150.1234, 50.1234 (They are in GCS with WGS84
datum)
pixelWidth, pixelHeight = 0.047, 0.047
totalColumns, TotalRows = 270, 406

and assuming the coordinates are East and North positive. To georeference the image, set the extent in gdal_translate with -a_srs EPSG:4326 and -a_ullr ulx uly lrx lry

ulx and uly are known, the others are
lrx = ulx + 270 * 0.047
lry = uly - 406 * 0.047

This does not work if your image is not North-orientated.

HTH,
André Joost




_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to