Files
Nominatim/docs/develop/osm2pgsql-tables.svg
2026-03-04 16:29:24 +01:00

82 lines
19 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="578px" preserveAspectRatio="none" style="width:480px;height:578px;background:#FFFFFF;" version="1.1" viewBox="0 0 480 578" width="480px" zoomAndPan="magnify"><defs><filter height="300%" id="fripxbwcliqpy" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#EEEEEE" filter="url(#fripxbwcliqpy)" height="73.2041" style="stroke:#383838;stroke-width:1.5;" width="124" x="10" y="32.5"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="110" x="17" y="47.3281">planet_osm_nodes</text><line style="stroke:#383838;stroke-width:1.0;" x1="10" x2="134" y1="52.8441" y2="52.8441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="9" x="18" y="65.5341">id</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="34" x="40" y="65.5341">BIGINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="35" x2="35" y1="52.8441" y2="70.4641"/><line style="stroke:#383838;stroke-width:1.0;" x1="10" x2="134" y1="70.4641" y2="70.4641"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="13" x="16" y="83.1541">lat</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="17" x="40" y="83.1541">INT</text><line style="stroke:#383838;stroke-width:1.0;" x1="35" x2="35" y1="70.4641" y2="88.0841"/><line style="stroke:#383838;stroke-width:1.0;" x1="10" x2="134" y1="88.0841" y2="88.0841"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="15" x="15" y="100.7741">lon</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="17" x="40" y="100.7741">INT</text><line style="stroke:#383838;stroke-width:1.0;" x1="35" x2="35" y1="88.0841" y2="105.7041"/><rect fill="#EEEEEE" filter="url(#fripxbwcliqpy)" height="73.2041" style="stroke:#383838;stroke-width:1.5;" width="118" x="185" y="32.5"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="104" x="192" y="47.3281">planet_osm_ways</text><line style="stroke:#383838;stroke-width:1.0;" x1="185" x2="303" y1="52.8441" y2="52.8441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="9" x="200" y="65.5341">id</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="34" x="229" y="65.5341">BIGINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="224" x2="224" y1="52.8441" y2="70.4641"/><line style="stroke:#383838;stroke-width:1.0;" x1="185" x2="303" y1="70.4641" y2="70.4641"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="29" x="190" y="83.1541">nodes</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="40" x="229" y="83.1541">BIGINT[]</text><line style="stroke:#383838;stroke-width:1.0;" x1="224" x2="224" y1="70.4641" y2="88.0841"/><line style="stroke:#383838;stroke-width:1.0;" x1="185" x2="303" y1="88.0841" y2="88.0841"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="21" x="194" y="100.7741">tags</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="30" x="229" y="100.7741">TEXT[]</text><line style="stroke:#383838;stroke-width:1.0;" x1="224" x2="224" y1="88.0841" y2="105.7041"/><rect fill="#EEEEEE" filter="url(#fripxbwcliqpy)" height="126.064" style="stroke:#383838;stroke-width:1.5;" width="112" x="354" y="7"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="96" x="362" y="21.8281">planet_osm_rels</text><line style="stroke:#383838;stroke-width:1.0;" x1="354" x2="466" y1="27.3441" y2="27.3441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="9" x="377" y="40.0341">id</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="34" x="414" y="40.0341">BIGINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="409" x2="409" y1="27.3441" y2="44.9641"/><line style="stroke:#383838;stroke-width:1.0;" x1="354" x2="466" y1="44.9641" y2="44.9641"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="25" x="369" y="57.6541">parts</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="40" x="414" y="57.6541">BIGINT[]</text><line style="stroke:#383838;stroke-width:1.0;" x1="409" x2="409" y1="44.9641" y2="62.5841"/><line style="stroke:#383838;stroke-width:1.0;" x1="354" x2="466" y1="62.5841" y2="62.5841"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="45" x="359" y="75.2741">members</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="30" x="414" y="75.2741">TEXT[]</text><line style="stroke:#383838;stroke-width:1.0;" x1="409" x2="409" y1="62.5841" y2="80.2041"/><line style="stroke:#383838;stroke-width:1.0;" x1="354" x2="466" y1="80.2041" y2="80.2041"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="21" x="371" y="92.8941">tags</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="30" x="414" y="92.8941">TEXT[]</text><line style="stroke:#383838;stroke-width:1.0;" x1="409" x2="409" y1="80.2041" y2="97.8241"/><line style="stroke:#383838;stroke-width:1.0;" x1="354" x2="466" y1="97.8241" y2="97.8241"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="35" x="364" y="110.5141">way_off</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="47" x="414" y="110.5141">SMALLINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="409" x2="409" y1="97.8241" y2="115.4441"/><line style="stroke:#383838;stroke-width:1.0;" x1="354" x2="466" y1="115.4441" y2="115.4441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="29" x="367" y="128.134">rel_off</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="47" x="414" y="128.134">SMALLINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="409" x2="409" y1="115.4441" y2="133.064"/><rect fill="#F8F8F8" filter="url(#fripxbwcliqpy)" height="178.924" style="stroke:#383838;stroke-width:1.5;" width="131" x="178.5" y="197"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="32" x="228" y="211.8281">place</text><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="217.3441" y2="217.3441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="45" x="189.5" y="230.0341">osm_type</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="37" x="250.5" y="230.0341">CHAR(1)</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="217.3441" y2="234.9641"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="234.9641" y2="234.9641"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="33" x="195.5" y="247.6541">osm_id</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="34" x="250.5" y="247.6541">BIGINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="234.9641" y2="252.5841"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="252.5841" y2="252.5841"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="24" x="200" y="265.2741">class</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="24" x="250.5" y="265.2741">TEXT</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="252.5841" y2="270.2041"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="270.2041" y2="270.2041"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="21" x="201.5" y="282.8941">type</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="24" x="250.5" y="282.8941">TEXT</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="270.2041" y2="287.8241"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="287.8241" y2="287.8241"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="27" x="198.5" y="300.5141">name</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="38" x="250.5" y="300.5141">HSTORE</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="287.8241" y2="305.4441"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="305.4441" y2="305.4441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="38" x="193" y="318.134">address</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="38" x="250.5" y="318.134">HSTORE</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="305.4441" y2="323.064"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="323.064" y2="323.064"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="46" x="189" y="335.754">extratags</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="38" x="250.5" y="335.754">HSTORE</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="323.064" y2="340.684"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="340.684" y2="340.684"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="57" x="183.5" y="353.374">admin_level</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="47" x="250.5" y="353.374">SMALLINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="340.684" y2="358.304"/><line style="stroke:#383838;stroke-width:1.0;" x1="178.5" x2="309.5" y1="358.304" y2="358.304"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="46" x="189" y="370.994">geometry</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="54" x="250.5" y="370.994">GEOMETRY</text><line style="stroke:#383838;stroke-width:1.0;" x1="245.5" x2="245.5" y1="358.304" y2="375.924"/><rect fill="#F8F8F8" filter="url(#fripxbwcliqpy)" height="126.064" style="stroke:#383838;stroke-width:1.5;" width="137" x="188.5" y="438"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="91" x="211.5" y="452.8281">place_postcode</text><line style="stroke:#383838;stroke-width:1.0;" x1="188.5" x2="325.5" y1="458.3441" y2="458.3441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="45" x="202.5" y="471.0341">osm_type</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="37" x="266.5" y="471.0341">CHAR(1)</text><line style="stroke:#383838;stroke-width:1.0;" x1="261.5" x2="261.5" y1="458.3441" y2="475.9641"/><line style="stroke:#383838;stroke-width:1.0;" x1="188.5" x2="325.5" y1="475.9641" y2="475.9641"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="33" x="208.5" y="488.6541">osm_id</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="34" x="266.5" y="488.6541">BIGINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="261.5" x2="261.5" y1="475.9641" y2="493.5841"/><line style="stroke:#383838;stroke-width:1.0;" x1="188.5" x2="325.5" y1="493.5841" y2="493.5841"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="44" x="203" y="506.2741">postcode</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="24" x="266.5" y="506.2741">TEXT</text><line style="stroke:#383838;stroke-width:1.0;" x1="261.5" x2="261.5" y1="493.5841" y2="511.2041"/><line style="stroke:#383838;stroke-width:1.0;" x1="188.5" x2="325.5" y1="511.2041" y2="511.2041"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="63" x="193.5" y="523.8941">country_code</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="24" x="266.5" y="523.8941">TEXT</text><line style="stroke:#383838;stroke-width:1.0;" x1="261.5" x2="261.5" y1="511.2041" y2="528.8241"/><line style="stroke:#383838;stroke-width:1.0;" x1="188.5" x2="325.5" y1="528.8241" y2="528.8241"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="40" x="205" y="541.5141">centroid</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="54" x="266.5" y="541.5141">GEOMETRY</text><line style="stroke:#383838;stroke-width:1.0;" x1="261.5" x2="261.5" y1="528.8241" y2="546.4441"/><line style="stroke:#383838;stroke-width:1.0;" x1="188.5" x2="325.5" y1="546.4441" y2="546.4441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="46" x="202" y="559.134">geometry</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="54" x="266.5" y="559.134">GEOMETRY</text><line style="stroke:#383838;stroke-width:1.0;" x1="261.5" x2="261.5" y1="546.4441" y2="564.064"/><rect fill="#F8F8F8" filter="url(#fripxbwcliqpy)" height="108.4441" style="stroke:#383838;stroke-width:1.5;" width="130" x="7" y="446.5"/><text fill="#000000" font-family="sans-serif" font-size="12" font-weight="bold" lengthAdjust="spacing" textLength="116" x="14" y="461.3281">place_interpolation</text><line style="stroke:#383838;stroke-width:1.0;" x1="7" x2="137" y1="466.8441" y2="466.8441"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="33" x="18.5" y="479.5341">osm_id</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="34" x="68" y="479.5341">BIGINT</text><line style="stroke:#383838;stroke-width:1.0;" x1="63" x2="63" y1="466.8441" y2="484.4641"/><line style="stroke:#383838;stroke-width:1.0;" x1="7" x2="137" y1="484.4641" y2="484.4641"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="21" x="24.5" y="497.1541">type</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="24" x="68" y="497.1541">TEXT</text><line style="stroke:#383838;stroke-width:1.0;" x1="63" x2="63" y1="484.4641" y2="502.0841"/><line style="stroke:#383838;stroke-width:1.0;" x1="7" x2="137" y1="502.0841" y2="502.0841"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="38" x="16" y="514.7741">address</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="38" x="68" y="514.7741">HSTORE</text><line style="stroke:#383838;stroke-width:1.0;" x1="63" x2="63" y1="502.0841" y2="519.7041"/><line style="stroke:#383838;stroke-width:1.0;" x1="7" x2="137" y1="519.7041" y2="519.7041"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="29" x="20.5" y="532.3941">nodes</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="40" x="68" y="532.3941">BIGINT[]</text><line style="stroke:#383838;stroke-width:1.0;" x1="63" x2="63" y1="519.7041" y2="537.3241"/><line style="stroke:#383838;stroke-width:1.0;" x1="7" x2="137" y1="537.3241" y2="537.3241"/><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="46" x="12" y="550.0141">geometry</text><text fill="#000000" font-family="sans-serif" font-size="10" lengthAdjust="spacing" textLength="54" x="68" y="550.0141">GEOMETRY</text><line style="stroke:#383838;stroke-width:1.0;" x1="63" x2="63" y1="537.3241" y2="554.9441"/><!--MD5=[cfd242390168b76ecd29e738a0804d67]
link planet_osm_nodes to planet_osm_ways--><!--MD5=[fa5350d6785809323ef22057335ae1c7]
reverse link planet_osm_nodes to planet_osm_ways--><path codeLine="61" d="M135,61 C158.2,61 160.8,79 184,79 " fill="none" id="planet_osm_nodes-backto-planet_osm_ways" style="stroke:#383838;stroke-width:1.0;"/><polygon fill="#383838" points="135,61,144,65,140,61,144,57,135,61" style="stroke:#383838;stroke-width:1.0;"/><!--MD5=[fb2ee53a59aef357360ab5aad89040fd]
link planet_osm_ways to planet_osm_rels--><!--MD5=[09a44a38c707cfce4bf3674282185755]
link planet_osm_ways to place--><!--MD5=[2b07d748f05c57171f9c6aea5ad38c21]
link place to place_postcode--><!--MD5=[ccfd2f1d31f2b4b50896f42c72525c7a]
link place to place_interpolation--><!--MD5=[7ca0b0769dc57c0aac11f92d7c6b2fab]
reverse link planet_osm_nodes to place_interpolation--><path codeLine="62" d="M137.17,65.61 C148.24,114.01 150.19,527 138,527 " fill="none" id="planet_osm_nodes-backto-place_interpolation" style="stroke:#383838;stroke-width:1.0;"/><polygon fill="#383838" points="135,61,135.2204,70.8464,137.1324,65.5225,142.4564,67.4345,135,61" style="stroke:#383838;stroke-width:1.0;"/><!--MD5=[cc2a969ff9d5063572e522976749f03d]
@startuml
skinparam monochrome true
skinparam ObjectFontStyle bold
map planet_osm_nodes #eee {
id => BIGINT
lat => INT
lon => INT
}
map planet_osm_ways #eee {
id => BIGINT
nodes => BIGINT[]
tags => TEXT[]
}
map planet_osm_rels #eee {
id => BIGINT
parts => BIGINT[]
members => TEXT[]
tags => TEXT[]
way_off => SMALLINT
rel_off => SMALLINT
}
map place {
osm_type => CHAR(1)
osm_id => BIGINT
class => TEXT
type => TEXT
name => HSTORE
address => HSTORE
extratags => HSTORE
admin_level => SMALLINT
geometry => GEOMETRY
}
map place_postcode {
osm_type => CHAR(1)
osm_id => BIGINT
postcode => TEXT
country_code => TEXT
centroid => GEOMETRY
geometry => GEOMETRY
}
map place_interpolation {
osm_id => BIGINT
type => TEXT
address => HSTORE
nodes => BIGINT[]
geometry => GEOMETRY
}
planet_osm_nodes -[hidden]> planet_osm_ways
planet_osm_ways -[hidden]> planet_osm_rels
planet_osm_ways -[hidden]-> place
place -[hidden]-> place_postcode
place -[hidden]-> place_interpolation
planet_osm_nodes::id <- planet_osm_ways::nodes
planet_osm_nodes::id <- place_interpolation::nodes
@enduml
PlantUML version 1.2021.12(Tue Oct 05 18:01:58 CEST 2021)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>