The data file format for the on-line city is a simple key-value
pair format; each entry is a block of lines of text, with blank lines
between the entries. Within each entry, each attribute of the entry is
key="value" where the
must be in
" characters, with
any quotes within them escaped using a backslash. (The quote
characters will probably eventually become optional for single-line
The first entry in the file represents the main object, and subsequent entries, the objects alongside it... very much oriented towards roads!
There are several standard keys that are present in many kinds of entry. Here are some of them, to give you the flavour of it; see also the field types page.
.attrfile is expected to be in a directory whose name is the attribute type of its main object, with the letter
sappended, for example, something of type
roadshould be in the directory
I have a test page for driving a test CGI script (don't rely on these staying around); the page is select.html and the script is whatever you currently get by submitting a request from select.html -- if you have a chance of understanding the script, you should be able to fetch it! The data file I'm using as the main example in developing the script (which does not yet work!) is lensfield-road.attr so if you'd like to make some data files, you could take that as an example to base yours on. (It's not complete, either!)
For more information, see the index to the documentation.