これはosmdataをインポートする私の方法です:
private void importOSM(String osm){
OSMImporter importer = new OSMImporter(osm);
importer.setCharset(Charset.forName("UTF-8"));
try{
importer.importFile(graphDb,osm,false,5000,true);
importer.reIndex(graphDb,10000);
}catch(Exception e){
System.out.println("__________Import Error!! "+e.getMessage());
e.printStackTrace();
}
}
osmdata をインポートすると、次のようになります。
Mismatching vertices size for Polygon:Node[1799298]: 1 != 2
Mismatching vertices size for LineString:Node[2118494]: 14 != 23
Mismatching vertices size for Polygon:Node[1776324]: 1 != 2
Mismatching vertices size for Polygon:Node[1886154]: 1 != 2
Mismatching vertices size for Polygon:Node[2124799]: 1 != 6
Mismatching vertices size for LineString:Node[2207017]: 60 != 85
Mismatching vertices size for LineString:Node[2207587]: 45 != 154
Mismatching vertices size for LineString:Node[2213928]: 8 != 16
Mismatching vertices size for LineString:Node[2213939]: 8 != 16
Mismatching vertices size for LineString:Node[2212505]: 3 != 14
Mismatching vertices found 100 times
Mismatching vertices found 200 times
Mismatching vertices found 300 times
Mismatching vertices found 400 times
Mismatching vertices found 500 times
Mismatching vertices found 600 times
Mismatching vertices found 700 times
Mismatching vertices found 800 times
Mismatching vertices found 900 times
Mismatching vertices found 1000 times
Mismatching vertices found 1100 times
これは、インポートした osmdata が一部の抜粋であり、一部の道路が完全にインポートできないためだと思います。http://metro.teczno.com/#san-francisco (21 MB の bzip された XML OSM データ)から san-francisco.osm をインポートしました。私の質問は、私のコードやインポートしているデータに何か問題がありますか、それともこれは正常ですか?
挨拶