Re: [gdal-dev] Sub: Gdal, leave one out method with GCP'S (Interpolation Equation)

2020-02-26 Thread Martin.Franzke
Hi Pradeep, to calculate the destination coordinates of the two points, you can call gdaltransform with the same gcp parameters as gdal_translate und gdalwarp before. Gdal uses the same algorithm for transforming raster and vector data. Martin Von meinem iPhone gesendet Am 26.02.2020 um 17:00

Re: [gdal-dev] Sub: Gdal, leave one out method with GCP'S (Interpolation Equation)

2020-02-26 Thread Even Rouault
Pradeep Gulla, https://github.com/OSGeo/gdal/blob/master/autotest/gcore/transformer.py could serve as inspiration You could use gdal.Warp() to output to a in-memory VRT and use gdal.Transformer() on that Even > Hi All, > > I am georeferencing aerial images with gcps using gdal_translate and >

Re: [gdal-dev] Merge and Overviews with VSIMEM

2020-02-26 Thread Even Rouault
> When I attempt to call it, using the following, the `vsimem` object seems > to no longer be accessible to perform the overview creation: Yes, /vsimem/ objects are only visible during the lifetime of the process. Here as you start a subprocss, the /vsimem file will not be visible by the parent

[gdal-dev] Sub: Gdal, leave one out method with GCP'S (Interpolation Equation)

2020-02-26 Thread Pradeep kumar
Hi All, I am georeferencing aerial images with gcps using gdal_translate and gdalwarp. Before georeferencing image(warping) I would like to check quality and final result on a control_point cp (eg disabeld gcps). Therefore I would like to calculate the coordinates in destination image for a indepe

Re: [gdal-dev] Merge and Overviews with VSIMEM

2020-02-26 Thread Sean Gillies
Hi Brenton, On Wed, Feb 26, 2020 at 7:13 AM Brenton Mallen wrote: > Hi, > > I'm attempting to merge 2 multi-band tiffs as well as build overviews for > the resulting merged tiff. I'm a bit confused when I attempt to use a > `vsimem` object to perform the actions in memory. For example, I have

[gdal-dev] Merge and Overviews with VSIMEM

2020-02-26 Thread Brenton Mallen
Hi, I'm attempting to merge 2 multi-band tiffs as well as build overviews for the resulting merged tiff. I'm a bit confused when I attempt to use a `vsimem` object to perform the actions in memory. For example, I have a couple of functions defined as def merge_bands(tiffs, out_file): """Mer