Hi, I downloaded planet-latest.osm and I want to import data for Eastern Europe in a PostgreSQL database.
I tested the osmosis command for a small region and what I observed is that it imports all the changeset history. I find this information redundant for my application and I only want to import the most recent node from the changeset. The command I used: How can I do that and in what way will it affect my database in the future if I plan to update data using daily regular diffs. Thank you, asked 15 Apr '13, 23:33 raduzugravu |
The standard planet file does not include any history, and the "snapshot" schema used by the Osmosis `--write-pgsql`` task you mention does not have room for history information. You must be mistaken. answered 16 Apr '13, 10:56 Frederik Ramm ♦ Hi, Maybe I didn't make myself clear so I will try to give you an example.
Here are three different nodes from the area pointed above, extracted from planet.osm: node id="1270510177" version="3" timestamp="2011-08-05T22:00:21Z" uid="430115" user="Emistrac" changeset="8933229" lat="41.8941708" lon="12.4831246" If I execute a reverse search all 3 nodes will return same result. When I import this to a postgresql database it will create 3 different rows for each row. Is it normal?
(16 Apr '13, 11:35)
raduzugravu
1
They're three different nodes (3 different geographical items). To omit any of them would mean that your database is not complete. Also, what do you mean by "execute a reverse search" here?
(16 Apr '13, 11:59)
SomeoneElse ♦
This is what I mean.
(16 Apr '13, 12:40)
raduzugravu
In what way is that wrong? If I was at any of those three lat/long combinations I'd say that I was at that momument. What do you expect Nominatim to return for those lat/long combinations?
(16 Apr '13, 12:46)
SomeoneElse ♦
1
Did you look at the data? The first two nodes are part of this footway and the third one belongs to this building. These are three more or less independent nodes and each of them is useful. They don't have anything to do with a history.
(16 Apr '13, 12:53)
scai ♦
1
Thank you scai.
(16 Apr '13, 13:33)
raduzugravu
showing 5 of 6
show 1 more comments
|