<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>I hope that I am posting my question to the right mailing list.</p>
    <p>Currently, I am investigating the use of GDAL.NET 2.3.1 installed
      as a NUGET package in VisualStudio 2017.</p>
    <p>It works very well when it comes to reading geotiff using
      provided drivers etc. However, when it comes to performing a
      coordinate transformation from one geodesy to another I encounter
      a mismatch between actual and expected coordinates. I have
      illustrated this in the Test Method below, where I have tried to
      transform a coordinate from EPSG:32028 to EPSG:4326, my test fails
      the final two Asserts.AreEqual when testing "x" and "y".<br>
    </p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">[TestMethod]</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">public</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">void</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        GdalTransformEPSG32028ToEPSG4326()</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">{</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        Setting environment variables and load all GDAL and OGR drivers</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        GdalConfiguration.ConfigureGdal();</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        GdalConfiguration.ConfigureOgr();</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">string</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        verInfo = Gdal.VersionInfo(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">string</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">.Empty);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        Assert.IsTrue(String.Compare(verInfo,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GDAL
        2.3.1, released 2018/06/22"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        StringComparison.Ordinal)==0);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        SpatialReference spatialSrc =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        SpatialReference(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">string</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">.Empty);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        spatialSrc.ImportFromEPSG(32028);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        SpatialReference spatialDest =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        SpatialReference(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">string</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">.Empty);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        spatialDest.ImportFromEPSG(4326);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        CoordinateTransformation transformator =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        CoordinateTransformation(spatialSrc, spatialDest);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">double</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">[]
        result =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">double</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">[3];</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        transformator.TransformPoint(result, 2397350, 386280, 0);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        Actual output:  x=-76.3056550480934,  y=41.2177849636383,  z=0.0</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        EPSG.io output: x=-76.3053142,        y=41.217868</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        Assert.AreEqual(-76.3053142, result[0], 1e-6,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"x"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);    
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        failure x=-76.3056550480934</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
        Assert.AreEqual(41.217868, result[1], 1e-6,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"y"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        failure y= 41.2177849636383</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <span style="font-size:9.5pt;font-family:Consolas;color:black">}</span>
    <p><br>
    </p>
    <p>The static method GdalConfiguration() configure paths for proj
      lib, drivers etc as illustrated below:</p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"><summary></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
        Construction of Gdal/Ogr</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"></summary></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">static</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        GdalConfiguration()</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">{</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        executingAssemblyFile =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        Uri(Assembly.GetExecutingAssembly().GetName().CodeBase).LocalPath;</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        executingDirectory =
        Path.GetDirectoryName(executingAssemblyFile);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">if</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> (</span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">string</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">.IsNullOrEmpty(executingDirectory))</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">       
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">throw</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">new</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        InvalidOperationException(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"cannot
        get executing directory"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        gdalPath = Path.Combine(executingDirectory,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"gdal"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        nativePath = Path.Combine(gdalPath, GetPlatform());</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        Prepend native path to environment path, to ensure the</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        right libs are being used.</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> path =
        Environment.GetEnvironmentVariable(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"PATH"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        path = nativePath +
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">";"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> +
        Path.Combine(nativePath,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"plugins"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">) +
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">";"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> +
        path;</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Environment.SetEnvironmentVariable(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"PATH"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        path);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">// Set
        the additional GDAL environment variables.</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        gdalData = Path.Combine(gdalPath,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"data"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Environment.SetEnvironmentVariable(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GDAL_DATA"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        gdalData);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Gdal.SetConfigOption(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GDAL_DATA"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        gdalData);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        driverPath = Path.Combine(nativePath,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"plugins"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Environment.SetEnvironmentVariable(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GDAL_DRIVER_PATH"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        driverPath);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Gdal.SetConfigOption(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GDAL_DRIVER_PATH"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        driverPath);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Environment.SetEnvironmentVariable(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GEOTIFF_CSV"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        gdalData);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Gdal.SetConfigOption(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"GEOTIFF_CSV"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        gdalData);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">      
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">var</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        projSharePath = Path.Combine(gdalPath,
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"share"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Environment.SetEnvironmentVariable(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"PROJ_LIB"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        projSharePath);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Gdal.SetConfigOption(</span><span
        style="font-size:9.5pt;font-family:Consolas;color:#A31515">"PROJ_LIB"</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">,
        projSharePath);</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">}</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"><summary></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green"> Method
        to ensure the static constructor is being called.</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"></summary></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"><remarks></span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">Be sure
        to call this function before using Gdal/Ogr/Osr</span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"></remarks></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">public</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">static</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">void</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        ConfigureOgr()</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">{</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">if</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        (_configuredOgr)
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">return</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">;</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        Register drivers</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Ogr.RegisterAll();</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        _configuredOgr =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">true</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">;</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        PrintDriversOgr();</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">}</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"><summary></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green"> Method
        to ensure the static constructor is being called.</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"></summary></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:gray">///</span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"><remarks></span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">Be sure
        to call this function before using Gdal/Ogr/Osr</span><span
        style="font-size:9.5pt;font-family:Consolas;color:gray"></remarks></span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">public</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">static</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">void</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        ConfigureGdal()</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">{</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">if</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">
        (_configuredGdal)
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">return</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">;</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:green">//
        Register drivers</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black"></span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        Gdal.AllRegister();</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        _configuredGdal =
      </span><span
        style="font-size:9.5pt;font-family:Consolas;color:blue">true</span><span
        style="font-size:9.5pt;font-family:Consolas;color:black">;</span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black"> </span></p>
    <p class="MsoNormal" style="text-autospace:none"><span
        style="font-size:9.5pt;font-family:Consolas;color:black">   
        PrintDriversGdal();</span></p>
    <span style="font-size:9.5pt;font-family:Consolas;color:black">}</span>
    <p>I would expect that I do the GDAL initialisation correctly,
      including the coordinate transformation but the "wrong" result
      when comparing my results with <a class="moz-txt-link-freetext" href="http://epsg.io">http://epsg.io</a> or similar sources
      indicate that I am missing something essential? I have spent a
      long time trying to find a solution to this issue, but with out
      result.</p>
    <p>Looking forward to receive any suggestion of what might be wrong
      in my approach.</p>
    <p>Many thanks in advance.</p>
    <p>BR</p>
    <p>-Morten Breiner<br>
    </p>
    <p><br>
    </p>
  </body>
</html>