Hi Marco,
I feel the need to add a disclaimer: you got further then I have tested
until now. All I tested with were simple hand-written osm files
containing three or four nodes and a single way, not even getting near
to a planet extract.
Relations will be simply written to the db, there's no special handling
for them but they wont do any harm either.
The visibility-flag is a problem I'm aware of. It won't be hard to add
another column to the ways table, but it's a bigger issue to get it
through the osmosis pipeline.
I was not able to take a deep look on the planet history file, so I
don't have a clue if it countains a visible-flag but I'd guess so.
The default xml reader tasks ignore the flag and the default domain
objects (Node, Way, & Co.) don't have a field for it. But I already
implemented my own domain class - MinorWay - which adds a new property
to the way (the minor version number), so that it might be possible to
to this also with the Node class. I would need to extend the xml reader
tasks and offer my own --read-history-xml. It would then still be
possible to use the default --read-xml tasks but then the visibility
will get thrown away.
Peter
Am 07.09.2010 13:41, schrieb Marco Lechner - FOSSGIS e.V.:
Hi Peter, hi everybody,
I did some tests with the history-plugin and was able to import an area
of interest (AOI) of the full-planet.dump by filtering it through a
bounding-polygon. It worked without problems (I had to remove the
relation s of course, because this is not supported yet).
How can I find out if an object (point, way) is "visible" = marked as
deleted? By importing an AOI of a planet-file this information is not
necessary, because just the currently visible objects are imported (only
these are part of the planet-file), but if it comes to the history-dump
there might be nodes that were visible and have been deleted in a more
recent version. How could we handle this information? I guess this
information is not available in the history-dump, is it? What happens to
"deleted" objects while creating the full-history.dump? Are they
ignored? Is just the "invisible" version ignored? Is the "invisible"
version in the history-dump but you can not reproduce the information?
Marco
_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev