Comments (3)
In broad strokes we agree on this one. (Finally!) This has been on my list of "Feynman's Problem Solving" candidates list for a long time.
When this was implemented for Earthviewer (nee Google Earth), the defaults were chosen to maximize eye candy and provide lots of ${STUFF} inside the balloons. This has problems in practice (the times don't localize or respect language setttings, very large output, doesn't integrate well with Earth Pro's terrain profile tool, etc. because this is all instead of/in addition to the actual data. We can generate kilobytes of text for a single LLAT. We were also trying to strike balances for old versions of Earth (long forgotten) and even Maps.
Prescription: Turn off the default 'points' flag in the KML writer:
/gpsbabel -t -D9 -i gpx -f reference/skytraq.gpx -o kml,points=0 -F -
reference/skytraq.gpx
Good: This means that you don't have a clickable balloon at every vertex in the line.
Bad: This means that you don't have a clickable balloon at every vertex in the line.
The kml_points (clickable balloons) line (writing a Linestring or not) and track (write the "new" gx:Track features) are three different knobs that can be controlled independently (they may be co-dependant in some way I can't remember at 01:30) but they allow you to control how much bloat, err "value added features" we generate when writing a KML
✗ make && ./gpsbabel -t -D9 -i gpx -f reference/skytraq.gpx -o kml,points=1,lines=1,track=1 -F - | wc -c
207583
✗ make && ./gpsbabel -t -D9 -i gpx -f reference/skytraq.gpx -o kml,points=0,lines=0,track=0 -F - | wc -c
3084
OTOH, turning everything off as in that last example is great for file sizes, but produces literally no useable visual data, so that extreme can kindly be thought of as lossy compression.
There is probably space for some modernization of our default flags here, but we have to think about our integration into the larger ecosystem and revisit my thoughts on using ExtendedData and custom style sheets, including in geocache updates.
Prescription: experiment with points, line, track sub-options. If we can shrink our output without breaking backs on Google Maps users, XSD validations, incompatibility with versions of Earth that Google has tried to kill unsuccessfully, etc. great. revisit in follow-up appointment.
from gpsbabel.
I seem to recall our balloons have valuable information the default balloons generated by the latest Earth don't, perhaps the timestamp and/or name.
from gpsbabel.
I seem to recall our balloons have valuable information the default balloons generated by the latest Earth don't, perhaps the timestamp and/or name.
Yes, that is https://www.gpsbabel.org/htmldoc-development/fmt_kml.html#fmt_kml_o_trackdata . And yes, the user can optionally turn it off already.
Prescription: ...
I am sorry, none of the current possible prescriptions work.
You see, I want a way to chop down
$ echo|gpsbabel -i csv -f - -o kml -F -|wc -l
39
Yes, we tried
$ echo|gpsbabel -i csv -f - -o kml,points=0,lines=0,track=0 -F -|wc -l
39
So it would be great if one could use
-o kml,lookat=0,styles=0,snippit=0
Yup, I'm talking about the power to selectively opt-out of
- Lookat
- all styles
- and the snippit
Currently they are obligatory.
from gpsbabel.
Related Issues (20)
- Clearly separate input and output options in the documentation HOT 1
- Eliminate duplicates from KML LineString HOT 2
- 1x1 meter square not big enough for -o osm ? HOT 7
- Don't hardwire "to six decimal degrees" assumptions HOT 1
- Filter by name HOT 1
- Idea: PROLOGUE AUTO HOT 4
- Include field names in fmt_openoffice.html automatically HOT 2
- Make tabsep understandable offline HOT 1
- Some KML folders are missing their names HOT 2
- Create default IGC extensions list and provide option to include more, or exclude defaults HOT 9
- igc exensions can cause core dump HOT 2
- Need --fail-if-any-warnings option HOT 1
- unicsv has inconsistent handling of date+time, date only, and time only fields
- Problem converting kml with large number of coordinates to osm HOT 5
- KML Placemark-elements with MultiGeometry are ignored HOT 5
- xml dateTimes without timezones should be local, not UTC HOT 5
- sub-second timestamps in OSM XMLs HOT 8
- strftime/strptime specifiers -> QDate/QTime/QDateTime specifiers? HOT 2
- Converting encoding of waypoints names HOT 55
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpsbabel.