-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Drop M/Z values algorithm doesn’t remove Z values in KML #53362
Comments
I believe this is by design. |
Were you able to find a paragraph where in this doc they mention that it's always 3D? thanks in advance. |
§6.2
|
But https://docs.ogc.org/is/12-007r2/12-007r2.html#1212 says that altitude is optional. |
But, shouldn’t the "Drop M/Z values" drop the Z value anyway? |
@nicogodet the issue also occur if the input layer of the "Drop M/Z values" processing algorithm is e.g. a plain Point (without Z and M) layer and the output layer is a KML layer. |
The issue is not related to the "Drop M/Z values" processing algorithm itself. In fact the issue also occur with any other processing algorithm when the output layer is a KML layer: e.g. using the Dissolve algorithm with a plain Point (without Z and M) input Layer, a MultiPointZ KML layer is created instead of a MultiPoint KML layer. |
With a 2D geometry, GDAL calls libkml with just latitute, and longitude, but my quick scan at libkml itself is that it always add a Z=0 is not explicitly provided. So I don't think this can be fixed in GDAL. QGIS could potentially auto-switch to the KML driver for that algorithm. |
@rouault, it seems that all the processing algorithms in QGIS use the LIBKML driver so a KML layer created by any processing algorithm (with vector output) has an added Z coordinate. |
What is the bug or the crash?
When I try to remove the Z values from a KML, the algorithm converts them to 0. But if I try to convert them to geojson, these values are removed.
Steps to reproduce the issue
Versions
version 3.30.3
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: