# vtkGeoProjection/vtkGeoTransform differences between VTK 8 and VTK 9

**URL:** https://discourse.vtk.org/t/vtkgeoprojection-vtkgeotransform-differences-between-vtk-8-and-vtk-9/13010
**Category:** Support
**Created:** [January 4, 2024, 5:57pm UTC](https://discourse.vtk.org/t/vtkgeoprojection-vtkgeotransform-differences-between-vtk-8-and-vtk-9/13010 "2024-01-04T17:57:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![biagas](https://discourse.vtk.org/user_avatar/discourse.vtk.org/biagas/32/7380_2.png) [@biagas](https://discourse.vtk.org/u/biagas)
#### Post date: [January 4, 2024, 5:57pm UTC](https://discourse.vtk.org/t/vtkgeoprojection-vtkgeotransform-differences-between-vtk-8-and-vtk-9/13010/1 "2024-01-04T17:57:04Z")

</div>

I have a simple test that opens a vtk file and performs a vtkGeoTransform and writes the results. The results between the two VTK versions are vastly different.

I tried understanding what may have changed (besides the underlying libproj), but it isn’t clear how to change my use of vtkGeoProjection and vtkGeoTransform in this case so that the VTK 9 results match the VTK 8 results. The tests in VTK source weren’t helpful. Any other suggestions?

Source:  
[useGeoTransform.cxx](https://discourse.vtk.org/uploads/short-url/aG5sw5X2rSsv5cM25NZs4stouyc.cxx) (1.1 KB)

Data file:  
[NASA\_Vegetation\_lai\_cdf\_AsVTK.vtk](https://discourse.vtk.org/uploads/short-url/lu2SJKVfbGDo16mTwDQTN6ETt8J.vtk) (200.1 KB)

Outputs:  
[geoTransformOutput\_VTK8.vtk](https://discourse.vtk.org/uploads/short-url/jHoQVusJqNu6qzyv92ngFVx5ryg.vtk) (1.8 MB)  
[geoTransformOutput\_VTK9.vtk](https://discourse.vtk.org/uploads/short-url/yFo7wAFYpNXZGeDAqXK2ckn378d.vtk) (1.5 MB)

Rendered outputs:

 ![renderedOutputs](https://discourse.vtk.org/uploads/default/original/2X/b/b815d45dcaa5cef6395b4e99ea31ae28135da202.png)

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [January 10, 2024, 5:35pm UTC](https://discourse.vtk.org/t/vtkgeoprojection-vtkgeotransform-differences-between-vtk-8-and-vtk-9/13010/2 "2024-01-10T17:35:54Z")

</div>

I run your program using VTK master and it works correctly (like in VTK 8). Can you confirm that?

---

<div class="post-metadata">

### Author: ![biagas](https://discourse.vtk.org/user_avatar/discourse.vtk.org/biagas/32/7380_2.png) [@biagas](https://discourse.vtk.org/u/biagas)
#### Post date: [January 10, 2024, 5:42pm UTC](https://discourse.vtk.org/t/vtkgeoprojection-vtkgeotransform-differences-between-vtk-8-and-vtk-9/13010/3 "2024-01-10T17:42:12Z")

</div>

I was using VTK 9.2.6. It will take me a bit to get master built and let you know.

---

<div class="post-metadata">

### Author: ![biagas](https://discourse.vtk.org/user_avatar/discourse.vtk.org/biagas/32/7380_2.png) [@biagas](https://discourse.vtk.org/u/biagas)
#### Post date: [January 10, 2024, 7:25pm UTC](https://discourse.vtk.org/t/vtkgeoprojection-vtkgeotransform-differences-between-vtk-8-and-vtk-9/13010/4 "2024-01-10T19:25:18Z")

</div>

master works, looks like 9.3 also has the fix. Thank you much for the quick reply. Apologies I didn’t mention the exact version of VTK 9 I was using from the outset.
