Skip to content

Instantly share code, notes, and snippets.

@BManx2000
Forked from anonymous/generate_lookup_table.lua
Last active March 29, 2021 13:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BManx2000/b04c64cb80046b577ba2 to your computer and use it in GitHub Desktop.
Save BManx2000/b04c64cb80046b577ba2 to your computer and use it in GitHub Desktop.
DCS World mission file coordinate converter
-- This is a script you can put in a mission
-- Limits that encompass the entire green area in the mission editor
local minY = -600000
local maxY = 1500000
local minX = -700000
local maxX = 400000
-- Data is sampled every 50km
local step = 50000
for xCoord = minX, maxX, step do
local row = {}
local rowString = "{"
for yCoord = minY, maxY, step do
local convLat, convLon = coord.LOtoLL({x = xCoord, y = 0, z = yCoord})
local lookupPoint = {{yCoord, xCoord}, {convLat, convLon}}
rowString = rowString .. string.format("{{%f,%f},{%f,%f}},", yCoord, xCoord, convLat, convLon)
end
rowString = rowString .. "},\n"
env.info(rowString)
end
-- This is a standalone lua file you can run
-- First argument is .miz Y coordinate, second argument is .miz X coordinate
local lut = {
{{{-600000.000000,-700000.000000},{38.690029,27.247349}},{{-550000.000000,-700000.000000},{38.716870,27.819757}},{{-500000.000000,-700000.000000},{38.740919,28.392887}},{{-450000.000000,-700000.000000},{38.762165,28.966663}},{{-400000.000000,-700000.000000},{38.780601,29.541004}},{{-350000.000000,-700000.000000},{38.796218,30.115831}},{{-300000.000000,-700000.000000},{38.809010,30.691064}},{{-250000.000000,-700000.000000},{38.818970,31.266621}},{{-200000.000000,-700000.000000},{38.826096,31.842423}},{{-150000.000000,-700000.000000},{38.830384,32.418388}},{{-100000.000000,-700000.000000},{38.831831,32.994435}},{{-50000.000000,-700000.000000},{38.830438,33.570483}},{{0.000000,-700000.000000},{38.826206,34.146451}},{{50000.000000,-700000.000000},{38.819135,34.722256}},{{100000.000000,-700000.000000},{38.809229,35.297819}},{{150000.000000,-700000.000000},{38.796492,35.873059}},{{200000.000000,-700000.000000},{38.780930,36.447895}},{{250000.000000,-700000.000000},{38.762548,37.022246}},{{300000.000000,-700000.000000},{38.741356,37.596033}},{{350000.000000,-700000.000000},{38.717361,38.169177}},{{400000.000000,-700000.000000},{38.690574,38.741599}},{{450000.000000,-700000.000000},{38.661006,39.313221}},{{500000.000000,-700000.000000},{38.628670,39.883966}},{{550000.000000,-700000.000000},{38.593578,40.453757}},{{600000.000000,-700000.000000},{38.555746,41.022517}},{{650000.000000,-700000.000000},{38.515190,41.590173}},{{700000.000000,-700000.000000},{38.471925,42.156651}},{{750000.000000,-700000.000000},{38.425970,42.721876}},{{800000.000000,-700000.000000},{38.377344,43.285778}},{{850000.000000,-700000.000000},{38.326066,43.848285}},{{900000.000000,-700000.000000},{38.272158,44.409328}},{{950000.000000,-700000.000000},{38.215640,44.968839}},{{1000000.000000,-700000.000000},{38.156537,45.526749}},{{1050000.000000,-700000.000000},{38.094871,46.082993}},{{1100000.000000,-700000.000000},{38.030667,46.637507}},{{1150000.000000,-700000.000000},{37.963950,47.190226}},{{1200000.000000,-700000.000000},{37.894746,47.741089}},{{1250000.000000,-700000.000000},{37.823083,48.290037}},{{1300000.000000,-700000.000000},{37.748989,48.837008}},{{1350000.000000,-700000.000000},{37.672491,49.381947}},{{1400000.000000,-700000.000000},{37.593620,49.924796}},{{1450000.000000,-700000.000000},{37.512404,50.465502}},{{1500000.000000,-700000.000000},{37.428876,51.004011}},},
{{{-600000.000000,-650000.000000},{39.138314,27.210922}},{{-550000.000000,-650000.000000},{39.165586,27.786912}},{{-500000.000000,-650000.000000},{39.190020,28.363643}},{{-450000.000000,-650000.000000},{39.211608,28.941034}},{{-400000.000000,-650000.000000},{39.230340,29.519006}},{{-350000.000000,-650000.000000},{39.246208,30.097475}},{{-300000.000000,-650000.000000},{39.259206,30.676359}},{{-250000.000000,-650000.000000},{39.269327,31.255577}},{{-200000.000000,-650000.000000},{39.276567,31.835045}},{{-150000.000000,-650000.000000},{39.280924,32.414680}},{{-100000.000000,-650000.000000},{39.282395,32.994400}},{{-50000.000000,-650000.000000},{39.280979,33.574120}},{{0.000000,-650000.000000},{39.276679,34.153758}},{{50000.000000,-650000.000000},{39.269494,34.733230}},{{100000.000000,-650000.000000},{39.259429,35.312453}},{{150000.000000,-650000.000000},{39.246487,35.891345}},{{200000.000000,-650000.000000},{39.230674,36.469823}},{{250000.000000,-650000.000000},{39.211997,37.047804}},{{300000.000000,-650000.000000},{39.190465,37.625208}},{{350000.000000,-650000.000000},{39.166085,38.201953}},{{400000.000000,-650000.000000},{39.138868,38.777958}},{{450000.000000,-650000.000000},{39.108826,39.353143}},{{500000.000000,-650000.000000},{39.075972,39.927429}},{{550000.000000,-650000.000000},{39.040319,40.500738}},{{600000.000000,-650000.000000},{39.001883,41.072992}},{{650000.000000,-650000.000000},{38.960679,41.644115}},{{700000.000000,-650000.000000},{38.916724,42.214030}},{{750000.000000,-650000.000000},{38.870038,42.782664}},{{800000.000000,-650000.000000},{38.820638,43.349942}},{{850000.000000,-650000.000000},{38.768546,43.915792}},{{900000.000000,-650000.000000},{38.713783,44.480143}},{{950000.000000,-650000.000000},{38.656371,45.042924}},{{1000000.000000,-650000.000000},{38.596333,45.604069}},{{1050000.000000,-650000.000000},{38.533693,46.163507}},{{1100000.000000,-650000.000000},{38.468478,46.721175}},{{1150000.000000,-650000.000000},{38.400712,47.277007}},{{1200000.000000,-650000.000000},{38.330422,47.830941}},{{1250000.000000,-650000.000000},{38.257637,48.382914}},{{1300000.000000,-650000.000000},{38.182384,48.932866}},{{1350000.000000,-650000.000000},{38.104693,49.480739}},{{1400000.000000,-650000.000000},{38.024593,50.026476}},{{1450000.000000,-650000.000000},{37.942116,50.570021}},{{1500000.000000,-650000.000000},{37.857293,51.111321}},},
{{{-600000.000000,-600000.000000},{39.586536,27.173673}},{{-550000.000000,-600000.000000},{39.614243,27.753325}},{{-500000.000000,-600000.000000},{39.639069,28.333737}},{{-450000.000000,-600000.000000},{39.661002,28.914826}},{{-400000.000000,-600000.000000},{39.680034,29.496509}},{{-350000.000000,-600000.000000},{39.696157,30.078702}},{{-300000.000000,-600000.000000},{39.709362,30.661322}},{{-250000.000000,-600000.000000},{39.719646,31.244282}},{{-200000.000000,-600000.000000},{39.727002,31.827500}},{{-150000.000000,-600000.000000},{39.731429,32.410888}},{{-100000.000000,-600000.000000},{39.732923,32.994363}},{{-50000.000000,-600000.000000},{39.731485,33.577839}},{{0.000000,-600000.000000},{39.727115,34.161231}},{{50000.000000,-600000.000000},{39.719815,34.744452}},{{100000.000000,-600000.000000},{39.709589,35.327419}},{{150000.000000,-600000.000000},{39.696439,35.910045}},{{200000.000000,-600000.000000},{39.680373,36.492247}},{{250000.000000,-600000.000000},{39.661398,37.073941}},{{300000.000000,-600000.000000},{39.639520,37.655042}},{{350000.000000,-600000.000000},{39.614750,38.235468}},{{400000.000000,-600000.000000},{39.587099,38.815136}},{{450000.000000,-600000.000000},{39.556577,39.393963}},{{500000.000000,-600000.000000},{39.523199,39.971870}},{{550000.000000,-600000.000000},{39.486978,40.548775}},{{600000.000000,-600000.000000},{39.447929,41.124599}},{{650000.000000,-600000.000000},{39.406070,41.699264}},{{700000.000000,-600000.000000},{39.361417,42.272692}},{{750000.000000,-600000.000000},{39.313990,42.844807}},{{800000.000000,-600000.000000},{39.263807,43.415533}},{{850000.000000,-600000.000000},{39.210891,43.984797}},{{900000.000000,-600000.000000},{39.155263,44.552526}},{{950000.000000,-600000.000000},{39.096945,45.118648}},{{1000000.000000,-600000.000000},{39.035962,45.683094}},{{1050000.000000,-600000.000000},{38.972338,46.245793}},{{1100000.000000,-600000.000000},{38.906099,46.806680}},{{1150000.000000,-600000.000000},{38.837272,47.365688}},{{1200000.000000,-600000.000000},{38.765883,47.922753}},{{1250000.000000,-600000.000000},{38.691962,48.477811}},{{1300000.000000,-600000.000000},{38.615538,49.030803}},{{1350000.000000,-600000.000000},{38.536640,49.581668}},{{1400000.000000,-600000.000000},{38.455299,50.130348}},{{1450000.000000,-600000.000000},{38.371546,50.676786}},{{1500000.000000,-600000.000000},{38.285414,51.220929}},},
{{{-600000.000000,-550000.000000},{40.034693,27.135583}},{{-550000.000000,-550000.000000},{40.062842,27.718979}},{{-500000.000000,-550000.000000},{40.088063,28.303154}},{{-450000.000000,-550000.000000},{40.110347,28.888024}},{{-400000.000000,-550000.000000},{40.129683,29.473502}},{{-350000.000000,-550000.000000},{40.146062,30.059504}},{{-300000.000000,-550000.000000},{40.159479,30.645942}},{{-250000.000000,-550000.000000},{40.169927,31.232731}},{{-200000.000000,-550000.000000},{40.177401,31.819783}},{{-150000.000000,-550000.000000},{40.181898,32.407010}},{{-100000.000000,-550000.000000},{40.183417,32.994326}},{{-50000.000000,-550000.000000},{40.181956,33.581643}},{{0.000000,-550000.000000},{40.177516,34.168873}},{{50000.000000,-550000.000000},{40.170099,34.755929}},{{100000.000000,-550000.000000},{40.159709,35.342724}},{{150000.000000,-550000.000000},{40.146350,35.929170}},{{200000.000000,-550000.000000},{40.130027,36.515181}},{{250000.000000,-550000.000000},{40.110748,37.100670}},{{300000.000000,-550000.000000},{40.088522,37.685552}},{{350000.000000,-550000.000000},{40.063357,38.269742}},{{400000.000000,-550000.000000},{40.035265,38.853154}},{{450000.000000,-550000.000000},{40.004257,39.435705}},{{500000.000000,-550000.000000},{39.970348,40.017312}},{{550000.000000,-550000.000000},{39.933551,40.597893}},{{600000.000000,-550000.000000},{39.893883,41.177365}},{{650000.000000,-550000.000000},{39.851360,41.755650}},{{700000.000000,-550000.000000},{39.806000,42.332667}},{{750000.000000,-550000.000000},{39.757823,42.908338}},{{800000.000000,-550000.000000},{39.706849,43.482587}},{{850000.000000,-550000.000000},{39.653098,44.055338}},{{900000.000000,-550000.000000},{39.596594,44.626517}},{{950000.000000,-550000.000000},{39.537360,45.196049}},{{1000000.000000,-550000.000000},{39.475420,45.763864}},{{1050000.000000,-550000.000000},{39.410800,46.329892}},{{1100000.000000,-550000.000000},{39.343525,46.894064}},{{1150000.000000,-550000.000000},{39.273624,47.456312}},{{1200000.000000,-550000.000000},{39.201124,48.016571}},{{1250000.000000,-550000.000000},{39.126055,48.574777}},{{1300000.000000,-550000.000000},{39.048446,49.130867}},{{1350000.000000,-550000.000000},{38.968327,49.684782}},{{1400000.000000,-550000.000000},{38.885730,50.236461}},{{1450000.000000,-550000.000000},{38.800688,50.785848}},{{1500000.000000,-550000.000000},{38.713232,51.332887}},},
{{{-600000.000000,-500000.000000},{40.482784,27.096629}},{{-550000.000000,-500000.000000},{40.511380,27.683854}},{{-500000.000000,-500000.000000},{40.537003,28.271877}},{{-450000.000000,-500000.000000},{40.559641,28.860612}},{{-400000.000000,-500000.000000},{40.579284,29.449972}},{{-350000.000000,-500000.000000},{40.595925,30.039869}},{{-300000.000000,-500000.000000},{40.609556,30.630213}},{{-250000.000000,-500000.000000},{40.620170,31.220917}},{{-200000.000000,-500000.000000},{40.627763,31.811890}},{{-150000.000000,-500000.000000},{40.632332,32.403044}},{{-100000.000000,-500000.000000},{40.633875,32.994288}},{{-50000.000000,-500000.000000},{40.632391,33.585534}},{{0.000000,-500000.000000},{40.627880,34.176690}},{{50000.000000,-500000.000000},{40.620345,34.767668}},{{100000.000000,-500000.000000},{40.609789,35.358378}},{{150000.000000,-500000.000000},{40.596217,35.948730}},{{200000.000000,-500000.000000},{40.579634,36.538636}},{{250000.000000,-500000.000000},{40.560049,37.128007}},{{300000.000000,-500000.000000},{40.537468,37.716755}},{{350000.000000,-500000.000000},{40.511903,38.304793}},{{400000.000000,-500000.000000},{40.483365,38.892034}},{{450000.000000,-500000.000000},{40.451865,39.478391}},{{500000.000000,-500000.000000},{40.417418,40.063781}},{{550000.000000,-500000.000000},{40.380039,40.648118}},{{600000.000000,-500000.000000},{40.339743,41.231320}},{{650000.000000,-500000.000000},{40.296548,41.813303}},{{700000.000000,-500000.000000},{40.250472,42.393988}},{{750000.000000,-500000.000000},{40.201536,42.973293}},{{800000.000000,-500000.000000},{40.149759,43.551140}},{{850000.000000,-500000.000000},{40.095164,44.127452}},{{900000.000000,-500000.000000},{40.037774,44.702153}},{{950000.000000,-500000.000000},{39.977612,45.275168}},{{1000000.000000,-500000.000000},{39.914703,45.846423}},{{1050000.000000,-500000.000000},{39.849075,46.415848}},{{1100000.000000,-500000.000000},{39.780752,46.983371}},{{1150000.000000,-500000.000000},{39.709765,47.548925}},{{1200000.000000,-500000.000000},{39.636140,48.112442}},{{1250000.000000,-500000.000000},{39.559909,48.673858}},{{1300000.000000,-500000.000000},{39.481101,49.233108}},{{1350000.000000,-500000.000000},{39.399747,49.790131}},{{1400000.000000,-500000.000000},{39.315880,50.344867}},{{1450000.000000,-500000.000000},{39.229533,50.897258}},{{1500000.000000,-500000.000000},{39.140739,51.447246}},},
{{{-600000.000000,-450000.000000},{40.930809,27.056791}},{{-550000.000000,-450000.000000},{40.959858,27.647930}},{{-500000.000000,-450000.000000},{40.985887,28.239888}},{{-450000.000000,-450000.000000},{41.008884,28.832576}},{{-400000.000000,-450000.000000},{41.028840,29.425906}},{{-350000.000000,-450000.000000},{41.045745,30.019785}},{{-300000.000000,-450000.000000},{41.059592,30.614125}},{{-250000.000000,-450000.000000},{41.070375,31.208832}},{{-200000.000000,-450000.000000},{41.078089,31.803817}},{{-150000.000000,-450000.000000},{41.082731,32.398987}},{{-100000.000000,-450000.000000},{41.084298,32.994250}},{{-50000.000000,-450000.000000},{41.082790,33.589513}},{{0.000000,-450000.000000},{41.078208,34.184686}},{{50000.000000,-450000.000000},{41.070553,34.779675}},{{100000.000000,-450000.000000},{41.059829,35.374389}},{{150000.000000,-450000.000000},{41.046041,35.968736}},{{200000.000000,-450000.000000},{41.029195,36.562626}},{{250000.000000,-450000.000000},{41.009298,37.155966}},{{300000.000000,-450000.000000},{40.986360,37.748668}},{{350000.000000,-450000.000000},{40.960389,38.340641}},{{400000.000000,-450000.000000},{40.931399,38.931796}},{{450000.000000,-450000.000000},{40.899401,39.522046}},{{500000.000000,-450000.000000},{40.864409,40.111303}},{{550000.000000,-450000.000000},{40.826439,40.699480}},{{600000.000000,-450000.000000},{40.785507,41.286492}},{{650000.000000,-450000.000000},{40.741632,41.872256}},{{700000.000000,-450000.000000},{40.694831,42.456688}},{{750000.000000,-450000.000000},{40.645125,43.039705}},{{800000.000000,-450000.000000},{40.592536,43.621228}},{{850000.000000,-450000.000000},{40.537086,44.201178}},{{900000.000000,-450000.000000},{40.478798,44.779475}},{{950000.000000,-450000.000000},{40.417696,45.356045}},{{1000000.000000,-450000.000000},{40.353808,45.930813}},{{1050000.000000,-450000.000000},{40.287158,46.503704}},{{1100000.000000,-450000.000000},{40.217775,47.074648}},{{1150000.000000,-450000.000000},{40.145688,47.643575}},{{1200000.000000,-450000.000000},{40.070925,48.210416}},{{1250000.000000,-450000.000000},{39.993518,48.775104}},{{1300000.000000,-450000.000000},{39.913497,49.337576}},{{1350000.000000,-450000.000000},{39.830894,49.897768}},{{1400000.000000,-450000.000000},{39.745743,50.455619}},{{1450000.000000,-450000.000000},{39.658076,51.011070}},{{1500000.000000,-450000.000000},{39.567929,51.564063}},},
{{{-600000.000000,-400000.000000},{41.378766,27.016046}},{{-550000.000000,-400000.000000},{41.408274,27.611187}},{{-500000.000000,-400000.000000},{41.434715,28.207168}},{{-450000.000000,-400000.000000},{41.458076,28.803900}},{{-400000.000000,-400000.000000},{41.478348,29.401288}},{{-350000.000000,-400000.000000},{41.495521,29.999242}},{{-300000.000000,-400000.000000},{41.509587,30.597668}},{{-250000.000000,-400000.000000},{41.520542,31.196471}},{{-200000.000000,-400000.000000},{41.528378,31.795559}},{{-150000.000000,-400000.000000},{41.533093,32.394837}},{{-100000.000000,-400000.000000},{41.534685,32.994210}},{{-50000.000000,-400000.000000},{41.533154,33.593584}},{{0.000000,-400000.000000},{41.528499,34.192864}},{{50000.000000,-400000.000000},{41.520722,34.791957}},{{100000.000000,-400000.000000},{41.509829,35.390767}},{{150000.000000,-400000.000000},{41.495822,35.989201}},{{200000.000000,-400000.000000},{41.478709,36.587164}},{{250000.000000,-400000.000000},{41.458497,37.184565}},{{300000.000000,-400000.000000},{41.435195,37.781310}},{{350000.000000,-400000.000000},{41.408814,38.377307}},{{400000.000000,-400000.000000},{41.379365,38.972465}},{{450000.000000,-400000.000000},{41.346862,39.566694}},{{500000.000000,-400000.000000},{41.311318,40.159904}},{{550000.000000,-400000.000000},{41.272750,40.752006}},{{600000.000000,-400000.000000},{41.231174,41.342914}},{{650000.000000,-400000.000000},{41.186609,41.932541}},{{700000.000000,-400000.000000},{41.139073,42.520802}},{{750000.000000,-400000.000000},{41.088589,43.107612}},{{800000.000000,-400000.000000},{41.035177,43.692890}},{{850000.000000,-400000.000000},{40.978860,44.276555}},{{900000.000000,-400000.000000},{40.919663,44.858526}},{{950000.000000,-400000.000000},{40.857610,45.438726}},{{1000000.000000,-400000.000000},{40.792729,46.017079}},{{1050000.000000,-400000.000000},{40.725046,46.593509}},{{1100000.000000,-400000.000000},{40.654589,47.167943}},{{1150000.000000,-400000.000000},{40.581388,47.740311}},{{1200000.000000,-400000.000000},{40.505473,48.310542}},{{1250000.000000,-400000.000000},{40.426876,48.878568}},{{1300000.000000,-400000.000000},{40.345627,49.444324}},{{1350000.000000,-400000.000000},{40.261761,50.007746}},{{1400000.000000,-400000.000000},{40.175309,50.568771}},{{1450000.000000,-400000.000000},{40.086308,51.127340}},{{1500000.000000,-400000.000000},{39.994792,51.683393}},},
{{{-600000.000000,-350000.000000},{41.826655,26.974369}},{{-550000.000000,-350000.000000},{41.856628,27.573603}},{{-500000.000000,-350000.000000},{41.883486,28.173699}},{{-450000.000000,-350000.000000},{41.907216,28.774565}},{{-400000.000000,-350000.000000},{41.927808,29.376106}},{{-350000.000000,-350000.000000},{41.945253,29.978227}},{{-300000.000000,-350000.000000},{41.959542,30.580832}},{{-250000.000000,-350000.000000},{41.970670,31.183826}},{{-200000.000000,-350000.000000},{41.978630,31.787111}},{{-150000.000000,-350000.000000},{41.983420,32.390591}},{{-100000.000000,-350000.000000},{41.985038,32.994169}},{{-50000.000000,-350000.000000},{41.983482,33.597748}},{{0.000000,-350000.000000},{41.978753,34.201231}},{{50000.000000,-350000.000000},{41.970854,34.804521}},{{100000.000000,-350000.000000},{41.959787,35.407521}},{{150000.000000,-350000.000000},{41.945559,36.010135}},{{200000.000000,-350000.000000},{41.928175,36.612266}},{{250000.000000,-350000.000000},{41.907644,37.213819}},{{300000.000000,-350000.000000},{41.883974,37.814699}},{{350000.000000,-350000.000000},{41.857176,38.414811}},{{400000.000000,-350000.000000},{41.827263,39.014063}},{{450000.000000,-350000.000000},{41.794248,39.612360}},{{500000.000000,-350000.000000},{41.758144,40.209612}},{{550000.000000,-350000.000000},{41.718970,40.805728}},{{600000.000000,-350000.000000},{41.676741,41.400618}},{{650000.000000,-350000.000000},{41.631477,41.994193}},{{700000.000000,-350000.000000},{41.583198,42.586366}},{{750000.000000,-350000.000000},{41.531924,43.177052}},{{800000.000000,-350000.000000},{41.477678,43.766166}},{{850000.000000,-350000.000000},{41.420483,44.353625}},{{900000.000000,-350000.000000},{41.360365,44.939348}},{{950000.000000,-350000.000000},{41.297349,45.523255}},{{1000000.000000,-350000.000000},{41.231463,46.105267}},{{1050000.000000,-350000.000000},{41.162733,46.685309}},{{1100000.000000,-350000.000000},{41.091189,47.263305}},{{1150000.000000,-350000.000000},{41.016861,47.839184}},{{1200000.000000,-350000.000000},{40.939779,48.412872}},{{1250000.000000,-350000.000000},{40.859977,48.984303}},{{1300000.000000,-350000.000000},{40.777486,49.553407}},{{1350000.000000,-350000.000000},{40.692340,50.120121}},{{1400000.000000,-350000.000000},{40.604574,50.684381}},{{1450000.000000,-350000.000000},{40.514222,51.246125}},{{1500000.000000,-350000.000000},{40.421320,51.805295}},},
{{{-600000.000000,-300000.000000},{42.274473,26.931736}},{{-550000.000000,-300000.000000},{42.304918,27.535155}},{{-500000.000000,-300000.000000},{42.332199,28.139461}},{{-450000.000000,-300000.000000},{42.356304,28.744556}},{{-400000.000000,-300000.000000},{42.377221,29.350344}},{{-350000.000000,-300000.000000},{42.394941,29.956728}},{{-300000.000000,-300000.000000},{42.409456,30.563609}},{{-250000.000000,-300000.000000},{42.420759,31.170888}},{{-200000.000000,-300000.000000},{42.428846,31.778468}},{{-150000.000000,-300000.000000},{42.433712,32.386247}},{{-100000.000000,-300000.000000},{42.435355,32.994128}},{{-50000.000000,-300000.000000},{42.433774,33.602009}},{{0.000000,-300000.000000},{42.428970,34.209792}},{{50000.000000,-300000.000000},{42.420946,34.817376}},{{100000.000000,-300000.000000},{42.409705,35.424662}},{{150000.000000,-300000.000000},{42.395252,36.031552}},{{200000.000000,-300000.000000},{42.377594,36.637946}},{{250000.000000,-300000.000000},{42.356738,37.243747}},{{300000.000000,-300000.000000},{42.332695,37.848856}},{{350000.000000,-300000.000000},{42.305476,38.453178}},{{400000.000000,-300000.000000},{42.275091,39.056615}},{{450000.000000,-300000.000000},{42.241557,39.659073}},{{500000.000000,-300000.000000},{42.204886,40.260457}},{{550000.000000,-300000.000000},{42.165097,40.860676}},{{600000.000000,-300000.000000},{42.122207,41.459635}},{{650000.000000,-300000.000000},{42.076234,42.057246}},{{700000.000000,-300000.000000},{42.027200,42.653418}},{{750000.000000,-300000.000000},{41.975127,43.248064}},{{800000.000000,-300000.000000},{41.920036,43.841097}},{{850000.000000,-300000.000000},{41.861952,44.432433}},{{900000.000000,-300000.000000},{41.800901,45.021987}},{{950000.000000,-300000.000000},{41.736909,45.609678}},{{1000000.000000,-300000.000000},{41.670004,46.195427}},{{1050000.000000,-300000.000000},{41.600214,46.779155}},{{1100000.000000,-300000.000000},{41.527569,47.360786}},{{1150000.000000,-300000.000000},{41.452099,47.940246}},{{1200000.000000,-300000.000000},{41.373837,48.517462}},{{1250000.000000,-300000.000000},{41.292815,49.092363}},{{1300000.000000,-300000.000000},{41.209066,49.664882}},{{1350000.000000,-300000.000000},{41.122625,50.234951}},{{1400000.000000,-300000.000000},{41.033527,50.802506}},{{1450000.000000,-300000.000000},{40.941808,51.367486}},{{1500000.000000,-300000.000000},{40.847505,51.929829}},},
{{{-600000.000000,-250000.000000},{42.722221,26.888122}},{{-550000.000000,-250000.000000},{42.753145,27.495822}},{{-500000.000000,-250000.000000},{42.780855,28.104432}},{{-450000.000000,-250000.000000},{42.805339,28.713853}},{{-400000.000000,-250000.000000},{42.826585,29.323986}},{{-350000.000000,-250000.000000},{42.844585,29.934731}},{{-300000.000000,-250000.000000},{42.859329,30.545986}},{{-250000.000000,-250000.000000},{42.870810,31.157651}},{{-200000.000000,-250000.000000},{42.879024,31.769624}},{{-150000.000000,-250000.000000},{42.883967,32.381803}},{{-100000.000000,-250000.000000},{42.885636,32.994085}},{{-50000.000000,-250000.000000},{42.884030,33.606368}},{{0.000000,-250000.000000},{42.879151,34.218550}},{{50000.000000,-250000.000000},{42.871000,34.830528}},{{100000.000000,-250000.000000},{42.859582,35.442200}},{{150000.000000,-250000.000000},{42.844901,36.053465}},{{200000.000000,-250000.000000},{42.826964,36.664220}},{{250000.000000,-250000.000000},{42.805780,37.274366}},{{300000.000000,-250000.000000},{42.781358,37.883801}},{{350000.000000,-250000.000000},{42.753711,38.492428}},{{400000.000000,-250000.000000},{42.722849,39.100146}},{{450000.000000,-250000.000000},{42.688788,39.706859}},{{500000.000000,-250000.000000},{42.651542,40.312469}},{{550000.000000,-250000.000000},{42.611130,40.916882}},{{600000.000000,-250000.000000},{42.567569,41.520003}},{{650000.000000,-250000.000000},{42.520878,42.121738}},{{700000.000000,-250000.000000},{42.471080,42.721997}},{{750000.000000,-250000.000000},{42.418195,43.320689}},{{800000.000000,-250000.000000},{42.362248,43.917726}},{{850000.000000,-250000.000000},{42.303263,44.513021}},{{900000.000000,-250000.000000},{42.241267,45.106488}},{{950000.000000,-250000.000000},{42.176286,45.698044}},{{1000000.000000,-250000.000000},{42.108349,46.287608}},{{1050000.000000,-250000.000000},{42.037484,46.875099}},{{1100000.000000,-250000.000000},{41.963724,47.460439}},{{1150000.000000,-250000.000000},{41.887098,48.043553}},{{1200000.000000,-250000.000000},{41.807640,48.624366}},{{1250000.000000,-250000.000000},{41.725382,49.202807}},{{1300000.000000,-250000.000000},{41.640360,49.778806}},{{1350000.000000,-250000.000000},{41.552608,50.352295}},{{1400000.000000,-250000.000000},{41.462162,50.923208}},{{1450000.000000,-250000.000000},{41.369060,51.491483}},{{1500000.000000,-250000.000000},{41.273339,52.057058}},},
{{{-600000.000000,-200000.000000},{43.169897,26.843501}},{{-550000.000000,-200000.000000},{43.201306,27.455579}},{{-500000.000000,-200000.000000},{43.229451,28.068592}},{{-450000.000000,-200000.000000},{43.254320,28.682438}},{{-400000.000000,-200000.000000},{43.275901,29.297016}},{{-350000.000000,-200000.000000},{43.294184,29.912223}},{{-300000.000000,-200000.000000},{43.309160,30.527954}},{{-250000.000000,-200000.000000},{43.320822,31.144106}},{{-200000.000000,-200000.000000},{43.329166,31.760575}},{{-150000.000000,-200000.000000},{43.334186,32.377255}},{{-100000.000000,-200000.000000},{43.335882,32.994042}},{{-50000.000000,-200000.000000},{43.334251,33.610829}},{{0.000000,-200000.000000},{43.329294,34.227512}},{{50000.000000,-200000.000000},{43.321015,34.843986}},{{100000.000000,-200000.000000},{43.309417,35.460146}},{{150000.000000,-200000.000000},{43.294504,36.075886}},{{200000.000000,-200000.000000},{43.276285,36.691104}},{{250000.000000,-200000.000000},{43.254768,37.305695}},{{300000.000000,-200000.000000},{43.229963,37.919556}},{{350000.000000,-200000.000000},{43.201881,38.532586}},{{400000.000000,-200000.000000},{43.170535,39.144683}},{{450000.000000,-200000.000000},{43.135939,39.755747}},{{500000.000000,-200000.000000},{43.098111,40.365679}},{{550000.000000,-200000.000000},{43.057067,40.974381}},{{600000.000000,-200000.000000},{43.012825,41.581755}},{{650000.000000,-200000.000000},{42.965407,42.187707}},{{700000.000000,-200000.000000},{42.914833,42.792143}},{{750000.000000,-200000.000000},{42.861126,43.394970}},{{800000.000000,-200000.000000},{42.804311,43.996098}},{{850000.000000,-200000.000000},{42.744413,44.595438}},{{900000.000000,-200000.000000},{42.681458,45.192901}},{{950000.000000,-200000.000000},{42.615475,45.788404}},{{1000000.000000,-200000.000000},{42.546492,46.381862}},{{1050000.000000,-200000.000000},{42.474539,46.973193}},{{1100000.000000,-200000.000000},{42.399648,47.562318}},{{1150000.000000,-200000.000000},{42.321851,48.149160}},{{1200000.000000,-200000.000000},{42.241181,48.733643}},{{1250000.000000,-200000.000000},{42.157672,49.315693}},{{1300000.000000,-200000.000000},{42.071360,49.895240}},{{1350000.000000,-200000.000000},{41.982281,50.472214}},{{1400000.000000,-200000.000000},{41.890471,51.046549}},{{1450000.000000,-200000.000000},{41.795968,51.618180}},{{1500000.000000,-200000.000000},{41.698811,52.187046}},},
{{{-600000.000000,-150000.000000},{43.617500,26.797844}},{{-550000.000000,-150000.000000},{43.649401,27.414401}},{{-500000.000000,-150000.000000},{43.677988,28.031918}},{{-450000.000000,-150000.000000},{43.703247,28.650292}},{{-400000.000000,-150000.000000},{43.725167,29.269418}},{{-350000.000000,-150000.000000},{43.743738,29.889190}},{{-300000.000000,-150000.000000},{43.758949,30.509501}},{{-250000.000000,-150000.000000},{43.770796,31.130245}},{{-200000.000000,-150000.000000},{43.779270,31.751315}},{{-150000.000000,-150000.000000},{43.784370,32.372601}},{{-100000.000000,-150000.000000},{43.786092,32.993997}},{{-50000.000000,-150000.000000},{43.784435,33.615394}},{{0.000000,-150000.000000},{43.779401,34.236684}},{{50000.000000,-150000.000000},{43.770991,34.857758}},{{100000.000000,-150000.000000},{43.759210,35.478510}},{{150000.000000,-150000.000000},{43.744063,36.098831}},{{200000.000000,-150000.000000},{43.725558,36.718614}},{{250000.000000,-150000.000000},{43.703702,37.337753}},{{300000.000000,-150000.000000},{43.678507,37.956143}},{{350000.000000,-150000.000000},{43.649985,38.573678}},{{400000.000000,-150000.000000},{43.618147,39.190254}},{{450000.000000,-150000.000000},{43.583011,39.805768}},{{500000.000000,-150000.000000},{43.544591,40.420119}},{{550000.000000,-150000.000000},{43.502905,41.033206}},{{600000.000000,-150000.000000},{43.457974,41.644930}},{{650000.000000,-150000.000000},{43.409817,42.255193}},{{700000.000000,-150000.000000},{43.358457,42.863898}},{{750000.000000,-150000.000000},{43.303916,43.470951}},{{800000.000000,-150000.000000},{43.246221,44.076258}},{{850000.000000,-150000.000000},{43.185397,44.679730}},{{900000.000000,-150000.000000},{43.121471,45.281276}},{{950000.000000,-150000.000000},{43.054471,45.880808}},{{1000000.000000,-150000.000000},{42.984428,46.478242}},{{1050000.000000,-150000.000000},{42.911373,47.073494}},{{1100000.000000,-150000.000000},{42.835336,47.666482}},{{1150000.000000,-150000.000000},{42.756352,48.257127}},{{1200000.000000,-150000.000000},{42.674455,48.845352}},{{1250000.000000,-150000.000000},{42.589679,49.431083}},{{1300000.000000,-150000.000000},{42.502060,50.014247}},{{1350000.000000,-150000.000000},{42.411636,50.594773}},{{1400000.000000,-150000.000000},{42.318445,51.172594}},{{1450000.000000,-150000.000000},{42.222524,51.747644}},{{1500000.000000,-150000.000000},{42.123913,52.319860}},},
{{{-600000.000000,-100000.000000},{44.065028,26.751124}},{{-550000.000000,-100000.000000},{44.097429,27.372262}},{{-500000.000000,-100000.000000},{44.126464,27.994387}},{{-450000.000000,-100000.000000},{44.152120,28.617394}},{{-400000.000000,-100000.000000},{44.174384,29.241173}},{{-350000.000000,-100000.000000},{44.193246,29.865617}},{{-300000.000000,-100000.000000},{44.208697,30.490615}},{{-250000.000000,-100000.000000},{44.220729,31.116059}},{{-200000.000000,-100000.000000},{44.229338,31.741837}},{{-150000.000000,-100000.000000},{44.234517,32.367838}},{{-100000.000000,-100000.000000},{44.236266,32.993952}},{{-50000.000000,-100000.000000},{44.234584,33.620066}},{{0.000000,-100000.000000},{44.229470,34.246071}},{{50000.000000,-100000.000000},{44.220928,34.871854}},{{100000.000000,-100000.000000},{44.208962,35.497305}},{{150000.000000,-100000.000000},{44.193577,36.122313}},{{200000.000000,-100000.000000},{44.174781,36.746769}},{{250000.000000,-100000.000000},{44.152582,37.370562}},{{300000.000000,-100000.000000},{44.126992,37.993584}},{{350000.000000,-100000.000000},{44.098022,38.615728}},{{400000.000000,-100000.000000},{44.065686,39.236886}},{{450000.000000,-100000.000000},{44.029999,39.856953}},{{500000.000000,-100000.000000},{43.990979,40.475824}},{{550000.000000,-100000.000000},{43.948644,41.093396}},{{600000.000000,-100000.000000},{43.903012,41.709566}},{{650000.000000,-100000.000000},{43.854106,42.324236}},{{700000.000000,-100000.000000},{43.801948,42.937305}},{{750000.000000,-100000.000000},{43.746563,43.548676}},{{800000.000000,-100000.000000},{43.687975,44.158256}},{{850000.000000,-100000.000000},{43.626211,44.765948}},{{900000.000000,-100000.000000},{43.561300,45.371664}},{{950000.000000,-100000.000000},{43.493270,45.975312}},{{1000000.000000,-100000.000000},{43.422153,46.576805}},{{1050000.000000,-100000.000000},{43.347979,47.176058}},{{1100000.000000,-100000.000000},{43.270782,47.772988}},{{1150000.000000,-100000.000000},{43.190595,48.367514}},{{1200000.000000,-100000.000000},{43.107454,48.959557}},{{1250000.000000,-100000.000000},{43.021393,49.549041}},{{1300000.000000,-100000.000000},{42.932452,50.135891}},{{1350000.000000,-100000.000000},{42.840666,50.720038}},{{1400000.000000,-100000.000000},{42.746075,51.301410}},{{1450000.000000,-100000.000000},{42.648718,51.879942}},{{1500000.000000,-100000.000000},{42.548636,52.455570}},},
{{{-600000.000000,-50000.000000},{44.512481,26.703309}},{{-550000.000000,-50000.000000},{44.545389,27.329135}},{{-500000.000000,-50000.000000},{44.574879,27.955976}},{{-450000.000000,-50000.000000},{44.600937,28.583722}},{{-400000.000000,-50000.000000},{44.623550,29.212264}},{{-350000.000000,-50000.000000},{44.642709,29.841489}},{{-300000.000000,-50000.000000},{44.658402,30.471285}},{{-250000.000000,-50000.000000},{44.670624,31.101538}},{{-200000.000000,-50000.000000},{44.679368,31.732135}},{{-150000.000000,-50000.000000},{44.684629,32.362962}},{{-100000.000000,-50000.000000},{44.686405,32.993905}},{{-50000.000000,-50000.000000},{44.684696,33.624849}},{{0.000000,-50000.000000},{44.679502,34.255679}},{{50000.000000,-50000.000000},{44.670826,34.886282}},{{100000.000000,-50000.000000},{44.658671,35.516543}},{{150000.000000,-50000.000000},{44.643045,36.146349}},{{200000.000000,-50000.000000},{44.623953,36.775586}},{{250000.000000,-50000.000000},{44.601406,37.404141}},{{300000.000000,-50000.000000},{44.575415,38.031905}},{{350000.000000,-50000.000000},{44.545991,38.658764}},{{400000.000000,-50000.000000},{44.513149,39.284610}},{{450000.000000,-50000.000000},{44.476905,39.909334}},{{500000.000000,-50000.000000},{44.437275,40.532828}},{{550000.000000,-50000.000000},{44.394280,41.154986}},{{600000.000000,-50000.000000},{44.347938,41.775705}},{{650000.000000,-50000.000000},{44.298272,42.394879}},{{700000.000000,-50000.000000},{44.245305,43.012409}},{{750000.000000,-50000.000000},{44.189062,43.628195}},{{800000.000000,-50000.000000},{44.129568,44.242139}},{{850000.000000,-50000.000000},{44.066852,44.854145}},{{900000.000000,-50000.000000},{44.000942,45.464119}},{{950000.000000,-50000.000000},{43.931867,46.071970}},{{1000000.000000,-50000.000000},{43.859660,46.677608}},{{1050000.000000,-50000.000000},{43.784353,47.280946}},{{1100000.000000,-50000.000000},{43.705979,47.881899}},{{1150000.000000,-50000.000000},{43.624573,48.480384}},{{1200000.000000,-50000.000000},{43.540171,49.076321}},{{1250000.000000,-50000.000000},{43.452809,49.669632}},{{1300000.000000,-50000.000000},{43.362526,50.260241}},{{1350000.000000,-50000.000000},{43.269360,50.848076}},{{1400000.000000,-50000.000000},{43.173352,51.433067}},{{1450000.000000,-50000.000000},{43.074540,52.015146}},{{1500000.000000,-50000.000000},{42.972968,52.594246}},},
{{{-600000.000000,0.000000},{44.959857,26.654371}},{{-550000.000000,0.000000},{44.993280,27.284992}},{{-500000.000000,0.000000},{45.023231,27.916658}},{{-450000.000000,0.000000},{45.049698,28.549256}},{{-400000.000000,0.000000},{45.072666,29.182671}},{{-350000.000000,0.000000},{45.092125,29.816790}},{{-300000.000000,0.000000},{45.108066,30.451496}},{{-250000.000000,0.000000},{45.120479,31.086673}},{{-200000.000000,0.000000},{45.129360,31.722204}},{{-150000.000000,0.000000},{45.134704,32.357971}},{{-100000.000000,0.000000},{45.136509,32.993857}},{{-50000.000000,0.000000},{45.134773,33.629744}},{{0.000000,0.000000},{45.129497,34.265515}},{{50000.000000,0.000000},{45.120684,34.901052}},{{100000.000000,0.000000},{45.108339,35.536236}},{{150000.000000,0.000000},{45.092467,36.170953}},{{200000.000000,0.000000},{45.073075,36.805084}},{{250000.000000,0.000000},{45.050175,37.438514}},{{300000.000000,0.000000},{45.023776,38.071129}},{{350000.000000,0.000000},{44.993891,38.702814}},{{400000.000000,0.000000},{44.960536,39.333456}},{{450000.000000,0.000000},{44.923725,39.962944}},{{500000.000000,0.000000},{44.883477,40.591168}},{{550000.000000,0.000000},{44.839812,41.218018}},{{600000.000000,0.000000},{44.792749,41.843386}},{{650000.000000,0.000000},{44.742312,42.467168}},{{700000.000000,0.000000},{44.688524,43.089259}},{{750000.000000,0.000000},{44.631410,43.709556}},{{800000.000000,0.000000},{44.570998,44.327961}},{{850000.000000,0.000000},{44.507315,44.944374}},{{900000.000000,0.000000},{44.440391,45.558699}},{{950000.000000,0.000000},{44.370257,46.170842}},{{1000000.000000,0.000000},{44.296945,46.780712}},{{1050000.000000,0.000000},{44.220488,47.388220}},{{1100000.000000,0.000000},{44.140921,47.993278}},{{1150000.000000,0.000000},{44.058278,48.595803}},{{1200000.000000,0.000000},{43.972598,49.195711}},{{1250000.000000,0.000000},{43.883918,49.792924}},{{1300000.000000,0.000000},{43.792276,50.387365}},{{1350000.000000,0.000000},{43.697712,50.978960}},{{1400000.000000,0.000000},{43.600267,51.567637}},{{1450000.000000,0.000000},{43.499982,52.153327}},{{1500000.000000,0.000000},{43.396900,52.735963}},},
{{{-600000.000000,50000.000000},{45.407155,26.604276}},{{-550000.000000,50000.000000},{45.441100,27.239804}},{{-500000.000000,50000.000000},{45.471521,27.876408}},{{-450000.000000,50000.000000},{45.498402,28.513971}},{{-400000.000000,50000.000000},{45.521731,29.152376}},{{-350000.000000,50000.000000},{45.541495,29.791504}},{{-300000.000000,50000.000000},{45.557686,30.431237}},{{-250000.000000,50000.000000},{45.570295,31.071454}},{{-200000.000000,50000.000000},{45.579316,31.712036}},{{-150000.000000,50000.000000},{45.584744,32.352861}},{{-100000.000000,50000.000000},{45.586577,32.993808}},{{-50000.000000,50000.000000},{45.584813,33.634757}},{{0.000000,50000.000000},{45.579455,34.275586}},{{50000.000000,50000.000000},{45.570503,34.916173}},{{100000.000000,50000.000000},{45.557964,35.556398}},{{150000.000000,50000.000000},{45.541842,36.196142}},{{200000.000000,50000.000000},{45.522146,36.835283}},{{250000.000000,50000.000000},{45.498887,37.473702}},{{300000.000000,50000.000000},{45.472074,38.111283}},{{350000.000000,50000.000000},{45.441721,38.747906}},{{400000.000000,50000.000000},{45.407844,39.383457}},{{450000.000000,50000.000000},{45.370459,40.017820}},{{500000.000000,50000.000000},{45.329583,40.650882}},{{550000.000000,50000.000000},{45.285237,41.282530}},{{600000.000000,50000.000000},{45.237443,41.912655}},{{650000.000000,50000.000000},{45.186223,42.541148}},{{700000.000000,50000.000000},{45.131601,43.167902}},{{750000.000000,50000.000000},{45.073604,43.792811}},{{800000.000000,50000.000000},{45.012259,44.415774}},{{850000.000000,50000.000000},{44.947596,45.036690}},{{900000.000000,50000.000000},{44.879644,45.655460}},{{950000.000000,50000.000000},{44.808435,46.271987}},{{1000000.000000,50000.000000},{44.734001,46.886179}},{{1050000.000000,50000.000000},{44.656378,47.497944}},{{1100000.000000,50000.000000},{44.575601,48.107192}},{{1150000.000000,50000.000000},{44.491705,48.713838}},{{1200000.000000,50000.000000},{44.404729,49.317797}},{{1250000.000000,50000.000000},{44.314711,49.918990}},{{1300000.000000,50000.000000},{44.221692,50.517337}},{{1350000.000000,50000.000000},{44.125711,51.112762}},{{1400000.000000,50000.000000},{44.026810,51.705194}},{{1450000.000000,50000.000000},{43.925032,52.294562}},{{1500000.000000,50000.000000},{43.820421,52.880798}},},
{{{-600000.000000,100000.000000},{45.854374,26.552990}},{{-550000.000000,100000.000000},{45.888850,27.193542}},{{-500000.000000,100000.000000},{45.919747,27.835200}},{{-450000.000000,100000.000000},{45.947049,28.477845}},{{-400000.000000,100000.000000},{45.970744,29.121357}},{{-350000.000000,100000.000000},{45.990819,29.765613}},{{-300000.000000,100000.000000},{46.007264,30.410493}},{{-250000.000000,100000.000000},{46.020071,31.055871}},{{-200000.000000,100000.000000},{46.029234,31.701624}},{{-150000.000000,100000.000000},{46.034747,32.347628}},{{-100000.000000,100000.000000},{46.036609,32.993758}},{{-50000.000000,100000.000000},{46.034818,33.639889}},{{0.000000,100000.000000},{46.029375,34.285897}},{{50000.000000,100000.000000},{46.020283,34.931656}},{{100000.000000,100000.000000},{46.007546,35.577043}},{{150000.000000,100000.000000},{45.991171,36.221933}},{{200000.000000,100000.000000},{45.971166,36.866203}},{{250000.000000,100000.000000},{45.947541,37.509730}},{{300000.000000,100000.000000},{45.920308,38.152393}},{{350000.000000,100000.000000},{45.889481,38.794072}},{{400000.000000,100000.000000},{45.855073,39.434645}},{{450000.000000,100000.000000},{45.817104,40.073997}},{{500000.000000,100000.000000},{45.775591,40.712009}},{{550000.000000,100000.000000},{45.730554,41.348567}},{{600000.000000,100000.000000},{45.682017,41.983557}},{{650000.000000,100000.000000},{45.630001,42.616867}},{{700000.000000,100000.000000},{45.574534,43.248389}},{{750000.000000,100000.000000},{45.515640,43.878013}},{{800000.000000,100000.000000},{45.453349,44.505636}},{{850000.000000,100000.000000},{45.387690,45.131153}},{{900000.000000,100000.000000},{45.318694,45.754464}},{{950000.000000,100000.000000},{45.246394,46.375469}},{{1000000.000000,100000.000000},{45.170824,46.994074}},{{1050000.000000,100000.000000},{45.092017,47.610184}},{{1100000.000000,100000.000000},{45.010012,48.223708}},{{1150000.000000,100000.000000},{44.924845,48.834559}},{{1200000.000000,100000.000000},{44.836555,49.442651}},{{1250000.000000,100000.000000},{44.745181,50.047901}},{{1300000.000000,100000.000000},{44.650765,50.650229}},{{1350000.000000,100000.000000},{44.553347,51.249559}},{{1400000.000000,100000.000000},{44.452971,51.845816}},{{1450000.000000,100000.000000},{44.349681,52.438928}},{{1500000.000000,100000.000000},{44.243520,53.028828}},},
{{{-600000.000000,150000.000000},{46.301511,26.500480}},{{-550000.000000,150000.000000},{46.336527,27.146172}},{{-500000.000000,150000.000000},{46.367908,27.793003}},{{-450000.000000,150000.000000},{46.395638,28.440852}},{{-400000.000000,150000.000000},{46.419705,29.089592}},{{-350000.000000,150000.000000},{46.440095,29.739100}},{{-300000.000000,150000.000000},{46.456799,30.389249}},{{-250000.000000,150000.000000},{46.469807,31.039912}},{{-200000.000000,150000.000000},{46.479114,31.690962}},{{-150000.000000,150000.000000},{46.484714,32.342269}},{{-100000.000000,150000.000000},{46.486605,32.993707}},{{-50000.000000,150000.000000},{46.484786,33.645146}},{{0.000000,150000.000000},{46.479257,34.296457}},{{50000.000000,150000.000000},{46.470022,34.947513}},{{100000.000000,150000.000000},{46.457085,35.598184}},{{150000.000000,150000.000000},{46.440453,36.248345}},{{200000.000000,150000.000000},{46.420134,36.897866}},{{250000.000000,150000.000000},{46.396138,37.546623}},{{300000.000000,150000.000000},{46.368478,38.194489}},{{350000.000000,150000.000000},{46.337167,38.841342}},{{400000.000000,150000.000000},{46.302222,39.487057}},{{450000.000000,150000.000000},{46.263659,40.131513}},{{500000.000000,150000.000000},{46.221498,40.774591}},{{550000.000000,150000.000000},{46.175760,41.416171}},{{600000.000000,150000.000000},{46.126468,42.056138}},{{650000.000000,150000.000000},{46.073645,42.694376}},{{700000.000000,150000.000000},{46.017318,43.330773}},{{750000.000000,150000.000000},{45.957514,43.965218}},{{800000.000000,150000.000000},{45.894262,44.597603}},{{850000.000000,150000.000000},{45.827592,45.227823}},{{900000.000000,150000.000000},{45.757537,45.855773}},{{950000.000000,150000.000000},{45.684130,46.481352}},{{1000000.000000,150000.000000},{45.607405,47.104463}},{{1050000.000000,150000.000000},{45.527399,47.725010}},{{1100000.000000,150000.000000},{45.444148,48.342899}},{{1150000.000000,150000.000000},{45.357691,48.958040}},{{1200000.000000,150000.000000},{45.268068,49.570347}},{{1250000.000000,150000.000000},{45.175319,50.179735}},{{1300000.000000,150000.000000},{45.079486,50.786121}},{{1350000.000000,150000.000000},{44.980612,51.389429}},{{1400000.000000,150000.000000},{44.878741,51.989582}},{{1450000.000000,150000.000000},{44.773917,52.586508}},{{1500000.000000,150000.000000},{44.666185,53.180137}},},
{{{-600000.000000,200000.000000},{46.748567,26.446708}},{{-550000.000000,200000.000000},{46.784130,27.097662}},{{-500000.000000,200000.000000},{46.816003,27.749790}},{{-450000.000000,200000.000000},{46.844169,28.402966}},{{-400000.000000,200000.000000},{46.868613,29.057061}},{{-350000.000000,200000.000000},{46.889324,29.711946}},{{-300000.000000,200000.000000},{46.906291,30.367492}},{{-250000.000000,200000.000000},{46.919504,31.023567}},{{-200000.000000,200000.000000},{46.928957,31.680041}},{{-150000.000000,200000.000000},{46.934645,32.336781}},{{-100000.000000,200000.000000},{46.936566,32.993654}},{{-50000.000000,200000.000000},{46.934718,33.650529}},{{0.000000,200000.000000},{46.929103,34.307273}},{{50000.000000,200000.000000},{46.919722,34.963753}},{{100000.000000,200000.000000},{46.906581,35.619837}},{{150000.000000,200000.000000},{46.889688,36.275395}},{{200000.000000,200000.000000},{46.869049,36.930294}},{{250000.000000,200000.000000},{46.844677,37.584405}},{{300000.000000,200000.000000},{46.816582,38.237600}},{{350000.000000,200000.000000},{46.784781,38.889749}},{{400000.000000,200000.000000},{46.749289,39.540727}},{{450000.000000,200000.000000},{46.710123,40.190409}},{{500000.000000,200000.000000},{46.667304,40.838670}},{{550000.000000,200000.000000},{46.620853,41.485390}},{{600000.000000,200000.000000},{46.570794,42.130448}},{{650000.000000,200000.000000},{46.517151,42.773726}},{{700000.000000,200000.000000},{46.459951,43.415109}},{{750000.000000,200000.000000},{46.399222,44.054483}},{{800000.000000,200000.000000},{46.334994,44.691737}},{{850000.000000,200000.000000},{46.267298,45.326762}},{{900000.000000,200000.000000},{46.196168,45.959453}},{{950000.000000,200000.000000},{46.121636,46.589705}},{{1000000.000000,200000.000000},{46.043740,47.217418}},{{1050000.000000,200000.000000},{45.962515,47.842494}},{{1100000.000000,200000.000000},{45.878000,48.464837}},{{1150000.000000,200000.000000},{45.790234,49.084357}},{{1200000.000000,200000.000000},{45.699259,49.700963}},{{1250000.000000,200000.000000},{45.605115,50.314569}},{{1300000.000000,200000.000000},{45.507846,50.925093}},{{1350000.000000,200000.000000},{45.407495,51.532454}},{{1400000.000000,200000.000000},{45.304107,52.136576}},{{1450000.000000,200000.000000},{45.197729,52.737385}},{{1500000.000000,200000.000000},{45.088405,53.334810}},},
{{{-600000.000000,250000.000000},{47.195538,26.391637}},{{-550000.000000,250000.000000},{47.231659,27.047979}},{{-500000.000000,250000.000000},{47.264032,27.705530}},{{-450000.000000,250000.000000},{47.292640,28.364160}},{{-400000.000000,250000.000000},{47.317469,29.023738}},{{-350000.000000,250000.000000},{47.338505,29.684131}},{{-300000.000000,250000.000000},{47.355739,30.345205}},{{-250000.000000,250000.000000},{47.369160,31.006824}},{{-200000.000000,250000.000000},{47.378762,31.668854}},{{-150000.000000,250000.000000},{47.384541,32.331158}},{{-100000.000000,250000.000000},{47.386492,32.993601}},{{-50000.000000,250000.000000},{47.384615,33.656044}},{{0.000000,250000.000000},{47.378910,34.318352}},{{50000.000000,250000.000000},{47.369382,34.980389}},{{100000.000000,250000.000000},{47.356034,35.642018}},{{150000.000000,250000.000000},{47.338874,36.303103}},{{200000.000000,250000.000000},{47.317911,36.963510}},{{250000.000000,250000.000000},{47.293156,37.623105}},{{300000.000000,250000.000000},{47.264620,38.281755}},{{350000.000000,250000.000000},{47.232320,38.939329}},{{400000.000000,250000.000000},{47.196271,39.595695}},{{450000.000000,250000.000000},{47.156493,40.250725}},{{500000.000000,250000.000000},{47.113005,40.904292}},{{550000.000000,250000.000000},{47.065830,41.556271}},{{600000.000000,250000.000000},{47.014991,42.206538}},{{650000.000000,250000.000000},{46.960515,42.854972}},{{700000.000000,250000.000000},{46.902428,43.501454}},{{750000.000000,250000.000000},{46.840760,44.145868}},{{800000.000000,250000.000000},{46.775541,44.788100}},{{850000.000000,250000.000000},{46.706803,45.428037}},{{900000.000000,250000.000000},{46.634580,46.065571}},{{950000.000000,250000.000000},{46.558907,46.700597}},{{1000000.000000,250000.000000},{46.479821,47.333010}},{{1050000.000000,250000.000000},{46.397359,47.962710}},{{1100000.000000,250000.000000},{46.311561,48.589601}},{{1150000.000000,250000.000000},{46.222467,49.213587}},{{1200000.000000,250000.000000},{46.130120,49.834579}},{{1250000.000000,250000.000000},{46.034561,50.452487}},{{1300000.000000,250000.000000},{45.935834,51.067228}},{{1350000.000000,250000.000000},{45.833985,51.678719}},{{1400000.000000,250000.000000},{45.729060,52.286884}},{{1450000.000000,250000.000000},{45.621105,52.891646}},{{1500000.000000,250000.000000},{45.510168,53.492934}},},
{{{-600000.000000,300000.000000},{47.642424,26.335227}},{{-550000.000000,300000.000000},{47.679112,26.997085}},{{-500000.000000,300000.000000},{47.711993,27.660190}},{{-450000.000000,300000.000000},{47.741051,28.324407}},{{-400000.000000,300000.000000},{47.766271,28.989601}},{{-350000.000000,300000.000000},{47.787638,29.655635}},{{-300000.000000,300000.000000},{47.805144,30.322371}},{{-250000.000000,300000.000000},{47.818777,30.989670}},{{-200000.000000,300000.000000},{47.828530,31.657393}},{{-150000.000000,300000.000000},{47.834400,32.325398}},{{-100000.000000,300000.000000},{47.836382,32.993545}},{{-50000.000000,300000.000000},{47.834475,33.661694}},{{0.000000,300000.000000},{47.828681,34.329704}},{{50000.000000,300000.000000},{47.819002,34.997433}},{{100000.000000,300000.000000},{47.805444,35.664741}},{{150000.000000,300000.000000},{47.788013,36.331490}},{{200000.000000,300000.000000},{47.766720,36.997539}},{{250000.000000,300000.000000},{47.741575,37.662751}},{{300000.000000,300000.000000},{47.712591,38.326988}},{{350000.000000,300000.000000},{47.679783,38.990115}},{{400000.000000,300000.000000},{47.643169,39.651998}},{{450000.000000,300000.000000},{47.602768,40.312504}},{{500000.000000,300000.000000},{47.558600,40.971502}},{{550000.000000,300000.000000},{47.510689,41.628863}},{{600000.000000,300000.000000},{47.459058,42.284461}},{{650000.000000,300000.000000},{47.403735,42.938170}},{{700000.000000,300000.000000},{47.344746,43.589869}},{{750000.000000,300000.000000},{47.282124,44.239437}},{{800000.000000,300000.000000},{47.215897,44.886757}},{{850000.000000,300000.000000},{47.146100,45.531715}},{{900000.000000,300000.000000},{47.072768,46.174200}},{{950000.000000,300000.000000},{46.995936,46.814101}},{{1000000.000000,300000.000000},{46.915641,47.451315}},{{1050000.000000,300000.000000},{46.831924,48.085737}},{{1100000.000000,300000.000000},{46.744823,48.717269}},{{1150000.000000,300000.000000},{46.654381,49.345813}},{{1200000.000000,300000.000000},{46.560641,49.971278}},{{1250000.000000,300000.000000},{46.463646,50.593573}},{{1300000.000000,300000.000000},{46.363441,51.212612}},{{1350000.000000,300000.000000},{46.260072,51.828312}},{{1400000.000000,300000.000000},{46.153587,52.440594}},{{1450000.000000,300000.000000},{46.044034,53.049381}},{{1500000.000000,300000.000000},{45.931460,53.654601}},},
{{{-600000.000000,350000.000000},{48.089224,26.277438}},{{-550000.000000,350000.000000},{48.126487,26.944944}},{{-500000.000000,350000.000000},{48.159885,27.613736}},{{-450000.000000,350000.000000},{48.189401,28.283676}},{{-400000.000000,350000.000000},{48.215018,28.954623}},{{-350000.000000,350000.000000},{48.236723,29.626437}},{{-300000.000000,350000.000000},{48.254505,30.298975}},{{-250000.000000,350000.000000},{48.268353,30.972093}},{{-200000.000000,350000.000000},{48.278261,31.645648}},{{-150000.000000,350000.000000},{48.284223,32.319495}},{{-100000.000000,350000.000000},{48.286236,32.993489}},{{-50000.000000,350000.000000},{48.284299,33.667484}},{{0.000000,350000.000000},{48.278413,34.341335}},{{50000.000000,350000.000000},{48.268582,35.014897}},{{100000.000000,350000.000000},{48.254809,35.688026}},{{150000.000000,350000.000000},{48.237104,36.360576}},{{200000.000000,350000.000000},{48.215474,37.032405}},{{250000.000000,350000.000000},{48.189933,37.703370}},{{300000.000000,350000.000000},{48.160493,38.373331}},{{350000.000000,350000.000000},{48.127169,39.042146}},{{400000.000000,350000.000000},{48.089980,39.709679}},{{450000.000000,350000.000000},{48.048945,40.375791}},{{500000.000000,350000.000000},{48.004086,41.040349}},{{550000.000000,350000.000000},{47.955426,41.703220}},{{600000.000000,350000.000000},{47.902990,42.364273}},{{650000.000000,350000.000000},{47.846806,43.023379}},{{700000.000000,350000.000000},{47.786901,43.680414}},{{750000.000000,350000.000000},{47.723308,44.335253}},{{800000.000000,350000.000000},{47.656058,44.987777}},{{850000.000000,350000.000000},{47.585186,45.637868}},{{900000.000000,350000.000000},{47.510726,46.285411}},{{950000.000000,350000.000000},{47.432716,46.930295}},{{1000000.000000,350000.000000},{47.351195,47.572411}},{{1050000.000000,350000.000000},{47.266202,48.211655}},{{1100000.000000,350000.000000},{47.177778,48.847924}},{{1150000.000000,350000.000000},{47.085968,49.481120}},{{1200000.000000,350000.000000},{46.990813,50.111148}},{{1250000.000000,350000.000000},{46.892360,50.737916}},{{1300000.000000,350000.000000},{46.790655,51.361336}},{{1350000.000000,350000.000000},{46.685744,51.981325}},{{1400000.000000,350000.000000},{46.577677,52.597800}},{{1450000.000000,350000.000000},{46.466502,53.210684}},{{1500000.000000,350000.000000},{46.352269,53.819905}},},
{{{-600000.000000,400000.000000},{48.535934,26.218226}},{{-550000.000000,400000.000000},{48.573784,26.891517}},{{-500000.000000,400000.000000},{48.607708,27.566136}},{{-450000.000000,400000.000000},{48.637689,28.241938}},{{-400000.000000,400000.000000},{48.663711,28.918779}},{{-350000.000000,400000.000000},{48.685759,29.596515}},{{-300000.000000,400000.000000},{48.703821,30.274998}},{{-250000.000000,400000.000000},{48.717889,30.954080}},{{-200000.000000,400000.000000},{48.727954,31.633612}},{{-150000.000000,400000.000000},{48.734010,32.313446}},{{-100000.000000,400000.000000},{48.736055,32.993431}},{{-50000.000000,400000.000000},{48.734088,33.673418}},{{0.000000,400000.000000},{48.728109,34.353256}},{{50000.000000,400000.000000},{48.718121,35.032796}},{{100000.000000,400000.000000},{48.704131,35.711888}},{{150000.000000,400000.000000},{48.686145,36.390384}},{{200000.000000,400000.000000},{48.664174,37.068135}},{{250000.000000,400000.000000},{48.638229,37.744995}},{{300000.000000,400000.000000},{48.608325,38.420819}},{{350000.000000,400000.000000},{48.574477,39.095461}},{{400000.000000,400000.000000},{48.536703,39.768780}},{{450000.000000,400000.000000},{48.495024,40.440634}},{{500000.000000,400000.000000},{48.449461,41.110885}},{{550000.000000,400000.000000},{48.400039,41.779395}},{{600000.000000,400000.000000},{48.346785,42.446031}},{{650000.000000,400000.000000},{48.289725,43.110661}},{{700000.000000,400000.000000},{48.228889,43.773155}},{{750000.000000,400000.000000},{48.164309,44.433386}},{{800000.000000,400000.000000},{48.096019,45.091231}},{{850000.000000,400000.000000},{48.024053,45.746569}},{{900000.000000,400000.000000},{47.948448,46.399282}},{{950000.000000,400000.000000},{47.869241,47.049257}},{{1000000.000000,400000.000000},{47.786473,47.696381}},{{1050000.000000,400000.000000},{47.700184,48.340548}},{{1100000.000000,400000.000000},{47.610417,48.981653}},{{1150000.000000,400000.000000},{47.517216,49.619595}},{{1200000.000000,400000.000000},{47.420626,50.254277}},{{1250000.000000,400000.000000},{47.320693,50.885607}},{{1300000.000000,400000.000000},{47.217465,51.513493}},{{1350000.000000,400000.000000},{47.110990,52.137850}},{{1400000.000000,400000.000000},{47.001317,52.758596}},{{1450000.000000,400000.000000},{46.888497,53.375652}},{{1500000.000000,400000.000000},{46.772581,53.988944}},},
}
-- In mission files y is west-east and x is south-north
function mizToLL(y, x)
local yIndex = 0
local xIndex = 0
for i = 1, #lut do
local xCoord = lut[i][1][1][2]
if xCoord > x then
xIndex = i-1
break
end
end
for i=1, #(lut[1]) do
local yCoord = lut[1][i][1][1]
if yCoord > y then
yIndex = i-1
break
end
end
-- Bilinear interpolation
local ll = lut[xIndex][yIndex]
local lr = lut[xIndex][yIndex+1]
local ul = lut[xIndex+1][yIndex]
local ur = lut[xIndex+1][yIndex+1]
local yFactor = (y-ll[1][1])/(lr[1][1]-ll[1][1])
local xFactor = (x-ll[1][2])/(ul[1][2]-ll[1][2])
local lInterp = {lr[2][1]*yFactor + ll[2][1]*(1-yFactor), lr[2][2]*yFactor + ll[2][2]*(1-yFactor)}
local uInterp = {ur[2][1]*yFactor + ul[2][1]*(1-yFactor), ur[2][2]*yFactor + ul[2][2]*(1-yFactor)}
local interp = {uInterp[1]*xFactor + lInterp[1]*(1-xFactor), uInterp[2]*xFactor + lInterp[2]*(1-xFactor)}
return interp[1], interp[2]
end
-- First argument in .miz Y coordinate, second argument is .miz X coordinate
local lat, lon = mizToLL(arg[1]+0, arg[2]+0)
io.write("Latitude: ", lat, " Longitude: ", lon)
@AmirLavi2
Copy link

thank you for lut.lua code !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment