OruxMapsDesktops converts to wrong Hemisphere!
OruxMapsDesktops converts to wrong Hemisphere!
I have found a bug in OruxMapsDesktop in converting an Ozi map for use with OruxMaps.
My map is located at around 150W 33S, which is longidute +150, latitude -33. This shows up fine in the OruxMapsDesktop when loading the .map file, but the exported xml file has longitude -30 latitude -33. The longitude is out by 180 degrees! I have tried different input longitudes and none of them correct the problem.
I believe somewhere in the code there is an inverse tangent function which is not properly checked, since tan(150) = tan(-30).
My map is located at around 150W 33S, which is longidute +150, latitude -33. This shows up fine in the OruxMapsDesktop when loading the .map file, but the exported xml file has longitude -30 latitude -33. The longitude is out by 180 degrees! I have tried different input longitudes and none of them correct the problem.
I believe somewhere in the code there is an inverse tangent function which is not properly checked, since tan(150) = tan(-30).
bonne- Guest
Re: OruxMapsDesktops converts to wrong Hemisphere!
Here is a demo .map file
And the output xml file
- Code:
OziExplorer Map Data File Version 2.2
90312N__ST_ALBANS
90312N__ST_ALBANS.ozf2
1 ,Map Code,
WGS 84,WGS84, 0.0000, 0.0000,WGS84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Latitude/Longitude,PolyCal,No,AutoCalOnly,No,BSBUseWPX,No
Point01,xy, 0, 0,in, deg, 33, 15,S, 150, 45,E, grid, , , ,N
Point02,xy, 5120, 2560,in, deg, 33, 22.5,S, 151, 0,E, grid, , , ,N
Point03,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point04,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point05,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point06,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point07,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point08,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point09,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point10,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point11,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point12,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point13,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point14,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point15,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point16,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point17,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point18,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point19,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point20,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point21,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point22,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point23,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point24,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point25,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point26,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point27,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point28,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point29,xy, , ,in, deg, , ,, , ,, grid, , , ,
Point30,xy, , ,in, deg, , ,, , ,, grid, , , ,
Projection Setup,,,,,,,,,,
Map Feature = MF ; Map Comment = MC These follow if they exist
Track File = TF These follow if they exist
Moving Map Parameters = MM? These follow if they exist
MM0,Yes
MMPNUM,4
MMPXY,1,0,0
MMPXY,2,5120,0
MMPXY,3,5120,2560
MMPXY,4,0,2560
MMPLL,1, 150.750000, -33.250000
MMPLL,2, 151.000000, -33.250000
MMPLL,3, 151.000000, -33.375000
MMPLL,4, 150.750000, -33.375000
MM1B,4.476923
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,5120,2560
And the output xml file
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<OruxTracker xmlns:orux="http://oruxtracker.com/app/res/calibration"
versionCode="2.1">
<MapCalibration layers="false" layerLevel="0">
<MapName><![CDATA[90312N__ST_ALBANS]]></MapName>
<MapChunks xMax="10" yMax="6" datum="WGS 1984:Global Definition@WGS 1984:Global Definition" projection="Latitude/Longitude" img_height="512" img_width="512" file_name="90312N__ST_ALBANS" />
<MapDimensions height="2568" width="5120" />
<MapBounds minLat="-33.27479492274384" maxLat="-33.35000000086982" minLon="29.199999999999996" maxLon="29.05002929687498" />
<CalibrationPoints>
<CalibrationPoint corner="TL" lon="29.199999999999996" lat="-33.35000000086982" />
<CalibrationPoint corner="BR" lon="29.05002929687498" lat="-33.27479492274384" />
<CalibrationPoint corner="TR" lon="29.05002929687498" lat="-33.35000000086983" />
<CalibrationPoint corner="BL" lon="29.199999999999996" lat="-33.27479492274384" />
</CalibrationPoints>
</MapCalibration>
</OruxTracker>
bonne- Guest
Re: OruxMapsDesktops converts to wrong Hemisphere!
bonne wrote:I have found a bug in OruxMapsDesktop in converting an Ozi map for use with OruxMaps.
My map is located at around 150W 33S, which is longidute +150, latitude -33. This shows up fine in the OruxMapsDesktop when loading the .map file, but the exported xml file has longitude -30 latitude -33. The longitude is out by 180 degrees! I have tried different input longitudes and none of them correct the problem.
I believe somewhere in the code there is an inverse tangent function which is not properly checked, since tan(150) = tan(-30).
Hi, bonne, you are right.
Deuce found the same problem yesterday. Test this version:
http://www.oruxmaps.com/OruxMapsDesktop1.4.7.zip
Orux
orux- Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

» Southern Hemisphere Maps
» Wrong E.T.E.
» Wrong coordinates?
» Wrong position
» Bug with Latitude/Longitude projection
» Wrong E.T.E.
» Wrong coordinates?
» Wrong position
» Bug with Latitude/Longitude projection
Permissions in this forum:
You cannot reply to topics in this forum
|
|