0

I'm using Osmosis to export the Postgis tables to .osm file.

I'm using the following command to generate the .osm file.

osmosis --read-pgsql host="localhost" database="pgsnapshot" user="postgres" password="postgres" --dataset-dump --write-xml file='output.osm"

It yields an empty osm file. The database which I'm using contains the following tables with no empty columns.

  • action
  • nodes_tags
  • nodes
  • relation_members
  • relations
  • relations_tag
  • way_tag
  • schema_info
  • users
  • way_nodes
  • ways

I've searched for the solution but mostly I'm getting search results on osm2pgsql. I want the opposite of the same.

geozelot
  • 517
  • 3
  • 13
Palak
  • 1
  • 3
  • What happens when you query your database with this for example: SELECT * FROM nodes LIMIT 1; – matthieun Oct 10 '18 at 16:31
  • All the tables(nodes, relations, users, ways, nodes_tags, relations_tag, way_tag) which are generated by executing the .sql files through osmosis have no record. – Palak Oct 11 '18 at 10:14
  • Do you mean that your tables are empty? In that case it could explain why osmosis cannot extract an osm file from it! – matthieun Oct 15 '18 at 16:16

0 Answers0