• 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.

Using resample.exe for terrain mesh

Messages
152
Country
france
Hi everyone

I am trying to build a mesh for a carribean island.

I downloaded a GeoTIFF file for that island. The issue is that when I am trying to use it with resample.exe I get the following error: pixel width and height must be greater than zero

If that can help if I use GeoTifftoInf.exe to help creating the .inf file it says "GeoTIFF tags not found".

Can someone tell me what this means ?

Thanks for the help
Philippe
 
thanks Giovanni

I went through the SDK and noticed that some inf files contain more info than mine. However the one I have attached as simply as it is works on other GeoTIFF files so ..
I suspect that the GeoTIFF files I have downloaded are missing some data thus the "pixel width and height must be greater than zero" warning that I do not understand

Philippe
 
The .inf appears to be formatted correctly. To avoid errors I would place all items including resample.exe into a common directory and set my SourceDir = "." and DestDir = ".". We would need to see your source Geotiff, linked or shared here, to learn more. I suspect there is a mismatch in data projection.
 
I get the following error: pixel width and height must be greater than zero

This means that you have not specified your TIFF source file, the value of:

nCols = Number of columns (Integer) of your source file TIFF
nRows = Number of rows (Integer)
xDim = 0.000277777777777778 // srtm 1 arc sec 30 metri Size of each pixel in the X direction (Longitude) in degrees
yDim = 0.000277777777777778 Size of each pixel in the Y direction (Latitude) in degrees.


Ultimately your .inf file must be like this:

[Source]
Type = GeoTIFF
Layer = Elevation
SourceDir = "C:\Users\Philippe\Desktop\Mesh"
SourceFile = "dtm.tif"
nCols =
nRows =
xDim = 0.000277777777777778 // required for TIFF
yDim = 0.000277777777777778 // required for TIFF



[Destination]
DestDir = "Output"
DestBaseFileName = "C:\Users\Philippe\Desktop\Mesh\StEustatius"
DestFileType = BGL
LOD = Auto


These values are dependent on your source TIFF file.

nCols =
nRows =
xDim =
yDim =
 
Rick, Bavarello

yes agree the WGS84 data format was the issue in fact. I had to reproject and then everything worked ok

thanks to both of you !

Philippe
 
Back
Top