Re: [gdal-dev] gdalwarp under python

2011-08-10 Thread Balazs Szabó
I found this conversation, and it is ok! Thanks, Balazs 2011/8/10 Vadim Shlyakhov > On Tue, Aug 9, 2011 at 4:19 PM, Balazs Szabó wrote: > > Probably my SRS was wrong, my historical maps are in EPSG:3819, but I > needed > > to convert this coordinates to EPSG:23700, wich has wrong parameters in

Re: [gdal-dev] gdalwarp under python

2011-08-10 Thread Vadim Shlyakhov
On Tue, Aug 9, 2011 at 4:19 PM, Balazs Szabó wrote: > Probably my SRS was wrong, my historical maps are in EPSG:3819, but I needed > to convert this coordinates to EPSG:23700, wich has wrong parameters in open > source softwares (I have to add to the proj.4 format of EPSG:23700 the > following tow

Fwd: [gdal-dev] gdalwarp under python

2011-08-09 Thread Balazs Szabó
Probably my SRS was wrong, my historical maps are in EPSG:3819, but I needed to convert this coordinates to EPSG:23700, wich has wrong parameters in open source softwares (I have to add to the proj.4 format of EPSG:23700 the following towgs parameter: '+towgs84=52.684,-71.194,-13.975,-0.312,-0.1063

Re: [gdal-dev] gdalwarp under python

2011-08-08 Thread Balazs Szabó
Thank you Vadim! I tried the .GCPsToGeoTransform() method, and it is ok, but in the geotransform tuple (geotransform[0],geotransform[3] ) gave me fake starting point. Anyway, your python programs are very useful! ( I am a self made programmer, so those py files are very helpful for me!). Best re

Re: [gdal-dev] gdalwarp under python

2011-08-08 Thread Vadim Shlyakhov
Hi Balazs, On Thu, Aug 4, 2011 at 3:56 PM, Balazs Szabó wrote: > Dear list! > > How can I use this two bash command with gdal-python bindings? > > gdal_translate -of GTiff  -a_srs EPSG: -gcp 775 560 20.58329 48.12650 > -gcp 9518 539 20.8329 48.12650  -gcp 9525 7136 20.83329 48.00150  -gcp 758

Re: [gdal-dev] gdalwarp under python

2011-08-04 Thread Chaitanya kumar CH
Balazs, If you want to programatically perform the actions of gdalwarp, it's best to go through the code of grapwarp.cpp http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdalwarp.cpp There are some more test scripts you can refer, if you want to do this through command line. http://trac.osgeo.o

[gdal-dev] gdalwarp under python

2011-08-04 Thread Balazs Szabó
Dear list! How can I use this two bash command with gdal-python bindings? gdal_translate -of GTiff -a_srs EPSG: -gcp 775 560 20.58329 48.12650 -gcp 9518 539 20.8329 48.12650 -gcp 9525 7136 20.83329 48.00150 -gcp 758 7134 20.58329 48.00150 o.tif s.tif gdalwarp -tps s.tif t.tif [I can done