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

XDim and YDim

Hi
I’ve just bought a GeoTiff file from my local supplier. I just can’t come around the XDim and YDim issue.
I have tried to figure out how to calculate it from the SDK Qmid and Lod values with no success. The example in the
SDK “9e-6 is 9 x 10 to the power of minus 6 degrees” tells me nothing either.

It is too big for SbuilderX
Size:
With: 20655
Height: 28120

I’m going to use the resample tool in the SDK. I manage to create a INI file, resample it and import it to SFX. It came
inn in the right position, but it was to large due to wrong calculation of XDim and YDim.

Info that came with the GeoTiff image(Norway):
[GEOGRAPHIC]
Name=Photo_Eksport-176500-AA
North=58.913268
South=58.8647194
West=5.5851139
East=5.6615807

Can someone help me out?

Reco
 

rhumbaflappy

Administrator
Staff member
Resource contributor
( ( 58.913268 - 58.8647194 ) / ( 28120 - 1 ) ) = 1.7265407731427148902877058216864e-6 XDim

( ( 5.6615807 - 5.5851139 ) / ( 20655 - 1 ) ) = 3.7022755882637745715115716084052e-6 YDim


For example, the YDim is the span of longitude divided by the number of pixel spans horizontally... the XDim is the span of latitude divided by the number of pixel spans vertically.

The number of pixel spans is 1 less than the number of pixels... it's the distance between the pixels that you are computing.

Dick
 
Dick,

Must resample.exe have DMS coordinates in the INF?

For my Gardermoen photoscenery, I used decimal degrees, and it was spot on, except I had to rotate the bmp 1.85 degrees before resampling. I could not find this info in the SDK.

Cheers,
:stirthepo
 

Md Alavi

Resource contributor
( ( 58.913268 - 58.8647194 ) / ( 28120 - 1 ) ) = 1.7265407731427148902877058216864e-6 XDim

( ( 5.6615807 - 5.5851139 ) / ( 20655 - 1 ) ) = 3.7022755882637745715115716084052e-6 YDim


For example, the YDim is the span of longitude divided by the number of pixel spans horizontally... the XDim is the span of latitude divided by the number of pixel spans vertically.

The number of pixel spans is 1 less than the number of pixels... it's the distance between the pixels that you are computing.

Dick
When I try to calculate the above XDim value this is what it shows- 1.726540773x10^-6
What method did you followed to get this value 1.7265407731427148902877058216864e-6?
Can you please help me out?
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Ancient post!

calculator.png
 
Top