osm2po to import whole planet

المشرف العام

Administrator
طاقم الإدارة
My point is to use pgrouting with planet data. osm2pgrouting fails at importing whole planet, so I tried osm2po. Looked fine, it generated sql file in around 2,5h. After importing it to the db though I found there are many ways excluded from the db. Looking closer at osm2po logs:

INFO 46,421,095 of 235,414,299 ways extracted - 25,018M So I commented out every wtr.finalMask entry in osm2po.config file. It helped a bit:

INFO 74,660,756 of 235,414,299 ways extracted - 15,761M but still there are many ways missing. So I uncommented this one line:

disablePreFilter = true But then right before way extracting I got this:

INFO 2,362,909,765 of 2,362,909,765 nodes extracted - 29,114M FATAL Exception at Thu Jul 02 07:34:50 CEST 2015- 8,932M Message: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -2147483648 Class: java.lang.RuntimeException Stacktrace: de.cm.osm2po.converter.OsmXmlParser.parse(OsmXmlParser.java:83) de.cm.osm2po.Main.runTiler(Main.java:214) de.cm.osm2po.Main.main(Main.java:159) After reading all the answers here I understand osm2po doesn't extract ways with tags it doesn't know. Do I understand correctly that disabling prefilter should extract all the ways? If so, is there any way to configure osm2po to build sql file with all the ways from osm?



أكثر...
 
أعلى