| Next: README | Previous: bbbike | [Index] |
bbd - bbbike data format description
bbd is a simple format for describing points and polylines for
geographics information systems.
Bbd files consist of newline-terminated records in the format:
Name TAB Category SPACE x,y SPACE x,y ...
#rrggbb (where rr, gg and bb are hexadecimal values), then
this denotes a color for the representation in the Perl/Tk interface.
A prefix of F: denotes that the polyline should be treated as a
polygon and filled with a solid color. Note that the polygon is always
closed, but it is optional to make the first and last the same.
If the category matches forwardcat;backwardcat, then
forwardcat applies to the street in forward direction and
backwardcat applies to the street in backward direction. Either
forwardcat or backwardcat may be empty; in this case the
category applies only to the other direction.
Other predefined categories are listed below. The category should not
contain any spaces.
DRAFT (not yet in use!): Change the category format to:
<cat> = <onewaycat> ; <onewaycat> |
<onewaycat>
<onewaycat> = F=? <basiccat> (: <attrkey> (= <attrval>)?)*
<basiccat> = [^:;]+
<attrkey> = [^:;=]+
<attrval> = [^:;=]+
Changes for data files:
F:cat becomes F=cat
?::inwork becomes ?:inwork
F:SW|IMG:church.gif|ANCHOR:s becomes F=SW:IMG=church.gif:ANCHOR=s
Maybe:
#rrggbb becomes X:COLOR=#rrggbb
cat is now really attr. Reflect in description, maybe also in
variable names.
check-line-lengths of
data/Makefile).
If a line begins with a hash sign (#), then it is treated as a
comment. Empty lines are ignored.
Here's a list of special categories:
Used in files: strassen, landstrassen, landstrassen2.
Used in files: gesperrt.
:
as separator. Example: 0:30 for a penalty of 30 seconds. This is
only for point records.
category.
Used in files: radwege_exact.
Used in files: ubahn, sbahn, rbahn, ubahnhof, sbahnhof,
rbahnhof.
Qualität der Wege (Fahrbahnbeschaffenheit).
Used in files: quality_s, quality_l.
Andere, nicht fahrbahnbezogene Handicaps. Used in files: handicap_s,
handicap_l.
Used in files: comments.
Blocking.
Used in files: flaechen. Mostly prefixed with "F:", see above.
B for railroad crossings and F for pedestrian-only
traffic lights, otherwise not used.
Name fields denotes the elevation
in meters, the category is not used.
XXX To be continued
List of coordinates (x,y pairs)
v
Dudenstr. <TAB> H 9222,8787 8982,8781 8594,8773
^ ^
Street name Category (H = main street)
List of coordinates for a polygon
v
Viktoriapark <TAB> F:P 8554,8628 8551,8698 8577,8699 8579,8727
^ ^
Name of a park Category (F = area (polygon, Fläche),
P = park)
Slaven Rezic <slaven@rezic.de>
bbbike, Strassen.