I want to import an OSM file into my PostGIS database using osm2pqsql. My input .osm file has around 300,000 nodes, but the planet_osm_point table ends up with only around 50,000 records. On closer inspection, it looks like only nodes with certain tags get imported. Nodes with just the ID and lat, lon don't get imported into the table (example given below)
<node id="1497891" lat="43.7268948" lon="-79.3299196"/>
If the node has additional tags, like <tag k="highway" v="traffic_signals"/> or <tag k="permissive_left_turn" v="n"/> it got imported fine
I was using the default style file, and my command was using
osm2pgsql -c -d databasename -U username -H localhost -S style_file_location osm_file_location
I tried looking through the manual, and maybe using hstore could help, but I couldn't figure it out
Edit: It looks like there's supposed to be a table called planet_osm_nodes that stores every node, but I don't see it. Planet_osm_point versus Planet_osm_nodes for querying places