HabitatSampler issueshttps://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/issues2023-12-19T13:11:43+01:00https://git.gfz-potsdam.de/habitat-sampler/HabitatSampler/-/issues/65Differences between saved .tif and .kmz -files2023-12-19T13:11:43+01:00Johannes KnochDifferences between saved .tif and .kmz -files@romulo
I was about to write a unit test for the save functions and therefore I compared a step_\*.tif- and a step_\*.kml-file.
I was aware, that due to transforming between crs there is a slighty shift of the pixels.
But did you know...@romulo
I was about to write a unit test for the save functions and therefore I compared a step_\*.tif- and a step_\*.kml-file.
I was aware, that due to transforming between crs there is a slighty shift of the pixels.
But did you know that:
1. some pixel change class?
As you can see in the circled area the shape of the pixelcluster is different, which means some pixel changed their class (respective attribute value)
![tif_kml_pixel_change_class](/uploads/37c0067922b14b8c14a4c202ea632c6b/tif_kml_pixel_change_class.png)
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
2. The pixel values are saved in reverse order in the .kml file?
In the big circle on the right you can see that class "0" in the step_01_decidiuous.tif is class "10" in the step_01.kml and that's the case for all the classes. Moreover the step_01.kml file has one more class (blue circle on the left) for "NA" which gets the value "0".
![reversed_order_pixel_values](/uploads/b1cf482b1125bb97aea3dc3fd50598c9/reversed_order_pixel_values.png)Future optimizationsJohannes KnochJohannes Knoch