Gregory, you are probably better off doing the Java code, I think Craig has not updated the JRuby wrappers to the latest versions.
Do you have your example importing code somewhere? Would love to test it out and maybe adjust it. Otherwise, you should be able to use the OSMImporter in normal mode, see https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestOSMImport.java#L163 ? Still, I think there might be issues, that's why I would like to be able to recreate your import. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Wed, Nov 9, 2011 at 2:06 PM, grimace <[email protected]> wrote: > I'm new to neo4j, and neo4j-spatial. I've been able to import a small OSM > file using the java OSMImporter class and BatchInserter (based on the mvn > test code) but this blows up out-of-memory on larger files. In looking for > other methods I came across instructions for using jruby. I installed jruby > and neo4j-spatial. I tried to import an OSM file using jruby using these > instructions: > > > git clone [email protected]:craigtaverner/neo4j-spatial.rb.git > cd neo4j-spatial.rb/examples > jruby osm_import.rb map2.osm > ... > > > but when I got to the 1st import statement I got an error back: > > Error opening script file: > /home/gregm/Downloads/neo4j-spatial.rb/examples/osm_import.rb (No such file > or directory) > > I can find an 'osm_import' in the bin directory of this repository but I'm > not sure how to use it. I'm new to jruby ( ruby as well ) and may not have > installed correctly. I believe I did this: > > sudo jruby -S gem install neo4j-spatial > > and it seemed to install. If I run this command ( from the upper directory > in neo4j-spatial.rb ): > > jruby bin/osm_import examples/map2.osm > > I get this: > > > /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require': no such file to load -- > neo4j/spatial/jars/neo4j-spatial-0.6-SNAPSHOT > (LoadError) > from > /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > > It looks, to me, like the code has changed but the instructions haven't, but > I'm at a loss for how to resolve this. I'm just trying to import a larger > OSM file. Any ideas? > > > > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/osm-import-rb-tp3493463p3493463.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

