-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Generate KML files from the "Historical" page #858
Conversation
Nice addition! |
That sounds like a good idea. I'll take a crack at it. |
OK, KML generation has now been moved into In order to use that from There are a couple leftover |
I think most of the print statements should go to logging.debug calls, except those within except blocks. Those should be logging.exception, and should include the exception info to assist with debugging. We should just skip over those broken files though. |
I replaced the |
OK, are you happy enough with this for me to merge it in? |
Yes, I think so. It's working well for me, and I verified that exceptions are logged when they occur. |
Awesome, I'll merge it in! |
Thanks! Are you happy with how the |
Yeah, it seems to work, so I'd be happy to see the dependency removed! Ran a few tests on my local station with the new code, seems to work fine! As expected exporting everything takes quite a while. I suspect that at some point the URL for large selections is going to get too big (e.g. if you select all, then de-select one), but oh well. |
Actually it might not be an issue (seems most browsers have stupidly large URL limits), so happy to ignore it for now :-) |
Log files can be converted to KML using the
log_to_kml
command-line utility. To make the process simpler, I've added a "Generate KML" button to the "Historical" page:When clicked, a KML file is generated from the selected log files.
To avoid making
fastkml
andshapely
dependencies of auto_rx, I rewrotelog_to_kml
to generate KML using the standard library's built-in XML support. (It should be possible to eliminate auto_rx'ssimplekml
dependency in the same way, but I'll leave that to another pull request.)