- Messages
- 73
After many days of research i found a good solution to convert csv/text/xyz data to fsx mesh with opensource tools.
Maybe this tutorial is helpful for others too.
Prerequisites
Maybe this tutorial is helpful for others too.
Prerequisites
- Data source (csv/txt/xyz with values x,y,z), in this example the data source is projected in EPSG:25833
- FSX SDK (resample.exe)
- VTBuilder (http://vterrain.org/)
- open VTBuilder
- Click Layer->Import Data (or just the 'import data' icon)
- choose 'Elevation' as layer type
- select your data source
- VTBuilder will ask you for a reference coordinate projection, in this example the source data is in EPSG:25833 projection, so we click 'yes' for set the projection and in the next dialog we click 'Set EPSG' and then enter the projection '25833' and click 'OK' and 'OK' again to import the data source
- You should now see a green tainted image
- To work with FSX we need to flip the the image (be aware that this step might only be needed for UTM projected source data), to do this click 'Project', 'Spacial', 'Flip elevation north / south'
- the image is now flipped and we can set the target projection
- click 'Layer', 'Convert Coordinate System' and VTBuilder will ask you again, click 'Set EPSG' and then enter the projection '4326' and click 'OK'.
- The displayed image may now have some read or blue areas, caused by the re-projection
- click 'Elevation', 'Fill unknown areas', 'slow and smooth'
- now it is time to export the data for fsx
- click 'Elevation', 'Export to...' and select 'RAW/INF for MS Flight Simulator'
- now you get a *.raw and a *.inf file. the inf file can be dragged and dropped to the resample tool instantly but i suggest to set fraction bits, LOD, compression quality, etc. first
- after you created the RAW/INF for MS Flight Simulator file, ...don't use it, just keep the INF file and export again as GeoTIFF, because the RAW format is only in 16 bit and you might get terracing effects even if you use fraction bits in the inf file
- after export to GeoTiff, just change the source filename in the inf file and add under source: Layer = Elevation and change the type to GeoTiff
- for 32bit GeoTIFF and 1m Data i suggest to add LOD = 4,16 to the destination section and CompressionQuality = 100
- FractionBits depends on the maximum altitude of your terrain, please refer to the MSDN documentation
Last edited: