Hi Michael, I like it, sounds really cool!
Helmut Am 2011/09/23 23:55, schrieb Michael Klein: > Hi! > > I think it would be really nice to have the possibility to add some user > definable track filtering mechanism without the need to hack around in > CDlgTrackFilter and compile the whole thing from source, but some > interpreted scripting language instead. > > Compared to e.g. Python, Lua is embarrassingly easy to embed, so I made > a quick hack that adds a "Lua" page to the track page, where you can > simply paste your Lua filter script and execute it. Obviously the > attached hack isn't ready for prime time yet and leaves much to be > desired on the UI, but it's enough to play a bit around and check what's > possible. > > The track data is exposed to the Lua interpreter through the single > global array "track". Note that array elements are, by convention, > counted from 1 instead of 0 in Lua. Currently only a subset of the track > point data is exposed: lat(itude), lon(gitude), ele(vation), flags and > timestamp. > > Attached is also a simple implementation of the Douglas-Peucker > algorithm in Lua. Filtering a track with 3000 points takes only a few > seconds on my dated G4 Powerbook, and it seems most of the time is > actually spent in track.rebuild() *after* the Lua work. So performance > is IMHO no showstopper. > > Opinions? > > Regard, > Michael ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
