I use postgresql and postgis to store OSM data. I use Arch Linux. I have used osm2postgres
to load my database with a small amount of OSM data. I have no difficulty in using the GRASS GUI to connect to the database, to list the tables therein and successfully query them using SQL [db.select]
. However, when I try to import the data, no matter how I write the command (starting with the examples in v.in.osm ) even if I use the dbname
connect string directly, with or without quotes, even if it is syntactically incorrect I get exactly the same message: ERROR: Required parameter <table> not set
. My database is on the same PC as GRASS. But using localhost:5432
it’s the same. The examples do not work for me, I don’t know why. Please help!
Solved. I was confused by the difference in the authentication between the [db. ]
commands and the v.in.osm
commands. The latter required the osmuser
to be in the pg_hba.conf
file the former could query the database without this. I was also led astray by the error message. It should be an authentication error not a parameter <table> not set
message. I am still struggling to import my data but have moved on from the above.