![]() |
2012-03-14
, 05:46
|
Posts: 29 |
Thanked: 26 times |
Joined on Oct 2009
|
#951
|
![]() |
2012-03-14
, 15:54
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#952
|
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.
An idea worth considering: an empty tile takes 103 bytes as a file + storage overhead of a row in SQLite. At high zoom levels, OSM has lots of those. Maybe it's worth to have one more column in the lookup table to indicate an empty tile and thus process it more quickly?
table tiles (z integer, x integer, y integer, store_filename string, extension varchar(10), unix_epoch_timestamp integer, empty integer, primary key (z, x, y, extension))
The Following User Says Thank You to MartinK For This Useful Post: | ||
![]() |
2012-03-14
, 17:35
|
Posts: 29 |
Thanked: 26 times |
Joined on Oct 2009
|
#953
|
The Following User Says Thank You to jafd For This Useful Post: | ||
![]() |
2012-03-14
, 18:18
|
Posts: 242 |
Thanked: 97 times |
Joined on Sep 2009
|
#954
|
The Following User Says Thank You to abubakar For This Useful Post: | ||
![]() |
2012-03-14
, 22:07
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#955
|
Yep, empty PNGs are just 103 bytes in size. But you can take advantage of preloading one at the very start, and rendering it wherever an empty tile is needed, thus conserving some time (and battery) otherwise spent on decoding. In terms of database disk size, getting rid of them would yield next to nothing.
As for sharing the pre-renders, I suspect it would take a few months to do them on commodity hardware (three days for Poland, zoom levels all the way to 15 and 16-18 for select cities); also, to achieve acceptable results, the database for the whole planet is needed (for some reason I've got proper administrative borders only around one of two countries).
Also the stylesheet I ended up with, default one from OSM-bright (which played well with imposm data) is bad, too low contrast to be viewed on a phone. Font size is also next to pathetic.
![]() |
2012-03-14
, 22:16
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#956
|
I installed modrana few weeks back and recorded 3 tracks. Then I used the "show on map" feature to plot them on the maps, all 3 of them. I dont know when after that this problem started that modrana is not downloading any tiles anywhere, I have tried zooming in/out a lot, change map location, restarted the device several times, the tiles just dont load anymore and all I see is the "Loading" in each tile. What can I do to provide the debugging info so this can be debugged. I was thinking I should uninstall and install, but I have not done that yet.
modrana
The Following User Says Thank You to MartinK For This Useful Post: | ||
![]() |
2012-03-14
, 23:50
|
Posts: 29 |
Thanked: 26 times |
Joined on Oct 2009
|
#957
|
Well, thats quite brutal. But I'd say doing just some selected european countries and/or big cities might be doable.
I met some people on the SotM in Viena suggesting that Mapnik is horrendously inefficient so it might indeed be possible.
What about the stylesheet used for the detail layer ?
At least this tools does custom rendering from OSM snapshots and uses them default stylesheet, so it should be possible:
http://osm.kyblsoft.cz/historie/
(the text in the header says that you need to select on the plus in the upper left corner to select the snapshot)
![]() |
2012-03-15
, 05:39
|
Posts: 440 |
Thanked: 160 times |
Joined on Aug 2010
@ Las Vegas, NV
|
#958
|
Yep, Google geocoder is currently used for address search. But I'd like to add other geocoders in the near future - Nominatim, Geonames, etc. Weird that it works with Google Earth - either it uses its own different private API or there are some encoding issues with the ampersand in the string ?
![]() |
2012-03-15
, 07:28
|
Posts: 29 |
Thanked: 26 times |
Joined on Oct 2009
|
#959
|
Correction: The address search worked with presets online -> Custom query but not from address online.
I can see that Rana (on which modrana is based) actually uses vector data rather than tile data, any specific reason for modrana to use tile data while starting the port?
![]() |
2012-03-15
, 08:23
|
Posts: 29 |
Thanked: 26 times |
Joined on Oct 2009
|
#960
|
The Following 3 Users Say Thank You to jafd For This Useful Post: | ||
![]() |
Tags |
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps |
|