Appendix A - Postcode Boundaries Data Model
===========================================
.. graphviz::
digraph {
fontname="ROBOTO" fontsize="10pt"
node [fontname="ROBOTO" fontsize="8pt"]
edge [fontname="ROBOTO" fontsize="8pt"]
rankdir=LR
ranksep=0.75
nodesep=0.75
subgraph cluster_postcode { label="Postcode Boundaries"
graph[style="dashed,rounded" color="#EA6B66"]
postcode_class_aut [shape=plain
label=<
POSTCODE_CLASS_AUT |
PK |
CODE: varchar (1) |
|
NAME: varchar (50) |
|
DESCRIPTION: varchar (200) |
>];
postcode [shape=plain
label=<
POSTCODE |
PK |
POSTCODE_PID: varchar (15) |
|
DATE_CREATED: date |
|
DATE_RETIRED: date |
FK |
POSTCODE_CLASS_CODE: varchar (1) |
|
POSTCODE: varchar (4) |
FK |
STATE_PID: varchar (15) |
>];
postcode_polygon [shape=plain
label=<
POSTCODE_POLYGON |
PK |
POSTCODE_POLYGON_PID: varchar (15) |
|
DATE_CREATED: date |
|
DATE_RETIRED: date |
FK |
POSTCODE_PID: varchar (15) |
|
GEOMETRY : Polygon |
>];
postcode_point [shape=plain
label=<
POSTCODE_POINT |
PK |
POSTCODE_POINT_PID: varchar (15) |
|
DATE_CREATED: date |
|
DATE_RETIRED: date |
FK |
POSTCODE_PID: varchar (15) |
|
GEOMETRY : Point |
>];
locality_postcode [shape=plain
label=<
LOCALITY_POSTCODE |
PK |
LOCALITY_POSTCODE_PID: varchar (15) |
|
DATE_CREATED: date |
|
DATE_RETIRED: date |
FK |
LOCALITY_PID: varchar (15) |
FK |
POSTCODE_PID: varchar (15) |
>];
locality_postcode -> postcode[arrowhead=nonetee dir=both arrowtail=crownoneotee ]
postcode -> postcode_class_aut[arrowhead=nonetee dir=both arrowtail=crownoneodot ]
postcode_point -> postcode[arrowhead=nonetee dir=both arrowtail=crownoneodot ]
postcode_polygon -> postcode[arrowhead=noneteen dir=both arrowtail=crownoneodot ]
{rank=same; postcode_class_aut; postcode; locality_postcode;}
}
subgraph cluster_localities { label="Localities"
graph[style="dashed,rounded" color="#7EA6E0"]
localities [shape=plain
label=<
localities |
PK |
locality_polygon_pid: varchar (15) |
FK |
locality_pid: varchar (15) |
|
date_created: date |
|
locality_name: varchar (75) |
|
locality_class: varchar (20) |
|
state: varchar (3) |
|
geometry: Polygon |
>];
}
subgraph cluster_state {label="State Boundaries"
graph[style="dashed,rounded" color="#7EA6E0"]
state [shape=plain
label=<
STATE |
PK |
STATE_PID: varchar (15) |
|
DATE_CREATED: date |
|
DATE_RETIRED: date |
|
STATE_NAME: varchar (50) |
|
STATE_ABBREVIATION: varchar (3) |
>];
}
subgraph cluster_legend {
graph[style="" label="Legend" ]
legend [shape=plain
label=<
|
Spatial Attribute Table |
|
Textual Attribute Table |
|
Authority Code Table |
>]
}
locality_postcode -> localities[arrowhead=crownoneodot dir=both arrowtail=crownonetee ]
postcode -> state[arrowhead=nonetee dir=both arrowtail=crownoneodot ]
}