The Following User Says Thank You to Lord Raiden For This Useful Post: | ||
![]() |
2008-09-05
, 03:38
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#12
|
Ya know, I've been going over some of the data so far with the map tiles system, and based on my current estimates, the Google map files repository must be in the 1000 terrabyte category. Seriously. Using an average file size of just 3kb per tile (files range from 312bytes up to 50kb depending on level of detail) it comes out to somewhere around 192+ gig just for the state of Michigan! 0.0 That's well over 2.8 million tiles! I'd hate to think how many gigs it would take just to do the Eastern US. That'd be seriously scary.
![]() |
2008-09-05
, 11:25
|
|
Posts: 1,562 |
Thanked: 349 times |
Joined on Jun 2008
|
#13
|
![]() |
2008-09-05
, 13:57
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#14
|
Yeah, you ain't kidding it is. It's almost making me wonder if it wouldn't be more practical to go every other zoom level to reduce the total number of tiles needed to be downloaded.
![]() |
2008-09-05
, 22:55
|
Posts: 348 |
Thanked: 61 times |
Joined on Dec 2007
|
#15
|
![]() |
2008-09-05
, 23:09
|
|
Posts: 1,562 |
Thanked: 349 times |
Joined on Jun 2008
|
#16
|
![]() |
2008-09-06
, 17:26
|
Posts: 348 |
Thanked: 61 times |
Joined on Dec 2007
|
#17
|
To start with I came up with a simple engine for converting a decimal number to a grid address ID. The principle behind this is that you'll start with a zoom level, say level 16 (I'm counting zooms based on the way the grid addressing works with level 20 being a full 4 quadrant map of the earth) and going down to level 4 (you don't need any zooms higher than level 4). That's 12 levels. That's also one bloody heck of a lot of files. I did a test with 200 files and it came out to about 1mb average size for the entire lot.
It'll also pull 5460 tiles for the first six levels you go down. It takes close to 1 million tiles or about 5gb to do the entire state of Michigan. I could be off by a little bit, but that's a pretty fair estimate. And that's starting with just one grid tile on one zoom level as your focal point for starting the script. So the total file size and number of tiles is significantly smaller than I had first estimated. Mostly because the math works out a lot differently.
But anyways, here's the address engine that I have right now. Again, it's a bit rough, but this is a first effort and I figure that if we work together long enough this will evolve into a full fledged downloader script. Now, given everything I've learned so far, you're looking at having to run this script for close to 6 hours to do just a state level snapshot. But that certainly beats the 18-32 hours it would take with the Nokia tablet.
Also, given that maemo mapper will eventually be going to an sqllite database, I figure we may as well start building the downloader to import to that format of database. The only three areas I can really think we need to work on right now (I'm not saying they're the only areas, just the most immediate three) is the downloading module for grabbing the files, the sqllite database handler and importer, and an initial config section.
The config section would hold all the user editable configs for the script obviously, as most of these configs can't really be passed from the command line. Now it's also reasonable to think that these could be put out in a separate file and handled that way so as to avoid requiring end users to edit the actual parent script. So, anywho, without further adieu, here's the address engine. Now mind you there's some testing stuff in here still, so feel free to ignore that.
edit: Ok, minor correction. It looks like I was estimating too small again. It looks like my original data and tile numbers are gonna be much closer to the mark.
Last edited by Lord Raiden; 2008-09-03 at 17:06.