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

Problem calculating xdim and ydim for a bitmap

Messages
34
Country
finland
Ok I'm not a mathematician, but I managed to calculate the xdim and ydim for one bitmap just fine, using the method I found in this forum by Holger Sandmann.

However, for my second image, even though I did the calculation the exact same way, the resample.exe processes only 2 cells, leaving me with a very small bgl file. This is not right for the image.

Here's the xdim and ydim values I got:
xDim = 1,0419359110169491525423728813559e-5
yDim = 1,0483739098837209302325581395349e-5


Is there more than one way you need to use to calculate these values?

The bitmap I'm using has following coordinates and dimensions:

North/East: -9.863447 and 120.225413
South/West: -10.094257 and 120.382787

Dimensions: 15104x22016 pixels


Thanks in advance,
Antti
 
Ok there must be something I'm not getting here. What is the proper way of calculating the xdim and ydim values for a photoscenery bitmap?

The one Ive tried was this:

if you have the NW (X1,Y1) and SE (X2,Y2) corner coordinates you can determine xdim and ydim as follows:

xdim = (X2-X1)/bitmap columns
ydim = (Y2-Y1)/bitmap rows

If either value is negative just discard the sign.


The coordinates need to be in decimal degrees.


But this is not really working out for me. Im using Windows calculator for this, but the values I get doesnt work with resample.exe.

Bitmap columns and rows means the amount of pixels am I correct?
 
Hi ahaka.

You need to include your INF file text for anyone to help with this.

Dick
 
Hi there,

seeing the inf would help but I notice that you used commas for the xDim/yDim values; those should be "." in the actual inf.

Cheers, Holger
 
Hi Holger,

I think it might have been my problem that I used comma instead of dot. I have now changed the symbol from windows control panel, so I should automatically get point as a decimal symbol now.

Anyway I dont have the original INF file anymore, as I projected the image with Global Mapper and got the xdim and ydim from there.

Funny though that the values I get from Global Mapper is different than when using calculator.
 
Back
Top