Export Google Maps Tiles introduces unwanted anti-aliasing
I am exporting a GeoTIFF raster to Google Maps tiles and am getting unwanted anti-aliasing, but only at zoom levels 0 through 12 (zoom levels 13 through 15 are not anti-aliased, which is what I want). I am using Global Mapper 10.02. Here are exact steps for reproducing:
Open "test.tif"
File > Export Web Formats (Google Maps, VE, WW, etc.) > Export Google Maps Tiles...
Choose "Level 15 - 4.8 meters/pixel"
Enter "16" for number of zoom levels to use (will create Z0 through Z15)
Click "OK"
In the resulting files, open Z12\1634\2737.png in an image editor. Zoom in. Note that it has anti-aliasing. Now open Z13\3269\5475.png. Note that it has no anti-aliasing.
I have attached "test.zip" which contains "test.tif" and a folder called "test" containing the output of the Google Maps tiles I created.
How can I configure Global Mapper to never anti-alias when exporting to Google Maps tiles?
I took a look and was able to find the problem and fix it. I have placed a new build at http://www.globalmapper.com/global_mapper10.zip with the change for you to try. Simply download that file and extract the contents into your existing v10.xx installation folder to give it a try.
Excellent, thank you for the quick reply and for posting the updated build. Unfortunately, I anti-aliasing still occurs with the new build. I double-checked that I was indeed using the new build, and did so on a couple different computers. Any thoughts?
I just ran the test again and found that no interpolation was done. I have attached the Z12 2737.png file that was interpolated in yours that no longer is.
Still not working for me; I wonder if there might be some option I'm failing to set, or some configuration requirement I'm unaware of. To that extent, here are the options I'm aware of that have to do with anti-aliasing:
Tools > Configure... > General > Automatically Anti-Alias Raster Layers when Loaded. I have this box unchecked.
Tools > Control Center... > Raster Options dialog > Anti-Alias Pixels (Interpolate). I have this box unchecked.
In several export dialogs (e.g., when exporting a GeoTIFF), you can choose to interpolate. I don't think this is relevant for this discussion, though.
Another thought: could there be other DLLs or ancillary files that allow the fix to work on your machine?
P.S.: Just so you know, I ran WinMerge on both of the binaries you posted, the first and second are identical, bit for bit. So I think we can rule that out.
That is very strange. It sounds like you have all of the options set properly. If you go to the Help->About dialog, what does the build date say? I'm just wondering if perhaps you have an older build running or something and you got a cached build from the server.
There was a change between v10 and v10.02 that caused the AA to happen when zoomed way out, but unless you have something else loaded, like some vector data or are perhaps including a distance scale on your output, the new build should fix it.
I'm curious why the AA is an issue at all since it only happens when zoomed so far out on the data that the multiple individual pixels would be blurred into one anyway. It seems that the AA would improve the appearance in that zoomed out case anyway.
Although we didn't have any vector data loaded in the test file we uploaded, we do use vector data in our production. We are interested with the AA because we test pixel colors at different zoom levels and AA can alter the final result.
I can't think of why the new build isn't working, but there is another way to complete disable the automatic interpolation that is happening when zoomed out. What you need to do is close Global Mapper, then run 'regedit', then add the value 262144 (2^18) to the 'HKEY_CURRENT_USER\Software\Global Mapper\MiscOpts' value. Then when you run Global Mapper the zoomed out auto-interpolation should be disabled.