Skip to content

Commit 8e8bbaa

Browse files
committed
Add recommended types to columns for extra attributes
By using non-text types the columns are small, indexes are smaller, and inequality and range compairsons are possible. osm_changeset was, oddly, missing.
1 parent ed86d63 commit 8e8bbaa

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

default.style

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@
6868
# way_area - datatype real. The area of the way, in the units of the projection
6969
# (e.g. square mercator meters). Only applies to areas
7070
#
71-
# osm_user, osm_uid, osm_version, osm_timestamp - datatype text. Used with the
72-
# --extra-attributes option to include metadata in the database. If importing
73-
# with both --hstore and --extra-attributes the meta-data will end up in the
74-
# tags hstore column regardless of the style file.
71+
# osm_user - datatype text
72+
# osm_uid - datatype integer
73+
# osm_version - datatype integer
74+
# osm_changeset - datatype integer
75+
# osm_timestamp - datatype timestamptz(0).
76+
# Used with the --extra-attributes option to include metadata in the database.
77+
# If importing with both --hstore and --extra-attributes the meta-data will
78+
# end up in the tags hstore column regardless of the style file.
7579

7680
# OsmType Tag DataType Flags
7781
node,way access text linear

0 commit comments

Comments
 (0)