On Tue, Oct 14, 2008 at 03:24:14PM -0400, Matthias Julius wrote: > How is that done now? I guess you leave empty tiles out? How are > empty tilesets counted? > > I would say having a processor just to count the tiles in a tileset to > update the statistics is a bit overkill. If we really want to count > tiles that actually contain data the upload handler needs to read the > index of the tileset file and count the non-empty tiles.
Right now it uses the number of non-empty tiles, I think. Either we change the numbers to #of uploaded tilesets and increase by 1 per upload (using a new column) or we simply increase by 1365 for each upload. I am fine with both solutions. > > That's feasable and might be the short term fix until we implement > > something better. > > I would say we do it right from the beginning. There is no need to > rush that through just to revisit the subject later. But this is how the whole of [EMAIL PROTECTED] has been developed :-) > >> Having a special "empty" file could eliminate the need for database > >> lookups while tile serving alltogether. The drawback of this is > >> that it will be a lot of inodes. Don't know if that is a problem. > > > > I rather have one 4MB db file (that is kept open and is mmapped into > > RAM across tile servings) than 16 million 4 byte files that need > > opening and closing all the time. > > Not that people pan across the Pacific at z12 or higher all the time. People do bulk downloads, yes. Not extremly many compared to regular map browsing, but it happens. > But anyway, in whatever format you want to have that info the client > can (learn to) deliver it. What I wouldn't want to do is have the > client upload tileset files full of empty tiles. That's just a waste > of bandwidth if the server discards them anyway. Makes sense, although they are small enough. > The easiest for the client is probably to create a 1 byte file because > then the uploader doesn't need to worry about that and uploads just > whatever it finds in uploadable. OK, let's handle it like that. Whenever the upload is a 0 or 1 byte file, the server will assume an empty tileset. Can the client be made to do that? spaetz _______________________________________________ Tilesathome mailing list [email protected] http://lists.openstreetmap.org/listinfo/tilesathome
