Appendix B – G-NAF Data Model ============================= .. raw:: latex \pagebreak .. graphviz:: digraph G { fontname="ROBOTO" fontsize="10pt" node [fontname="ROBOTO" fontsize="8pt"] edge [fontname="ROBOTO" fontsize="8pt"] overlap = false rankdir=LR address_detail [shape=plain label=<
ADDRESS_DETAIL | |
PK | ADDRESS_DETAIL_PID: varchar (15) |
DATE_CREATED: date | |
DATE_LAST_MODIFIED: date | |
DATE_RETIRED: date | |
BUILDING_NAME: varchar (200) | |
LOT_NUMBER_PREFIX: varchar (2) | |
LOT_NUMBER: varchar (5) | |
LOT_NUMBER_SUFFIX: varchar (2) | |
FK | FLAT_TYPE_CODE: varchar (7) |
FLAT_NUMBER_PREFIX: varchar (2) | |
FLAT_NUMBER: number (5) | |
FLAT_NUMBER_SUFFIX: varchar (2) | |
FK | LEVEL_TYPE_CODE: varchar (4) |
LEVEL_NUMBER_PREFIX: varchar (2) | |
LEVEL_NUMBER: number (3) | |
LEVEL_NUMBER_SUFFIX: varchar (2) | |
NUMBER_FIRST_PREFIX: varchar (3) | |
NUMBER_FIRST: number (6) | |
NUMBER_FIRST_SUFFIX: varchar (2) | |
NUMBER_LAST_PREFIX: varchar (2) | |
NUMBER_LAST: number (6) | |
NUMBER_LAST_SUFFIX: varchar (2) | |
FK | STREET_LOCALITY_PID: varchar (15) |
LOCATION_DESCRIPTION: varchar (2) | |
LOCALITY_PID: varchar (2) | |
ALIAS_PRINCIPAL: char (1) | |
POSTCODE: varchar (4) | |
PRIVATE_STREET: varchar (75) | |
LEGAL_PARCEL_ID: varchar (20) | |
CONFIDENCE: number (1) | |
ADDRESS_SITE_PID: varchar (15) | |
FK | LEVEL_GEOCODED_CODE: number (2) |
PROPERTY_PID: varchar (15) | |
GNAF_PROPERTY_PID: varchar (15) | |
PRIMARY_SECONDARY: varchar (1) |
ADDRESS_TYPE_AUT | |
PK | CODE: varchar (8) |
NAME: varchar (50) | |
DESCRIPTION: varchar (30) |
GEOCODED_LEVEL_TYPE_AUT | |
PK | CODE: varchar (2) |
NAME: varchar (50) | |
DESCRIPTION: varchar (70) |
FLAT_TYPE_AUT | |
PK | CODE: varchar (7) |
NAME: varchar (50) | |
DESCRIPTION: varchar (30) |
LEVEL_TYPE_AUT | |
PK | CODE: varchar (4) |
NAME: varchar (50) | |
DESCRIPTION: varchar (30) |
ADDRESS_SITE | |
PK | ADDRESS_SITE_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | ADDRESS_TYPE: varchar (8) |
ADDRESS_ALIAS: varchar (200) |
ADDRESS_ALIAS | |
PK | ADDRESS_ALIAS_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | PRINCIPAL_PID: varchar (15) |
FK | ALIAS_PID: varchar (15) |
FK | ALIAS_TYPE_CODE: varchar (10) |
ALIAS_COMMENT: varchar (200) |
ADDRESS_ALIAS_TYPE_AUT | |
PK | CODE: varchar (10) |
NAME: varchar (50) | |
DESCRIPTION: varchar (30) |
LOCALITY | |
PK | LOCALITY_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | LOCALITY_NAME: varchar (100) |
FK | PRIMARY_POSTCODE: varchar (4) |
LOCALITY_CLASS_CODE: char (1) | |
STATE_PID: varchar (15) | |
GNAF_LOCALITY_PID: varchar (15) | |
GNAF_RELIABILITY_CODE: varchar (1) |
LOCALITY_CLASS_AUT | |
PK | CODE: char (1) |
NAME: varchar (50) | |
DESCRIPTION: varchar (200) |
STREET_LOCALITY | |
PK | STREET_LOCALITY_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | STREET_CLASS_CODE: char (1) |
STREET_NAME: varchar (100) | |
FK | STREET_TYPE_CODE: varchar (15) |
FK | STREET_SUFFIX_CODE: varchar (15) |
FK | LOCALITY_PID: varchar (15) |
GNAF_STREET_PID: varchar (15) | |
GNAF_STREET_CONFIDENCE: number (1) | |
FK | GNAF_RELIABILITY_CODE: varchar (1) |
STREET_CLASS_AUT | |
PK | CODE: char (1) |
NAME: varchar (50) | |
DESCRIPTION: varchar (200) |
STREET_TYPE_AUT | |
PK | CODE: char (1) |
NAME: varchar (50) | |
DESCRIPTION: varchar (15) |
STREET_LOCALITY_ALIAS | |
PK | STREET_LOCALITY_ALIAS_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | STREET_LOCALITY_PID: varchar (15) |
STREET_NAME: varchar (100) | |
FK | STREET_TYPE_CODE: varchar (15) |
FK | STREET_SUFFIX_CODE: varchar (15) |
FK | ALIAS_TYPE_CODE: varchar (10) |
STREET_SUFFIX_AUT | |
PK | CODE: varchar (15) |
NAME: varchar (50) | |
DESCRIPTION: varchar (30) |
STREET_LOCALITY_ALIAS_TYPE_AUT | |
PK | CODE: char (1) |
NAME: varchar (50) | |
DESCRIPTION: varchar (200) |
STREET_LOCALITY_POINT | |
PK | STREET_LOCALITY_POINT_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | STREET_LOCALITY_PID: varchar (15) |
BOUNDARY_EXTENT: number (7) | |
PLAINIMETRIC_ACCURACY: number (12) | |
GEOMETRY: Point | |
LONGITUDE: varchar (10,8) | |
LATITUDE: number (10,8) |
LOCALITY_NEIGHBOUR | |
PK | LOCALITY_NEIGHBOUR_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | LOCALITY_PID: varchar (15) |
FK | NEIGHBOUR_LOCALITY_PID: varchar (15) |
STATE | |
PK | STATE_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | STATE_NAME: varchar (50) |
FK | STATE_ABBREVIATION: varchar (3) |
LOCALITY_ALIAS | |
PK | LOCALITY_ALIAS_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | LOCALITY_PID: varchar (15) |
NAME: varchar (100) | |
POSTCODE: varchar (4) | |
ALIAS_TYPE_CODE: varchar (10) | |
FK | STATE_PID: varchar (15) |
LOCALITY_ALIAS_TYPE_AUT | |
PK | CODE: char (10) |
NAME: varchar (50) | |
DESCRIPTION: varchar (100) |
LOCALITY_POINT | |
PK | LOCALITY_POINT_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | LOCALITY_PID: varchar (15) |
FK | PLAINIMETRIC_ACCURACY: number (12) |
FK | GEOMETRY: Point |
FK | LONGITUDE: varchar (10,8) |
LATITUDE: number (10,8) |
ADDRESS_DEFAULT_GEOCODE | |
PK | ADDRESS_DEFAULT_GEOCODE_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | ADDRESS_DETAIL_PID: varchar (15) |
FK | GEOCODE_TYPE_CODE: varchar (4) |
FK | GEOMETRY: Point |
FK | LONGITUDE: varchar (11,8) |
LATITUDE: number (10,8) |
GEOCODE_TYPE_AUT | |
PK | CODE: varchar (4) |
NAME: varchar (50) | |
DESCRIPTION: varchar (250) |
ADDRESS_SITE_GEOCODE | |
PK | ADDRESS_SITE_GEOCODE_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | ADDRESS_SITE_PID: varchar (15) |
GEOCODE_SITE_NAME: varchar (200) | |
GEOCODE_SITE_DESCRIPTION: varchar (45) | |
FK | GEOCODE_TYPE_CODE: varchar (4) |
FK | RELIABILITY_CODE: varchar (1) |
FK | BOUNDARY_EXTENT: number (1) |
FK | PLAINIMETRIC_ACCURACY: number (12) |
FK | ELEVATION: number (7) |
FK | GEOMETRY: Point |
FK | LONGITUDE: varchar (11,8) |
LATITUDE: number (10,8) |
MB_MATCH_CODE_AUT | |
PK | CODE: varchar (15) |
NAME: varchar (100) | |
DESCRIPTION: varchar (250) |
ADDRESS_MESH_BLOCK_2016 | |
PK | ADDRESS_MESH_BLOCK_2016_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | ADDRESS_DETAIL_PID: varchar (15) |
FK | MB_2016_PID: varchar (15) |
FK | MB_MATCH_CODE: varchar (15) |
ADDRESS_MESH_BLOCK_2021 | |
PK | ADDRESS_MESH_BLOCK_2021_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | ADDRESS_DETAIL_PID: varchar (15) |
FK | MB_2021_PID: varchar (15) |
FK | MB_MATCH_CODE: varchar (15) |
MB_2016 | |
PK | MB_2016_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | MB_2016_CODE: varchar (15) |
MB_2021 | |
PK | MB_2021_PID: varchar (15) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | MB_2021_CODE: varchar (15) |
ADDRESS_FEATURE | |
PK | ADDRESS_FEATURE_ID: varchar (16) |
DATE_ADDRESS_DETAIL_CREATED: date | |
DATE_ADDRESS_DETAIL_RETIRED: date | |
FK | ADDRESS_DETAIL_PID: varchar (15) |
FK | ADDRESS_CHANGE_TYPE: varchar (50) |
FK | ADDRESS_FEATURE_PID: varchar (16) |
ADDRESS_CHANGE_TYPE_AUT | |
PK | CODE: varchar (50) |
NAME: varchar (100) | |
DESCRIPTION: varchar (500) |
PRIMARY_SECONDARY | |
PK | PRIMARY_SECONDARY_PID: varchar (16) |
DATE_CREATED: date | |
DATE_RETIRED: date | |
FK | PRIMARY_PID: varchar (15) |
FK | SECONDARY_PID: varchar (15) |
FK | PS_JOIN_TYPE_CODE: number (2) |
PS_JOIN_TYPE_COMMENT: varchar (500) |
PS_JOIN_TYPE_AUT | |
PK | CODE: varchar (2) |
NAME: varchar (50) | |
DESCRIPTION: varchar (500) |
Spatial Attribute Table | |
Textual Attribute Table | |
Authority Code Table |
Zero or Many |
One or Many |
Zero or One |
One |