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

Symbology is not exported correctly when categorized in QGIS #28

Open
Jordanluiz opened this issue Jul 14, 2023 · 4 comments
Open

Symbology is not exported correctly when categorized in QGIS #28

Jordanluiz opened this issue Jul 14, 2023 · 4 comments

Comments

@Jordanluiz
Copy link

Both in point layers and in lines, when they are categorized, the export assumes only one of the styles (the first or the last).

Lines:

Categorized

image

QGIS

image

Google Earth

image

Points:

categorized

image

QGIS

image

Google Earth

image

@hamiltoncj
Copy link
Contributor

What version of QGIS are you using and what operating system are you on? Categorized lines work fine for me and the last time I tried it, points did as well. I will need more details on your setup and perhaps a sample QGIS project you are working with.

@hamiltoncj
Copy link
Contributor

@Jordanluiz One thing you need to be careful with is that the line symbol has to be simple. The KML specification has no ability to create complex symbology.
image

@Jordanluiz
Copy link
Author

@hamiltoncj I was using version 3.30 on Windows 11 and it only works fine when using version 3.22 of QGIS. The error stopped happening when I stopped categorizing using more than one field in the value.

When I use it this way, the error occurs:
image

@hamiltoncj
Copy link
Contributor

I was able to replicate this and the issue is that you are using an expression rather than a simple attribute. I will spend a little bit of time looking at the problem and see if it is an easy solution to fix. My hands are tied a little as I have been pulled off from QGIS development. I am still allowed to do some minor bug fixes.

As a temporary solution you can create a virtual string attribute and use the expression to fill it in then you can select the virtual attribute as the categorized style. The KMZ export will then work correctly.

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

2 participants