Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom factor impacts raster layers #28

Open
VICTORIGIS opened this issue Sep 21, 2022 · 4 comments
Open

Zoom factor impacts raster layers #28

VICTORIGIS opened this issue Sep 21, 2022 · 4 comments

Comments

@VICTORIGIS
Copy link

Hey, I've found the reason why my raster layer background is not shown in the kmz file. Whenever i use a zoom factor (for example 10), the raster layer appears in the top left corner as a small tile. The rest of the tiles just has a white background, with the vector layer in front.

image

But if i use a zoom factor of 1, the raster is shown perfectly fine with all vector layer on top. This is okay for my current work, but now the resolution is not the best. I´ll play around a bit more, but maybe someone has the same problem. Just use the zoom factor 1 and then maybe load more kmz files on your garmin device...

image

@esan0
Copy link
Contributor

esan0 commented Sep 21, 2022

@VICTORIGIS Thanks for your observations. I have experienced issues loading KMZs generated with zoom > 1 in QGIS, but so far, my suspicion is that QGIS handling of multi-tile kmz files is the cause.

The reason I think this way is because if I load the same KMZ in a Garmin device, it shows up properly on that device.

Could you test the same KMZ that shows up as a small tile in a Garmin device and let me know if the same issues occurs?

Thanks

@chrismuller
Copy link
Contributor

This could be the same issue as #22, for which I just left a comment that it should be reopened. I also suggested a solution (removing the statement

            mapSettings.setOutputDpi(target_dpi)

in line 384 of file GarminCustomMap.py (version 3.4.1), which I had suggested before but somehow got lost in the commit.

@ninsbl
Copy link
Contributor

ninsbl commented Nov 21, 2022

FYI: I just uploaded a new version with the fix by @chrismuller

@esan0
Copy link
Contributor

esan0 commented Feb 11, 2023

Hmm, sorry folks, seems as though removing this line actually breaks execution on linux. The new version of the plugin, with this fix, doesn't work on my machine with QGIS 3.28.3 (and previously on 3.28.0) with a zoom factor that is not 1.0 (it works with zoom factor = 1.0).

Can anyone confirm that the plugin works WITHOUT this line (using a zoom factor not equal to 1.0)?

@esan0 esan0 mentioned this issue Oct 4, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants