View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#962
Originally Posted by jafd View Post
The countries are not a problem. But usually you don't want blank data right after the state border, that's the point.
Oh, now I get it - good point.

Originally Posted by jafd View Post
I also have this idea of using a clustered setup. I also don't want my Twisted knowledge to rust. The company I'm working at announced an R&D lab for noncommercial, spinoff and hobby projects, so maybe someday I would talk them into building the most efficient OSM rendering farm in the world.
Good luck!

Originally Posted by jafd View Post
Seeing demise of t@h, OTOH, I'm a bit skeptical about this one.
What actually happened with it ? A few days ago it just vanished...

Originally Posted by jafd View Post
I don't know a thing about layers. All tiles are single layer, with all details already burnt-in. The point is that in OSM default stylesheet has better contrast overall, and maps rendered with it have proper city/village/whatever boundaries rendered, which my maps don't.
Oh, sorry, it should have been "default layer" not "detail layer" - I really need to read more carefully what I write.

Originally Posted by jafd View Post
imposm, on the other hand, handles data much more efficiently on your average desktop/laptop hardware, my humble entry-level Thinkpad would crunch all of Europe in around 4 hours which is fast. The problem is, tables, tags and so on as produced by this tool, are totally different from what osm2pgsql provides.

So, in fact, I had to google "imposm osm.xml style compatible" and so on, getting irrelevant things at the top, until I've found OSM-bright and Carto. Then, the stylesheet produced makes what you see on the screenshot.

The OSM XML is so big that I don't have the faintest idea what to tweak so it would work.

Or maybe I would leave osm2pgsql running for a weekend with the latest Europe data, set up a cron job to incorporate differences as they flow in (osm2pgsql data allow this, imposm don't, AFAIK), and then render particular countries (so they have consistent data at the borders and so that anyone would be able to merge tilesets as he wishes).
Interesting !



Originally Posted by jafd View Post
rendering would become so complex that your phone would die of overheating / battery drain very fast.
Well Navit manages realtime rendering from OSM data on quite lowend hardware, so it is in some way possible.

Originally Posted by jafd View Post
Another way is to use OSM data (maybe in PBF format) to do the same, but I'm wondering how much study one has to invest into it, and how efficient would it be in the end. Wouldn't it be that in addition to quite big OSM datafiles there would need to be an even bigger index to efficiently search for needed data fragments?
Thats how most offline rendering/routing programs do it - they take an *.OSM file as input and give a (efficiently indexed) binary file as output. I'm don't know much about OSM PBF, but even if it could not be directly used, it should at least speed up parsing speed quite nicely.

Originally Posted by jafd View Post
Tiles are simple, on the other hand, and straightforward. You don't need to muck around with projections all the time, resorting instead to simple Cartesian arithmetic.
I would say that one should probably start with with off-line tile rendering first anyway. But realtime map rendering can be also nice, for things like adaptive labels that are not inverted when the map layer is rotated (IMHO Nokia Maps does that, but their map is also quite basic though).

Originally Posted by jafd View Post
By some clever use of normalization and a few lines patch for ModRana I have been able to slim dataset for the whole of Poland with zoom level up to 15 and select cities up to 18, from 4792M to 4589M. That's the whole 203 megabytes less, with no performance
Nice ! If it's backward compatible, I can merge it in right away.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following User Says Thank You to MartinK For This Useful Post: