• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Combining & splitting GeoTIFF files

ollyau

Resource contributor
Messages
1,026
Country
us-california
Is there a way to combine (and possibly later split) GeoTIFF files? The downloads I get from USGS are in smaller tiles, and I'd like them to be one large image to make it easier to mask and correct in Photoshop.

Thanks in advance!
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,772
Country
netherlands
Hi,

If you have fwtools it comes with a utility gdal_merge that can do this. Splitting is not so easy, but probably not needed anyway, resample can process the big file as well.

Send from my phone using Tapatalk, so excuse the short sentences and possible typos
 
Messages
1,510
Country
unitedstates
I combined a total of 38 (5000x5000px) NAD83 geotif tiles into 5 separate sources for my current project.

For each of the 5 sources, I used listgeo to generate .gtfs from the four corner tiles of each source, then I synthesized (in Notepad) a .gtf for a larger composite .tif, which combined 9 of the tiles I downloaded from the USGS server. I made the synthesized .gtf by taking the relevant coordinates from each of the four corner .gtfs and combining them into a new .gtf for the new 9-tile composite .tif and then calculating new center coordinates from the values of the four corners.

I snapped the 9 tiles together in PhotoShop, flattened, and saved as .tif, then I used geotifcp to put the data from my synthesized .gtf back in. That gave me a large (15000x15000px) NAD83 geotif which I then reprojected to WGS84 with gdalwarp.

When finally assembled and resampled into a .bgl the pieces all came together perfectly in the sim without any visible seams, roads lined up perfectly with the vector roads, etc.

All that said, I didn't know about gdal_merge at the time, I'll certainly give it a try next time around, lol :eek:

Jim
 
Messages
86
Country
unitedstates
The easy way is with Global Mapper(there is a demo), you can load as many images at one at once and then you can export with boundaries of 2048x2048 or what ever you need. I think this is easier if you aren't good with command prop like me and need a gui.
 

hcornea

Resource contributor
Messages
2,388
Country
australia
Does the demo allow you to export a Geotiff.

My recollection was that exports were nobbled ...

But yes Globalmapper makes it ridiculously easy.
 

ollyau

Resource contributor
Messages
1,026
Country
us-california
Thanks Arno, got it working. :)

For the record, Global Mapper doesn't allow for exporting in the non-registered version.
 
Top