[gdal-dev] Looking for gdal_merge workflow
Carl Godkin
cgodkin at gmail.com
Wed Sep 16 11:35:22 PDT 2015
Thank you both very much! This worked and produced the result I sought:
gdalwarp -tr X Y smaller.tif larger.tif out.tif
Thanks again,
carl
On Wed, Sep 16, 2015 at 10:03 AM, Even Rouault <even.rouault at spatialys.com>
wrote:
> Le mercredi 16 septembre 2015 18:48:43, Carl Godkin a écrit :
> > Thank you for the suggestion. I never realized that gdalwarp was useful
> > for more than coordinate system transformation!
> >
> > Now I'm trying to figure out the right options for this since gdalwarp's
> > manual page hardly mentions the mosaic operations.
>
> Mosaicing is a bit dealt at :
>
> http://download.osgeo.org/gdal/workshop/foss4ge2015/workshop_gdal.html#__RefHeading__5955_1333016408
>
> >
> > Given my hi-res image with plenty of nodata and lo-res image without any
> > nodata, can you suggest a command line that will choose the hi-res image
> > where it's available and fill in the nodata regions with the lo-res
> image?
> > I've played around some with gdalwarp but haven't achieved the result I
> am
> > looking for yet.
>
> gdalwarp in1.tif in2.tif out.tif should pick up the resolution of the
> hi-res
> image (not verified, but that's what the code suggests)
>
> Anyway with the -tr switch, you can control the resolution.
>
> >
> > Thanks again,
> >
> > carl
> >
> >
> >
> > On Wed, Sep 16, 2015 at 9:11 AM, Jean-Claude Repetto <jrepetto at free.fr>
> >
> > wrote:
> > > Le 16/09/2015 17:57, Carl Godkin a écrit :
> > > > Can you suggest a workflow to get what I want? Is there another tool
> > > > for this I should use instead?
> > >
> > > Hi,
> > >
> > > You should consider using gdalwarp, which is a more powerful tool than
> > > gdal_merge, that was written at the beginning to demonstrate how to use
> > > the Python API.
> > >
> > > Jean-Claude
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150916/ae638464/attachment.html>
More information about the gdal-dev
mailing list