使用Java和neo4j spatial导入OSM文件后,Neo.ClientError.Procedure.procedureCall失败
我不熟悉neo4j和neo4j空间。我想导入从中导出的OSM文件。为此,我使用以下代码。我能找到的所有例子都不适用于我,或者是不完整的。因此,我尝试获得一个编译以下内容的版本:使用Java和neo4j spatial导入OSM文件后,Neo.ClientError.Procedure.procedureCall失败,neo4j,cypher,gis,openstreetmap,neo4j-spatial,Neo4j,Cypher,Gis,Openstreetmap,Neo4j Spatial,我不熟悉neo4j和neo4j空间。我想导入从中导出的OSM文件。为此,我使用以下代码。我能找到的所有例子都不适用于我,或者是不完整的。因此,我尝试获得一个编译以下内容的版本: try { OSMImporter importer = new OSMImporter("osmGauKlein"); Map<String, String> config = new HashMap<String, String>(); c
try {
OSMImporter importer = new OSMImporter("osmGauKlein");
Map<String, String> config = new HashMap<String, String>();
config.put("neostore.nodestore.db.mapped_memory", "90M" );
config.put("dump_configuration", "true");
config.put("use_memory_mapped_buffers", "true");
BatchInserter batchInserter = BatchInserters.inserter(dbf, config);
importer.importFile(batchInserter, "osm/map.osm", false);
batchInserter.shutdown();
GraphDatabaseService dbs = dbFactory.newEmbeddedDatabase(dbf);
importer.reIndex(dbs, 10000);
dbs.shutdown();
} catch (IOException | XMLStreamException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
它只返回以下错误:
Failed to invoke procedure `spatial.layers`: Caused by: java.lang.NoClassDefFoundError: org/geotools/filter/text/cql2/CQLException
其他一些程序仍在正常工作
call spatial.layerTypes
这里有什么问题?
在尝试直接使用cyper导入OSM时,我使用了:
call spatial.importOSM("C:/Users/Steffen/workspaceEclipse/NDBS Neo4J/osm/map.osm")
但这导致了另一个错误
Failed to invoke procedure `spatial.importOSM`: Caused by: java.util.NoSuchElementException: More than one element in org.neo4j.kernel.impl.coreapi.LegacyIndexProxy$1@7ce40edf. First element is 'Node[50]' and the second element is 'Node[1206]'
一些信息:
Windows 10 64位,
neo4j 3.2.1,
neo4j-spatial-0.24-neo4j-3.1.1-server-plugin
Failed to invoke procedure `spatial.importOSM`: Caused by: java.util.NoSuchElementException: More than one element in org.neo4j.kernel.impl.coreapi.LegacyIndexProxy$1@7ce40edf. First element is 'Node[50]' and the second element is 'Node[1206]'