[Tilesathome] Tileset files
Sebastian Spaeth
Sebastian at SSpaeth.de
Fri Sep 19 05:59:22 BST 2008
Matthias Julius wrote:
> spaetz <osm at sspaeth.de> writes:
>
>>> For finding clients a metadata xml file uploaded parallel to the
>>> tileset and deleted after some time would be sufficient. No need to
>>> keep that data forever ...
>> I'd agree with it, but whoever implements, decides. That's how open
>> source works :-)
>
> I'd rather not deal with XML. The information we want to convey is
> not that complex that we need a markup language like XML. A simple
> text file with lines of key: value pairs will do, IMHO.
>
> The question for me is more where the data should be included:
>
> 1. in the tileset file
> 2. in a separate file (can you upload two files in one HTTP POST?)
> 3. as HTTP POST variables
1. is easy for the server too as it does not need to handle the stuff at
all. (at the cost of having it included forever in the tileset file
which might be ok for some variables and not necessary for others)
3. I'd prefer 3 to 2, it's easy to handle and the server can just grab
them and put them in it's db on upload. and later write it to some log
file. No need for a special control file IMHO, it's not THAT much
information
> The server would only need to store the file in its incoming directory
> and maybe stick the upload username to the end of it. No need for any
> database access at all (Don't know how the server is currently storing
> meta info for uploaded zip files).
The server has one db entry per upload anyway, so storing HTTP POST
variables there is no problem at all. The db entries are deleted when
the upload was processed, so the server doesn't keep any meta data
outside the tileset file currently (well the mapping user id <-> username)
> What information do people want to see on the tile details pages? All
> this could be stored in the tileset file.
My mother's birthday :-). SCNR
More information about the Tilesathome
mailing list