[OSM-dev] TIGER conversion ruby scripts (v0.4)
Dave Hansen
dave at sr71.net
Sat Jul 14 01:52:12 BST 2007
Changes from 0.3:
- Fixed lots of ways getting dropped (I was too aggressively reclaiming
objects that I thought I was done using)
- I used to keep hashes of arrays of ways with each name and tried to
find ways to glob together by searching. Trying to combine two ways
together turned out to be one of the CPU dominating parts. Now, it
indexes all ways by starting and ending node. Much more efficient
to find ways to join together.
- started including some tiger identifiers in the Node tags. This
should let us use the tiger data at a later date to add addressing
information.
Using the name-indexed method.
combine_fail: 956461
combine_success: 2612
Using the start/end node in a way method:
combine_fail: 6181
combine_success: 2669
If JOSM complains about running out of memory, increase the Java heap
size by running it like this:
java -Xmx1024M -jar josm-latest.jar tiger-file.osm.xml
See the README for detailed instructions.
http://sr71.net/~dave/osm/tiger/tiger-to-osm-0.4.tar.gz
-- Dave
More information about the dev
mailing list