Страница 1 из 1

Projecting GCP points

Добавлено: 09 авг 2012, 22:37
silverado
Hi,

Is there any way to project GCP point into new coord system using GDAL executables? I know how to translate whole image but i have problem with putting changed image (with gdal_translate and gdalwarp) onto the other image that it has been translated against.

If it's not possible to do it only with executables, is there any easy way to do it?

Re: Projecting GCP points

Добавлено: 10 авг 2012, 11:23
Максим Дубинин
If you need to project some points, but not an image, try

Код: Выделить всё

cs2cs +proj=latlong +datum=WGS84 +to +proj=utm +zone=42 +datum=WGS84
50 50
if you need to go from latlong

or

Код: Выделить всё

proj -I -f '%.8f' +init=epsg:28355
301964.225304 6172911.602455
439497.461276 6230476.242273
if you need to go back to latlong

Re: Projecting GCP points

Добавлено: 10 авг 2012, 18:47
silverado
OK, my fault as long as I did not precise the problem.

I need to combine two images and I'm trying to do it by gdalwarp. Lets call them A.png and B.png. I can warp A.png into B.png with gdal_translate and gdalwarp and list of GCP points "listGCP". But i cannot combine them as I dont have any "newGCP" list that i could fit them.

So is there any way to combine the images within gdal binaries or to translate the A.png part of "listGCP" points into new warped image?