Portree-Kid / flightgear-airports

GNU General Public License v3.0
6 stars 1 forks source link

Rounding of Lon/Lat in threshold.xml #144

Open gooneybird47 opened 3 years ago

gooneybird47 commented 3 years ago

FGA 0.0.33

The lon/lat data in exported threshold.xml's is being rounded to the nearest 0 Also leading 0's in rwy are being removed.

Original EHBK.threshold.xml (modified)

<?xml version='1.0' encoding='ISO-8859-1'?>
<PropertyList>
  <runway>
    <threshold>
      <lon>5.758143</lon>
      <lat>50.899946</lat>
      <rwy>03</rwy>
      <hdg-deg>32.55</hdg-deg>
      <displ-m>250.0</displ-m>
      <stopw-m>0.0</stopw-m>
    </threshold>
    <threshold>
      <lon>5.779228</lon>
      <lat>50.920775</lat>
      <rwy>21</rwy>
      <hdg-deg>212.56</hdg-deg>
      <displ-m>250.0</displ-m>
      <stopw-m>0.0</stopw-m>
    </threshold>
  </runway>
</PropertyList>

FGA EHBK.threshold.new.xml

<?xml version="1.0"?>
<PropertyList>
  <runway>
    <threshold>
      <lon>5.758140</lon>
      <lat>50.899950</lat>
      <rwy>3</rwy>
      <hdg-deg>32.55</hdg-deg>
      <displ-m>250</displ-m>
      <stopw-m>0.0</stopw-m>
    </threshold>
    <threshold>
      <lon>5.779230</lon>
      <lat>50.920770</lat>
      <rwy>21</rwy>
      <hdg-deg>212.56</hdg-deg>
      <displ-m>250</displ-m>
      <stopw-m>0.0</stopw-m>
    </threshold>
  </runway>
</PropertyList>
BecOzIcan commented 2 years ago

Same issue actually exist on all coordinates, I believe we are one decimal digit short in the values persisted

Example of a basic node below

image