Hi, with the pgsql2shp tool you can dump your postgis db in a shapefile and you should be able to import it in Neo4j Spatial in the following way:
String shpPath = SHP_DIR + File.separator + layerName; ShapefileImporter importer = new ShapefileImporter(graphDb(), new NullListener(), commitInterval); importer.importFile(shpPath, layerName); Best Regards Andreas Am 12.08.2011 11:10, schrieb chen zhao: > Hi, > > I very interested in neo4j spatial . but I do not know how to import the > spatial data. > > My data are stored in postgis. I read the document " > http://wiki.neo4j.org/content/Spatial_Data_Storage" and " > http://wiki.neo4j.org/content/Importing_and_Exporting_Spatial_Data",but I > yet do not know to to import data from postgis or import shapfiles. > > Could you provide some detail information? > > Please advice. > > zhao > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user