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

Allow directly setting KML altitudeModes #1040

Open
jidanni opened this issue Mar 24, 2023 · 2 comments
Open

Allow directly setting KML altitudeModes #1040

jidanni opened this issue Mar 24, 2023 · 2 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Mar 24, 2023

Allow directly setting KML altitudeModes

On https://www.gpsbabel.org/htmldoc-development/fmt_kml.html

floating option
Altitudes are absolute and not clamped to ground.
When this option is nonzero, altitudes are allowed to float above or below the ground surface. By default, this option is zero so that altitudes are clamped to the ground. Specify floating=1 to allow them to float.

OK, that's great, but why not also give full control to the user to
pick the many possible allowed KML altitudeModes?

That way he needn't post process the KML file with e.g.,

for($dom->findnodes('//altitudeMode')){
    $_->unbindNode for $_->childNodes();
    $_->appendText('relativeToGround');
}

So -o kml,altitudeMode=relativeToGround
(User is responsible for what string and how to capitalize.)

@GPSBabelDeveloper
Copy link
Collaborator

GPSBabelDeveloper commented Mar 24, 2023 via email

@jidanni
Copy link
Contributor Author

jidanni commented Mar 25, 2023

Well I didn't check what these all do
20230325T141620
and maybe more will be on the way. So I was just thinking of a maintenance free solution... but some of them would need a gx: in the front... so one cannot win...

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