I am trying to deal with some osc (osm change) files, and put them into PostgreSQL database with Osmosis, but it seems that, Osmosis won't work with --read-xml-change and --tag-filter together. I have the following code:
(formatted code in order to be readable) Then the following error message comes:
How can I provide a pipe to make it run without errors or how can I apply filters and insert change file into database? without pipes and filters Osmosis were able to write osc files to the database I tried only with just read change file and convert it to osm and it also fails with this message:
Osmosis version is: 0.45-52-gd4e52fd-SNAPSHOT asked 11 Sep '17, 14:48 horvatha |
You cannot do what you are planning to do because the osc file does not contain enough information. For example, consider a motorway with three nodes that exists in the OSM database. Now I move these nodes to another continent. The osc file will contain the information that the nodes have moved, but it will not contain anything about the way (which is, in OSM's data model, unchanged, consisting now as before of the same three nodes). Your filter query would then fail to detect that the three nodes are actually relevant for your motorway subset and drop them. answered 11 Sep '17, 15:40 Frederik Ramm ♦ |