[OSM-dev] Import error using osm2pgsql in slim mode
Frederik Ramm
frederik at remote.org
Thu Jan 21 21:54:23 GMT 2010
Hi,
Brett Henderson wrote:
> If you use the latest SVN version it will detect if multiple versions of
> an entity exist and throw an error in the --apply-change task. I'll try
> to do another official release of Osmosis over the next day or two with
> this change included.
Just for laughs - and wonder if you can come up with something better? -
this is what I did to remove the duplicate objects from an existing OSM
file named "faulty.osm":
echo "<osm></osm>" > empty.osm
osmosis --rx faulty.osm --rx empty.osm --dc --sort-change-0.6 --simc
--wxc good.osc
osmosis --rxc good.osc --rx empty.osm --ac --wx good.osm
(The two osmosis steps could be written as one but that would probably
make it more confusing.)
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the dev
mailing list