pnorman's Comments
Post | When | Comment | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
What do you need from a preprocessed MapLibre style editor? |
Yes. You’d likely have to go for writing javascript code regardless, so you were able to lean into it. Americana’s target is a webpage with a style, not a self-contained MBGL style json.
I need to try Glug more, but my problem is that it creates unnecessary layers. For example, the example simple Glug stylesheet produces six layers. A road with color variations should be one layer. I know there is filter expression support, but it seems like it’s largely a grammatical change. That’s useful - arrays are a pain to read - but it’s not really introducing anything new. With most of the examples showing many layer based method, it feels like it is written without consideration of expressions everywhere. I think it was written before they were in widespread use, so it’s not anyone’s fault. If I’m starting a new project the most important part is how does the tool handle complex expressions. How would you write this icon-image in Glug? It’s based off of Street Spirit’s
Do you mean combining two filters with all or any? I’m aware of two pain points with this
Is it one of these, or something else? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fixing places as areas in shortbread tiles | The database will be reloaded then the tiles deleted and regenerated. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
What do you need from a preprocessed MapLibre style editor? | The large uncommentable JSON file is the one absolute must-have for me. I’ve tried that with OSM Carto before we had YAML MML files. Never again. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Future deprecation of HTTP Basic Auth and OAuth 1.0a | mmd’s example does this in 11 lines of bash, including endpoint discovery. I think the right environment variables could make all subsequent curl calls add that header, but you might need to write to a I haven’t had to implement an OAuth 2.0 CLI app before, so I wanted to see how long it would take me. It took me about half an hour using a library I had never used or read the documentation of. I could have used Ilya’s script which does all of this and handles saving the token. I implemented what mmd did, except without endpoint discovery in 13 lines, taking under half an hour starting from scratch. The code and output from running it is https://gist.github.com/pnorman/19c103add9fcc6b9ee8a5792d2598ef4. I’ve deleted the OAuth 2 application, so you’ll need to make your own. From this point in my code writing API calls by hand would just be like normal, as the interface is the same as the requests library. If you’re doing this for real best practice would to have some error handling better than bailing out on error |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
uMap: fine-grained permissions and more | It would be good to make it clearer that visability to “anyone with link” is essentially viewable to everyone, as you can trivially increment the ID of the map and view all possible maps. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
🌂 The Past, The Present, The Future |
No, releasing a banner which conflicts with the close button is a sign of OSM staying the same. It’s happened with SOTM banners in the past, and probably will in the future. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
친절인가요, 배타성인가요?(Is that kindness or exclusivity?) |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Analyzing OSM's Tile Logs | The other columns are request rates with documentation at https://github.com/openstreetmap/tilelog#format-documentation |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A critical analysis of Bing Map Builder part 2 - an update to 'OpenStreetMap is in Trouble' |
It’s always been sent to Bing directly. What appears to have changed is Bing isn’t taking those edits and submitting them to the OSM API. I would watch for the building you mapped. There’s a few possibilities - the data goes nowhere right now, - the data eventually appears on bing maps, or - the data appears in OSM eventually. If it appears on Bing, then we can get the data from Bing under the ODbL and if we want, bring it into OSM. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The 20% drop in new contributors (preliminary analysis) | In 2022 we had 813883 account creation events in Matomo, while in 2021 there were 953865. This is fairly close to the percentage drop in edits. Unfortunately for finding out more, about 70% of people creating accounts come to the site from direct entry or search engines, which don’t tell us how they arrived at OSM. There’s 20% coming from website links, and the other 10% is social media and rounding errors. The website category can be further broken down. For reference, there was a drop of 15% overall. The following are the top inbound sites for account signups in 2021, with the number of signups in each year, and the percentage difference.
Not all signups are equal, of course. I suspect a signup driven from a local chapter website is more likely to be useful than one coming from a SEO site. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Cleaning up cuisines in Canada with JOSM | As a Canadian, I’m not quite sure what Canadian cuisine is, but I know it’s a recognized category. See for example Yelp Canadian (New), “modern Canadian cuisine” at Brix & Mortar, or OpenTable Contemporary Canadian. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Testing planet import | Does overpass not read the history PBFs for historical data? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Discord Ban Appeal | The Discord server is run by the Discord admins, so you can contact them through Discord to appeal. As for the ban, you were told what you were doing is disruptive, told to stop doing it, and you continued. That leaves admins with no option except a ban. You may not agree that it was disruptive, but it’s up to the admins to decide that. If you disagreed, you should have still stopped your conduct, and discussed the matter, not ignored admins. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OpenStreetMap Carto release v5.6.0 |
The requirements are shell and curl. It might take a bit of work to get it running on WSL or cygwin, but getting style design software running on them is more involved too. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Google Summer of Code 2022: Phase 1 | I’ve been using tiles2image to turn map tile lists into images. Because when you fix the zoom, you only need 1px per tile, this makes the resulting images small. To get grayscale I’ve been using something hacked together, diff below
For zoom 12, this results in a 612K PNG image, for zoom 15 it is a 3.7 MB PNG. Have you decided what zoom tile you are going to have as equal to 1px in the image you have? Looking at the tiff, it is 262144px wide, which is z18 tiles. This seems like an unnecessarily high resolution, as z18 tiles are only a few houses wide. Does the data need to be in the database? If it’s being processed in the PHP application, storing it in a PNG is an option to consider, since getting a pixel value for a <1MB PNG is pretty fast.
I would focus on time to get the value for a given coordinate, not on loading time. This is likely to be correlated with table size more than loading time, so sizes larger than 100x100 might be better. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Monitoring Tile Servers with Fastly healthcheck status | Yes - the improved monitoring of StatusCake might have caught it, but if Pyrene had been working (e.g. if it had been the most recent to be upgraded) then we’d have still had the problem among the European servers which would have been just as difficult to diagnose, so I think both monitoring changes are important. I like the presentation on the Tile CDN dashboard. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Publishing sites using tile.openstreetmap.org |
No. The goal is to improve the ability of the community to see how the service is being used and reduce the number of times admins need to run ad-hoc queries to see usage. We’ve done this in the past for user-agents. In particular, historical usage was exceptionally difficult to query because of the large amount of data (~130GB/day compressed) that needed to be queried. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Publishing sites using tile.openstreetmap.org | I’ve gone with CSV, quoting the string field. On the technical site, it’s using Python’s csv.writer with unix_dialect and QUOTE_NONNUMERIC. sqlite would be overkill for what is 15kb of data in text form in a single table. If I were truly reporting website domains, I wouldn’t worry about quoting, since domain names have a restricted set of characters. Instead, what I’m reporting is extracted domains from the referer header, and there’s nothing that stops an app from sending That is related to the origin of “” in the hosts log. They are from referers that don’t parse as a valid URI. In practice, for the type of log processing I’m doing, I’m likely to ignore that. If I run a command like The first file is up at https://planet.openstreetmap.org/tile_logs/hosts-2022-06-26.csv. I’m preparing the files to backfill into 2021 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Inferring Default Speed Limits |
You need this information for good routing anyways, which is the main use-case for speed limit data. Typically you want to develop routing cost functions based on actual speed, not max speed. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Google Summer of Code 2022 | No, the tile logs are from the CDN and are an accurate count of successful requests for tiles. Prior to 2021-04-13 the logs were only from the second layer of the old CDN. The logs include successful requests on tiles where there were at least 10 requests, and the requests came from at least 3 distinct IPs. Most of them represent real views, but there are some artifacts. |