2020-10-28 UTC
geoffo, nickodd, [fluffy], gRegorLove, kitt and KartikPrabhu joined the channel
[Emma_Humphries] and KartikPrabhu joined the channel; nickodd left the channel
[fluffy] joined the channel
geoffo and deltab joined the channel
# 12:46 GWG I'm trying to solve my map drawing limitations by adding a polyline decoder. I'm still having trouble with line simplification.
# 12:50 GWG The algorithm for line simplification calls for a tolerance number and I am not sure what formula to use to calculate it based on my series of points
[schmarty] joined the channel
# 13:57 [schmarty] GWG sounds like tolerance would be more dependent on the resolution of the output image
geoffo joined the channel
# 14:36 GWG [schmarty]: My issue is that I have a maximum cap of points, and I need a formula that can work for a transatlantic flight or a walk around the block
# 14:36 GWG The map generation code and the point query code
geoffo joined the channel
# 14:45 GWG [schmarty]: Fortunately, I'm not flying anywhere soon, but I have plenty of historic data I can add in
# 14:46 GWG I am thinking of allowing the pasting in of an encoded polyline as the UI, or querying compass, but I need to sanitize it before it goes to map generation
# 14:47 [schmarty] aaronpk probably has a lot more insight into this but I think you'll have to take an iterative approach
# 14:47 aaronpk whatever i did a while ago has been working great
# 14:50 [schmarty] At the very least I figure you'd want to know the distance between the two furthest points and how those map to your expected final image. That would let you iterate over all the points and filter out any that aren't "far enough" from the last point to be visible
# 14:51 aaronpk the ramer douglas peucker simplification has been good enough for all the maps on my site
# 14:51 [schmarty] If you have a maximum points budget then you'll want to do some kind of iterative simplification algorithm
# 14:51 aaronpk regardless whether the line spans continents or blocks
# 14:52 aaronpk oh right i had to do that one manually cause the code can't cross the date line that direction
# 14:56 GWG aaronpk: I implemented the algorithm, just haven't figured out the tolerance
# 14:56 GWG If you set it wrong, you get just two points
# 15:01 GWG I've been playing with the feature for days
# 15:02 GWG The encoded polyline to deal with URL limitations took a bit
# 15:05 GWG I need to finish that work, I am modifying your old code, aaronpk
# 15:05 GWG I don't need the full Atlas suite, though maybe I should do a PR to it.
[grantcodes] joined the channel
# 15:14 [grantcodes] Are you using geojson @GWG? I have found many map tools are set up to render that with lots of points on it.
# 15:20 GWG [grantcodes]: I'm using a modded version of aaronpk's Static Map script
# 15:20 Loqi [dshanske] Static-Maps-API-PHP: A PHP app that renders static maps from tile hosting services
# 15:36 GWG aaronpk: You rolled it into Atlas
# 15:36 GWG I backported some of your Atlas improvements
fauno_ joined the channel
# 15:56 GWG I have some other ideas for my fork, like generating text on the map.
gRegorLove, geoffo, [fluffy], deathrow1, [schmarty], [tantek], dopplergange, [Ana_Rodrigues], maxwelljoslyn, KartikPrabhu, dopplerg-, ArjunAa, [chrisbergr], shakeel, timotimo and [KevinMarks] joined the channel
# 23:33 jacky I've been hacking away on my micropub client
# 23:37 jacky and I realize that attempting to rebuild the tumblr editor is borderline nuts lol
# 23:37 jacky just replace algorithmicalexpansion with a blog you own