[GeoJSON] Values along a line in GeoJSON

Tom MacWright tom at macwright.org
Thu Aug 8 07:34:36 PDT 2013


Hey all,

So recently I've been working on a site that centers around editing maps
and treats GeoJSON as its latin[1]. As one of the features on this site, it
uses a library to convert from other formats - KML, CSV, and GPX - to
GeoJSON[2]. This has been pretty great, and clearly GeoJSON is a superset
of CSV, and can handle most bits of KML. That said, though, GPX files
present a bit of an issue.

That is, GPX allows you to specify values at points - a segment is made up
of trackpoints, which can have their own data points - elevation, time,
heart rate, and so on. The conversion library right now simply converts
segments into lines and throws away data-at-points.

So, my question is: what's a better way? I don't want to encourage or imply
that GeoJSON should grow, since its simplicity is incredibly valuable. But,
in order to stem the fidelity loss in this conversion, is there a good
pattern for storing this kind of data? What kind of data is this - what's
the right term for values-on-lines and is it weird that GPX supports it
while other geospatial formats don't?

Thanks for any knowledge or advice here, it's much appreciated!

Tom

[1]: http://geojson.io/
[2]: https://github.com/tmcw/togeojson
[3]: http://en.wikipedia.org/wiki/GPS_eXchange_Format#Sample_GPX_document
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20130808/804cb058/attachment.htm>


More information about the GeoJSON mailing list