![]() |
2011-08-03
, 20:11
|
Posts: 59 |
Thanked: 36 times |
Joined on Nov 2009
|
#821
|
![]() |
2011-08-03
, 20:29
|
Posts: 1,523 |
Thanked: 1,997 times |
Joined on Jul 2011
@ not your mom's FOSS basement
|
#822
|
![]() |
2011-08-03
, 20:32
|
Posts: 235 |
Thanked: 163 times |
Joined on Dec 2008
@ Costa Rica
|
#823
|
Had error message when tried to upgrade modrana install. Look attachement.
mkdir: cannot create directory '/home/user/.modrana/': File existsErase that file (as root, using terminal) and try again. Before erase it, it would be useful to attach it here, to see what it has. I erase mine before taking a look at it.
The Following User Says Thank You to lsolano For This Useful Post: | ||
![]() |
2011-08-03
, 21:59
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#824
|
The Following User Says Thank You to MartinK For This Useful Post: | ||
![]() |
2011-08-04
, 09:59
|
Posts: 650 |
Thanked: 497 times |
Joined on Oct 2008
@ Ghent, Belgium
|
#826
|
The Following User Says Thank You to petur For This Useful Post: | ||
![]() |
2011-08-08
, 13:01
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#827
|
I think your proposed versioning makes sense. As long as we add any new columns after the existing columns so that if anybody's already using the schema and doing "select(*)" we won't break their code.
Your idea of a hash-like index using separators seems a good idea. My only other thought was to force each of the x,y,z elements to a fixed length (perhaps by adding 1000000 to each, depending on what the biggest number each one could possibly be). But your method makes it more compact.
Then for version 2, your lookup table could be:
For version 3, drop the z,x,y and extension columns as well as the oldindex index.Code:CREATE TABLE tiles (z INTEGER, x INTEGER, y INTEGER, store_filename STRING, extension varchar(10), unix_epoch_timestamp INTEGER, store_tilenumber INTEGER, lookup STRING, PRIMARY KEY(lookup)); CREATE TABLE version (v integer); CREATE INDEX oldindex on tiles (z,x,y);
Version 2 of the tile store could be:
For version 3, drop the oldindex index. You could keep the x,y,z columns in this table for regenerating the lookup table as you mentioned. You could shrink the lookup table a bit more for version 3 by also dropping the epoch_timestamp from it. That would introduce a slight overhead when checking for updated tiles as it would need to be retrieved from the store rather than the lookup. I'm not sure which way would give the best balance of benefits.Code:CREATE TABLE tiles (z INTEGER, x INTEGER, y INTEGER, tile BLOB, extension VARCHAR(10), unix_epoch_timestamp INTEGER, id INTEGER AUTO INCREMENT, PRIMARY KEY(id)); CREATE TABLE version (v integer); CREATE INDEX oldindex on tiles (z,x,y);
So you'd insert the tile in the store first, then retrieve the value of the id column to populate the store_tilenumber column in the lookup table.
May i strongly suggest not using MyDocs and using dirs located directly under $HOME instead? MyDocs is exportable / mountable, so for example if you have connected your N900 via USB to a laptop maybe for copying some files over, you would not be able to use modRana (or any other SW that does this) at the same time and would have to choose between using the SW or copying files.
Another question (I guess this is already answered but I didn't find): Is there an easy way to download all needed tiles for an area externally and afterwards just throw them into correct folder on N900? downloading a bunch of some 20k tiles at once is quite hard. My N900 gets quite hot when using 3G-connection that intense.
The Following 2 Users Say Thank You to MartinK For This Useful Post: | ||
![]() |
2011-08-08
, 19:55
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#828
|
![]() |
2011-08-08
, 20:00
|
Posts: 650 |
Thanked: 497 times |
Joined on Oct 2008
@ Ghent, Belgium
|
#829
|
The Following User Says Thank You to petur For This Useful Post: | ||
![]() |
2011-08-08
, 20:08
|
Posts: 235 |
Thanked: 163 times |
Joined on Dec 2008
@ Costa Rica
|
#830
|
The Following User Says Thank You to lsolano For This Useful Post: | ||
![]() |
Tags |
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps |
Thread Tools | |
|