![]() |
Re: [Announce] modRana: a flexible GPS navigation system
Looking great man. How should I prepare to get ready for testing on Android?
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Quote:
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
I think I'm gonna need some help with this one.
I want to have a detailed map of a few cities pre-cached. I go to the city in question, then 1) Download -> around here -> 20 km 2) down max, up max (by the way, what do "down" and "up" mean? Does "down" mean zoom in, or zoom out?) 3) It works out 23k tiles 4) I zoom around the city and it tells me tiles must be downloaded. I don't know what area was actually downloaded. I believe I'm wrong somewhere, but don't know where. It would be of great help actually to have those settings illustrated. Say, here's a modrana window, scale is so and so, and the area to be covered is highlighted in blue for each mode. By the way, sqlite interactions are prone to segfaults on amd64 python 2.7. It is for sure a regression on Python/SQLite side, but there needs to be a way to work it around. Also, if anyone has set up a local tile server for modrana to use (say on a local network), could you please share how you did it? The openstreetmap wiki has the notorious open-source documentation problem, where old and outdated docs are intermixed with the current ones in an amusing enough way to leave one occupied for a week if not more. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Also, what tile layer are you trying to download ? Some tile providers (eq. Google) are unfortunatelly notoriously unfriendly to batch downloads. Also, were there some failed tiles during download or some error messages on stdout ? Please also check out if you have libmagic installed - modRana is using it to verify if the "tiles" it downloads are actually map images and not html error documents complaining about batch tile downloads returned by the tile provider. Quote:
Quote:
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Quote:
Quote:
Another way would be a batch rendering with Mapnik (and not mucking around with mod_tile and friends) and mass import into SQLite, but the link to a Perl script posted a few pages ago is dead. Quote:
Quote:
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Quote:
Quote:
Concerning the labels: around here = download is centered around current GPS coordinates (renaming this to "around current location or "around coordinates" might make this less confusing) around view = download is centered around a point in the middle of the currently visible map (probably should be also renamed to "around map center") Quote:
Tile loading works in a similar manner - there is a tile loading worker thread that processes tile loading requests from a queue and loads tiles from database to a in-memory cache, guarded by a mutex. Not sure if the tile loading thread is really needed on on newer Python versions though. Quote:
mod_mapTiles - draws the map and automatically downloads visible tiles mod_mapData - handles batch tile download mod_storeTiles - handles tile storage, both to files and to sqlite, contains both worker threads mentioned above and all database handling logic BTW, there is a description of the tile database structure on modRana project wiki. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Some pitfalls: 1) when populating the data for the first time, I forgot to enable hstore and use -k for osm2pgsql, and was badly screwed in terms of number of retries. 2) if you want to have not one country, but, say, two bordering countries, and hope to reduce processing time by downloading corresponding datasets from, say, download-fabrik.de — think again. Right at the border, there will be duplicate nodes on those maps. They all also contain some duplicate nodes needed to create overviews, at least capitals of other countries are mapped. This means that importing countries one by one will fail on the second country. I don't know how to resolve this, but the easier for a human (but not for the machine) way is to download the whole continent, import it and render the bounding boxes as you like. 3) the rendering time is, too, rather slow. I wonder if using PyPy would speed it up a bit. UPD It won't, unless by some miracle PyPy supports Boost bindings. |
Re: [Announce] modRana: a flexible GPS navigation system
Beermad replied to my PM. He is searching for the script and it should be again online soon. :)
|
Re: [Announce] modRana: a flexible GPS navigation system
That's good, I already have gobs of tiles to import. :)
In short: don't muck around with osm2pgsql on a regular machine if aiming at a whole country: it would either be very long, or it will fail after quite a while trying, because you don't have enough RAM. Use imposm, it's cool, it works in reasonable amounts of time, its documentation is good. Then you will have the problem that osm.xml shipped with Mapnik doesn't work. This is because it's tuned for osm2pgsql, and imposm uses a totally different schema. By the way, I don't know if OSM-Bright's default style is broken or it is the way in which imposm imports its data, but with this combination you won't get city boundaries. It might suck. I have installed carto, went to OSM-Bright, converted their stylesheets to Mapnik's with carto, and now tiles are being rendered. The conclusion: OSM tools are a mess. Another conclusion: go buy a paper map or an unlimited data plan if you really value your time, and don't ever go places with poor cellular coverage. Yet another conclusion: it's a nice idea to pre-render some large chunks of the world at all zoom levels and distribute the resulting SQLite files. Shame no one has done it yet. |
All times are GMT. The time now is 22:07. |
vBulletin® Version 3.8.8