################################################################################
#
#  These are the polynomial coefficients used for transforming to and from
#  the Danish legacy system s34s "System 34 Sjaelland"
#
#
#                          S 3 4 S    ->    T C 3 2
#
#    Forward:
#        in: UTM32_ED50,   out: TC32_ED50
#
################################################################################
<TC32_L>

proj=horner
ellps=intl
urange=162378
vrange=131287

# tcx,tcy pairs
fwd_origin=116964.303712,107905.132295
inv_origin=680161.119096,6142519.772410
tol=0.040

deg=9

inv_v=

# static  double      C_tts[] = {
# tc32_ed50 -> s34s
# my =  1.26 cm    my_loss =    +6  y_enp =  +9.8
# mx =  1.19 cm    mx_loss =    +5  x_enp = +10.2
# m_lim_gen:  0.101  red = 0        OBS   =  8106

# Poly NORTH :: e-degree =  0  : n-degree =  9
   1.0790733557e+05,9.9978922407e-01,3.5199568602e-12,
   5.1371006741e-17,-5.2674982432e-21,-6.8633477057e-26,
   5.1727956866e-31,9.2832920893e-36,-2.2258447927e-41,
   -2.2144983452e-46,

# Poly NORTH :: e-degree =  1  : n-degree =  8
   -1.9602385333e-02,-4.3675940379e-09,7.6436547439e-18,
   1.8802342887e-20,-2.7487028436e-25,-7.4776404487e-30,
   8.0782627715e-35,6.3325807179e-40,-4.8834125991e-45,

# Poly NORTH :: e-degree =  2  : n-degree =  7
   6.5564651697e-12,-6.8104889506e-16,3.7351975921e-20,
   1.2750282849e-25,-1.4236072742e-29,3.4605532471e-35,
   1.3987424974e-39,-7.0228278061e-45,

# Poly NORTH :: e-degree =  3  : n-degree =  6
   -8.6390226401e-16,-4.8691448800e-21,4.6681558601e-25,
   8.2952775380e-30,1.3331457339e-36,-1.4070764915e-39,
   1.7554514720e-46,

# Poly NORTH :: e-degree =  4  : n-degree =  5
   1.1436559200e-20,-3.0223353286e-25,-7.1479244842e-30,
   1.1181122276e-34,2.2633804858e-39,-2.0692978938e-44,

# Poly NORTH :: e-degree =  5  : n-degree =  4
   3.3080882854e-25,-1.5748600077e-30,-1.8859051097e-34,
   -8.7896010280e-40,1.7785495142e-44,

# Poly NORTH :: e-degree =  6  : n-degree =  3
   -5.9321703176e-31,7.4259754996e-35,-2.4544120405e-40,
   -9.0807428104e-45,

# Poly NORTH :: e-degree =  7  : n-degree =  2
   -3.8436267359e-35,4.9811624316e-40,9.5752951153e-45,

# Poly NORTH :: e-degree =  8  : n-degree =  1
   -3.1746636958e-41,-3.0596457190e-45,

# Poly NORTH :: e-degree =  9  : n-degree =  0
   1.1310675824e-45

inv_u=

# Poly EAST  :: n-degree =  0  : e-degree =  9
   1.1696718747e+05,-9.9978831381e-01,2.1776749302e-09,
   -1.2496489584e-15,-3.3527323606e-21,3.7270837329e-25,
   7.3856018504e-32,-4.8628298904e-35,3.5992539427e-41,
   2.3406605032e-45,

# Poly EAST  :: n-degree =  1  : e-degree =  8
   -1.9605529419e-02,-1.8950453044e-12,9.7761865754e-16,
   7.1109195187e-21,-6.8279010167e-25,6.1201418390e-30,
   2.0210581504e-34,-5.9646652818e-40,-1.7012215804e-44,

# Poly EAST  :: n-degree =  2  : e-degree =  7
   -2.1724968176e-09,-2.2833188475e-15,1.5804419960e-20,
   1.0046109955e-24,-1.0905863818e-29,-3.3246416930e-34,
   1.4654115654e-39,3.4837915567e-44,

# Poly EAST  :: n-degree =  3  : e-degree =  6
   1.0061563224e-15,2.3345263492e-20,-5.0573180168e-25,
   2.0779422372e-30,1.9521533409e-34,-2.3928335128e-39,
   -3.4589422763e-44,

# Poly EAST  :: n-degree =  4  : e-degree =  5
   -9.4604102082e-23,7.7644335488e-25,1.9141704670e-31,
   -1.3775242735e-34,2.0978770016e-39,3.2391064284e-44,

# Poly EAST  :: n-degree =  5  : e-degree =  4
   -2.0195860626e-25,-3.1589746115e-30,3.0469114609e-35,
   -3.5974158333e-40,-1.4395181443e-44,

# Poly EAST  :: n-degree =  6  : e-degree =  3
   -6.6939312923e-31,-8.2640389316e-35,-3.3634105679e-40,
   2.7882436780e-45,

# Poly EAST  :: n-degree =  7  : e-degree =  2
   1.9839348020e-35,1.9214332316e-40,2.7771816013e-45,

# Poly EAST  :: n-degree =  8  : e-degree =  1
   6.6045465312e-41,2.5205909964e-45,

# Poly EAST  :: n-degree =  9  : e-degree =  0
   -6.6096428142e-46

# static  double     C_stt[] = {
# s34s -> tc32_ed50
# m_lim_gen:  0.101  red = 0       OBS    =  8106
# my =  1.26 cm    my_loss =    +6  y_enp =  +9.9
# mx =  1.19 cm    mx_loss =    +5  x_enp = +10.1

fwd_v=

# Poly NORTH :: e-degree =  0  : n-degree =  9
   6.1425176260e+06,9.9982642270e-01,-1.3168917417e-10,
   -3.9708041280e-17,5.6146952745e-21,5.8802311638e-26,
   -6.7090237676e-31,-7.2703800574e-36,3.5399175335e-41,
   1.1362194189e-46,

# Poly NORTH :: e-degree =  1  : n-degree =  8
   -1.9603123674e-02,-4.3603758981e-09,8.3991514570e-17,
   1.6432988768e-20,-3.0087468049e-25,-6.7642087335e-30,
   8.2029047097e-35,5.6678762622e-40,-4.6707562910e-45,

# Poly NORTH :: e-degree =  2  : n-degree =  7
   1.2169460553e-10,6.7593802589e-16,-3.8294951950e-20,
   -8.7128023349e-26,1.5384275104e-29,-4.3441068759e-35,
   -1.5686253766e-39,7.8385297914e-45,

# Poly NORTH :: e-degree =  3  : n-degree =  6
   -8.5249457247e-16,-4.4243649688e-21,4.7595992589e-25,
   7.6204541165e-30,-1.2731004573e-36,-1.3997953545e-39,
   7.7759642704e-46,

# Poly NORTH :: e-degree =  4  : n-degree =  5
   -1.1411170819e-20,3.0175854442e-25,6.2771815369e-30,
   -1.2594682090e-34,-2.1552562679e-39,2.2003142841e-44,

# Poly NORTH :: e-degree =  5  : n-degree =  4
   3.1748967872e-25,-1.8957154350e-30,-1.8300542516e-34,
   -6.1875394978e-40,1.6039178559e-44,

# Poly NORTH :: e-degree =  6  : n-degree =  3
   6.2809773680e-31,-6.7941076998e-35,3.8963958677e-40,
   8.2691774223e-45,

# Poly NORTH :: e-degree =  7  : n-degree =  2
   -3.6073724771e-35,5.0311388471e-40,8.7585934010e-45,

# Poly NORTH :: e-degree =  8  : n-degree =  1
   2.2831508241e-41,2.5353252434e-45,

# Poly NORTH :: e-degree =  9  : n-degree =  0
   1.0289124711e-45

fwd_u=

# Poly EAST  :: n-degree =  0  : e-degree =  9
   6.8016404556e+05,-9.9982733281e-01,2.1740820158e-09,
   1.2382715255e-15,-2.9662643366e-21,-3.6554059502e-25,
   1.7496545569e-31,4.5411700623e-35,2.4479315571e-41,
   -2.0352589996e-45,

# Poly EAST  :: n-degree =  1  : e-degree =  8
   -1.9606267471e-02,2.5792993170e-10,9.4490902015e-16,
   -7.8536713147e-21,-6.8369046954e-25,-5.6559633520e-30,
   1.9646594761e-34,5.3776287501e-40,-1.6069390003e-44,

# Poly EAST  :: n-degree =  2  : e-degree =  7
   -2.1687704677e-09,2.2871505147e-15,1.7552494613e-20,
   -1.0379793993e-24,-1.1511364558e-29,3.4746687004e-34,
   1.4031897593e-39,-3.5537902330e-44,

# Poly EAST  :: n-degree =  3  : e-degree =  6
   1.0525312560e-15,-2.2976407795e-20,-5.0233954159e-25,
   -3.1489303440e-30,2.1953774943e-34,2.4133571832e-39,
   -3.7003949066e-44,

# Poly EAST  :: n-degree =  4  : e-degree =  5
   -6.4478340743e-22,-7.6951221900e-25,-6.0207896532e-31,
   1.5126843484e-34,2.3400992651e-39,-3.5469421836e-44,

# Poly EAST  :: n-degree =  5  : e-degree =  4
   -2.1846335209e-25,3.3565726508e-30,3.0201171366e-35,
   6.0281731944e-40,-1.7776719148e-44,

# Poly EAST  :: n-degree =  6  : e-degree =  3
   -5.9548204246e-31,7.9350728807e-35,-2.4731347203e-40,
   -4.4774264707e-45,

# Poly EAST  :: n-degree =  7  : e-degree =  2
   2.1601953120e-35,-2.2482835957e-40,2.7797554420e-45,

# Poly EAST  :: n-degree =  8  : e-degree =  1
   6.1447196093e-41,-2.1967616472e-45,

# Poly EAST  :: n-degree =  9  : e-degree =  0
   -7.1115410472e-46

################################################################################
#
#  These are the polynomial coefficients used for transforming to and from
#  the Koebenhavns Kommunes mapping system
#                          S 3 4 S    ->    K K
#
#    Forward:
#        in: S34S_S34,   out: KK_KK
#
################################################################################
<KK>
proj=horner
ellps=danish
range=100000

# tcx,tcy pairs
fwd_origin=72000.0,140000.0
inv_origin=-137000.0,77000.0
tol=0.005

deg=4

fwd_c=
# static  double      C34kk[] =   s34s -> kk
    7.693586910e+04,-1.379401748e+05,
    9.999741493e-01,-3.210304882e-05,
   -6.390451712e-10,-1.133610356e-09,
    4.949851810e-15,2.548578925e-14,
    9.257340940e-18,-1.247871289e-18

inv_c=
# static  double      Ckk34[] =   kk -> s34s
    1.400641017e+05,7.294020022e+04,
    1.000023833e+00,3.354660075e-05,
    7.578997888e-10,1.101628590e-09,
   -1.200882360e-14,-5.998822689e-14,
   -9.258611225e-18,1.246673174e-18