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

P3D v4 lat long coordinates

I do the same. I just thought there was a way to alter the loe lon format in P3D. good try I guess. The joke is on me. Bob go for laugh..... no get.
 
like the display for the lat/lon in sim or for development?

There is a way based off FSX but I forget which file it holds stuff in to display fractional lat/lon (i.e. W84.12345678 etc) . I'd have to see if I still have access to the FSX beta newsgroup backup I made, or can track it down.

If in source code such as in xml or .inf etc you can use FSX/P3D format or fractional degrees.
 
This might not refer to the requirements above at all...

I remember doing some work, admittedly in FS2004, a long long time ago and using very basic XML, to carry out the conversion.

It could probably be carried out in one or two lines if any way conversant with XML.

I have no test vehicle in P3DV5 now to prove if it works but this is the code I used.

To convert the Longitude and Latitude:

Code:
(A:PLANE LATITUDE, degrees) abs (>L:LatWhole, number)
(L:LatWhole, number) flr (>L:LatDeg, number)
(L:LatWhole, number) (L:LatDeg, number) - (>L:LatMin, number)
(L:LatMin, number) 60 * (>L:LatMinC, number)


(A:PLANE LONGITUDE, degrees) abs (>L:LongWhole, number)
(L:LongWhole, number) flr (>L:LongDeg, number)
(L:LongWhole, number) (L:LongDeg, number) - (>L:LongMin, number)
(L:LongMin, number) 60 * (>L:LongMinC, number)

and to display it:

Code:
    <Element>
            <Position X="50" Y="11"/>
            <Text X="18" Y="12" Bright="Yes" Length="3" Font="Arial" Color="#FF9966" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>%((L:LatDeg, number))%!3d!</String>
          </Text>
    </Element>

    <Element>
            <Position X="70" Y="11"/>
            <Text X="6" Y="12" Bright="Yes" Length="1" Font="Arial" Color="#FF9966" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>*</String>
          </Text>
    </Element>

    <Element>
            <Position X="69" Y="11"/>
            <Text X="42" Y="12" Bright="Yes" Length="7" Font="Arial" Color="#FF9966" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>%((L:LatMinC, number))%!7.2f!</String>
          </Text>
    </Element>

    <Element>
            <Position X="115" Y="11"/>
            <Text X="6" Y="11" Bright="Yes" Length="1" Font="Arial" Color="#FF9966" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>'</String>
          </Text>
    </Element>



    <Element>
            <Position X="100" Y="11"/>
            <Text X="18" Y="12" Bright="Yes" Length="3" Font="Arial" Color="#FF9966" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>%((L:LongDeg, number))%!3d!</String>
          </Text>
    </Element>

    <Element>
            <Position X="120" Y="11"/>
            <Text X="6" Y="12" Bright="Yes" Length="1" Font="Arial" Color="#FF9966" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>*</String>
          </Text>
    </Element>

    <Element>
            <Position X="119" Y="11"/>
            <Text X="42" Y="12" Bright="Yes" Length="7" Font="Arial" Color="#FF9966" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>%((L:LongMinC, number))%!7.2f!</String>
          </Text>
    </Element>

    <Element>
            <Position X="165" Y="11"/>
            <Text X="6" Y="12" Bright="Yes" Length="1" Font="Arial" Color="#FF9966" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
            <String>'</String>
          </Text>
    </Element>

If nothing else this exercise helped me to find a plethora of gauges I sweated blood and tears over many years ago which are now just part and parcel of the aircraft I purchase (and they are so much better and nicer than mine!).

Walter
 
in your P3D.cfg file to have it display in decimal format. Is it still shift+z to pull up the on screen info like in FSX?

[Main]
LatLonFormat=Degrees
FractionalLatLonDigits=6

----------

Here are some options for the "Main" section of the p3d.cfg/fsx.cfg (could be named prepar3d.cfg) file entry:

//LatLonFormat=Degrees // Displays degrees.xxxxxx
//FractionalLatLonDigits=6

LatLonFormat=Minutes // Displays degrees.minutes.x
FractionalLatLonDigits=0

//LatLonFormat=Seconds //Displays degrees.minutes.seconds
//FractionalLatLonDigits=2
 
Last edited:
I do the same. I just thought there was a way to alter the loe lon format in P3D. good try I guess. The joke is on me. Bob go for laugh..... no get.

If you’re talking about development you can use any of the 3 formats in my last post in your xml/inf files. I always used fractional because it was easiest to deal with.
 
Back
Top