neo4j-spatial 0.0.6-java → 0.0.7-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{examples/osm_import.rb → bin/import_layer} +11 -4
- data/bin/osm_import +11 -4
- data/bin/shp_import +36 -0
- data/examples/db/active_tx_log +1 -0
- data/examples/db/index.db +0 -0
- data/examples/db/index/lucene-store.db +0 -0
- data/examples/db/index/lucene.log.active +0 -0
- data/examples/db/index/lucene/node/changeset/_1o.fdt +0 -0
- data/examples/db/index/lucene/node/changeset/_1o.fdx +0 -0
- data/examples/db/index/lucene/node/changeset/_1o.fnm +1 -0
- data/examples/db/index/lucene/node/changeset/_1o.frq +1 -0
- data/examples/db/index/lucene/node/changeset/_1o.nrm +1 -0
- data/examples/db/index/lucene/node/changeset/_1o.prx +0 -0
- data/examples/db/index/lucene/node/changeset/_1o.tii +0 -0
- data/examples/db/index/lucene/node/changeset/_1o.tis +0 -0
- data/examples/db/index/lucene/node/changeset/segments.gen +0 -0
- data/examples/db/index/lucene/node/changeset/segments_2 +0 -0
- data/examples/db/index/lucene/node/node/_0.cfs +0 -0
- data/examples/db/index/lucene/node/node/segments.gen +0 -0
- data/examples/db/index/lucene/node/node/segments_2 +0 -0
- data/examples/db/index/lucene/node/relation/_0.cfs +0 -0
- data/examples/db/index/lucene/node/relation/_0.cfx +0 -0
- data/examples/db/index/lucene/node/relation/segments.gen +0 -0
- data/examples/db/index/lucene/node/relation/segments_2 +0 -0
- data/examples/db/index/lucene/node/user/_d.fdt +0 -0
- data/examples/db/index/lucene/node/user/_d.fdx +0 -0
- data/examples/db/index/lucene/node/user/_d.fnm +1 -0
- data/examples/db/index/lucene/node/user/_d.frq +1 -0
- data/examples/db/index/lucene/node/user/_d.nrm +1 -0
- data/examples/db/index/lucene/node/user/_d.prx +0 -0
- data/examples/db/index/lucene/node/user/_d.tii +0 -0
- data/examples/db/index/lucene/node/user/_d.tis +0 -0
- data/examples/db/index/lucene/node/user/segments.gen +0 -0
- data/examples/db/index/lucene/node/user/segments_2 +0 -0
- data/examples/db/index/lucene/node/way/_0.cfs +0 -0
- data/examples/db/index/lucene/node/way/segments.gen +0 -0
- data/examples/db/index/lucene/node/way/segments_2 +0 -0
- data/examples/db/lucene-fulltext/lucene-store.db +0 -0
- data/examples/db/lucene-fulltext/lucene.log.active +0 -0
- data/examples/db/lucene/lucene-store.db +0 -0
- data/examples/db/lucene/lucene.log.active +0 -0
- data/examples/db/messages.log +308 -0
- data/examples/db/neostore +0 -0
- data/examples/db/neostore.id +0 -0
- data/examples/db/neostore.nodestore.db +0 -0
- data/examples/db/neostore.nodestore.db.id +0 -0
- data/examples/db/neostore.propertystore.db +0 -0
- data/examples/db/neostore.propertystore.db.arrays +0 -0
- data/examples/db/neostore.propertystore.db.arrays.id +0 -0
- data/examples/db/neostore.propertystore.db.id +0 -0
- data/examples/db/neostore.propertystore.db.index +0 -0
- data/examples/db/neostore.propertystore.db.index.id +0 -0
- data/examples/db/neostore.propertystore.db.index.keys +0 -0
- data/examples/db/neostore.propertystore.db.index.keys.id +0 -0
- data/examples/db/neostore.propertystore.db.strings +0 -0
- data/examples/db/neostore.propertystore.db.strings.id +0 -0
- data/examples/db/neostore.relationshipstore.db +0 -0
- data/examples/db/neostore.relationshipstore.db.id +0 -0
- data/examples/db/neostore.relationshiptypestore.db +0 -0
- data/examples/db/neostore.relationshiptypestore.db.id +0 -0
- data/examples/db/neostore.relationshiptypestore.db.names +0 -0
- data/examples/db/neostore.relationshiptypestore.db.names.id +0 -0
- data/examples/db/nioneo_logical.log.active +0 -0
- data/examples/db/tm_tx_log.1 +0 -0
- data/examples/import_layer.rb +36 -0
- data/examples/import_layer.rb~ +36 -0
- data/lib/neo4j/spatial.rb +1 -1
- data/lib/neo4j/spatial/{shapefile.rb → shp.rb} +11 -8
- data/lib/neo4j/spatial/version.rb +1 -1
- metadata +180 -122
- data/lib/neo4j/spatial/version.rb~ +0 -5
@@ -10,11 +10,17 @@ require 'neo4j/spatial/cmd'
|
|
10
10
|
require 'fileutils'
|
11
11
|
|
12
12
|
$files = Neo4j::Spatial::Cmd.args
|
13
|
+
$script = $0.split(/[\\\/]+/)[-1].gsub(/\.rb$/,'')
|
14
|
+
$formats = [:shp, :osm]
|
15
|
+
$formats.each do |f|
|
16
|
+
$format = f if($0 =~ /#{f}/)
|
17
|
+
end
|
13
18
|
|
14
|
-
if $help || $files.length < 1
|
15
|
-
puts "usage:
|
19
|
+
if $help || $files.length < 1 || $format.nil?
|
20
|
+
puts "usage: #{$script} <-d> <-D storage_path> #{$format ? "file.#{$format}" : "<-F format> file"}"
|
16
21
|
puts "\t-d\tDelete database first"
|
17
22
|
puts "\t-D\tUse specified database location"
|
23
|
+
puts "\t-F\tImport specified format (#{$formats.join(', ')})" unless($format)
|
18
24
|
exit
|
19
25
|
end
|
20
26
|
|
@@ -23,7 +29,8 @@ if $delete
|
|
23
29
|
FileUtils.rm_rf Neo4j::Config[:storage_path]
|
24
30
|
end
|
25
31
|
|
32
|
+
importer = eval "Neo4j::Spatial::#{$format.to_s.upcase}Importer.new"
|
33
|
+
|
26
34
|
$files.each do |file|
|
27
|
-
|
28
|
-
osm_importer.import file
|
35
|
+
importer.import file
|
29
36
|
end
|
data/bin/osm_import
CHANGED
@@ -10,11 +10,17 @@ require 'neo4j/spatial/cmd'
|
|
10
10
|
require 'fileutils'
|
11
11
|
|
12
12
|
$files = Neo4j::Spatial::Cmd.args
|
13
|
+
$script = $0.split(/[\\\/]+/)[-1].gsub(/\.rb$/,'')
|
14
|
+
$formats = [:shp, :osm]
|
15
|
+
$formats.each do |f|
|
16
|
+
$format = f if($0 =~ /#{f}/)
|
17
|
+
end
|
13
18
|
|
14
|
-
if $help || $files.length < 1
|
15
|
-
puts "usage:
|
19
|
+
if $help || $files.length < 1 || $format.nil?
|
20
|
+
puts "usage: #{$script} <-d> <-D storage_path> #{$format ? "file.#{$format}" : "<-F format> file"}"
|
16
21
|
puts "\t-d\tDelete database first"
|
17
22
|
puts "\t-D\tUse specified database location"
|
23
|
+
puts "\t-F\tImport specified format (#{$formats.join(', ')})" unless($format)
|
18
24
|
exit
|
19
25
|
end
|
20
26
|
|
@@ -23,7 +29,8 @@ if $delete
|
|
23
29
|
FileUtils.rm_rf Neo4j::Config[:storage_path]
|
24
30
|
end
|
25
31
|
|
32
|
+
importer = eval "Neo4j::Spatial::#{$format.to_s.upcase}Importer.new"
|
33
|
+
|
26
34
|
$files.each do |file|
|
27
|
-
|
28
|
-
osm_importer.import file
|
35
|
+
importer.import file
|
29
36
|
end
|
data/bin/shp_import
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
|
3
|
+
# useful if being run inside a source code checkout
|
4
|
+
$: << 'lib'
|
5
|
+
$: << '../lib'
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'neo4j/spatial'
|
9
|
+
require 'neo4j/spatial/cmd'
|
10
|
+
require 'fileutils'
|
11
|
+
|
12
|
+
$files = Neo4j::Spatial::Cmd.args
|
13
|
+
$script = $0.split(/[\\\/]+/)[-1].gsub(/\.rb$/,'')
|
14
|
+
$formats = [:shp, :osm]
|
15
|
+
$formats.each do |f|
|
16
|
+
$format = f if($0 =~ /#{f}/)
|
17
|
+
end
|
18
|
+
|
19
|
+
if $help || $files.length < 1 || $format.nil?
|
20
|
+
puts "usage: #{$script} <-d> <-D storage_path> #{$format ? "file.#{$format}" : "<-F format> file"}"
|
21
|
+
puts "\t-d\tDelete database first"
|
22
|
+
puts "\t-D\tUse specified database location"
|
23
|
+
puts "\t-F\tImport specified format (#{$formats.join(', ')})" unless($format)
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
|
27
|
+
if $delete
|
28
|
+
puts "Deleting previous database #{Neo4j::Config[:storage_path]}"
|
29
|
+
FileUtils.rm_rf Neo4j::Config[:storage_path]
|
30
|
+
end
|
31
|
+
|
32
|
+
importer = eval "Neo4j::Spatial::#{$format.to_s.upcase}Importer.new"
|
33
|
+
|
34
|
+
$files.each do |file|
|
35
|
+
importer.import file
|
36
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
tm_tx_log.1
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
����_id_ changeset
|
@@ -0,0 +1 @@
|
|
1
|
+
3579;=?ACEGIK
|
@@ -0,0 +1 @@
|
|
1
|
+
NRM�||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
����_id_uid
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
NRM�||||||||||||||||||||||||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,308 @@
|
|
1
|
+
Wed Apr 13 18:40:36 CEST 2011: Creating new db @ /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/neostore
|
2
|
+
Wed Apr 13 18:40:36 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log.1] clean empty log, version=0
|
3
|
+
Wed Apr 13 18:40:37 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log.1] clean empty log, version=0
|
4
|
+
Wed Apr 13 18:40:37 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log.1] clean empty log, version=0
|
5
|
+
Wed Apr 13 18:40:37 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log.1] clean empty log, version=0
|
6
|
+
Wed Apr 13 18:40:37 CEST 2011: TM new log: tm_tx_log.1
|
7
|
+
Wed Apr 13 18:40:37 CEST 2011: --- CONFIGURATION START ---
|
8
|
+
Wed Apr 13 18:40:37 CEST 2011: Physical mem: 2517MB, Heap size: 483MB
|
9
|
+
Wed Apr 13 18:40:37 CEST 2011: Kernel version: Neo4j - Graph Database Kernel 1.3.M03
|
10
|
+
Wed Apr 13 18:40:37 CEST 2011: Neo4j - Graph Database Kernel 1.3.M03
|
11
|
+
Wed Apr 13 18:40:37 CEST 2011: Operating System: Linux; version: 2.6.32-30-generic; arch: i386; cpus: 2
|
12
|
+
Wed Apr 13 18:40:37 CEST 2011: VM Name: Java HotSpot(TM) Client VM
|
13
|
+
Wed Apr 13 18:40:37 CEST 2011: VM Vendor: Sun Microsystems Inc.
|
14
|
+
Wed Apr 13 18:40:37 CEST 2011: VM Version: 19.1-b02
|
15
|
+
Wed Apr 13 18:40:37 CEST 2011: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/classes:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar
|
16
|
+
Wed Apr 13 18:40:37 CEST 2011: Class Path: /home/craig/dev/jruby-1.4.0/lib/derbyclient.jar:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/profile.jar:
|
17
|
+
Wed Apr 13 18:40:37 CEST 2011: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/../lib/i386:/lib:/usr/lib:/lib:/usr/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/usr/java/packages/lib/i386:/lib:/usr/lib
|
18
|
+
Wed Apr 13 18:40:37 CEST 2011: Garbage Collector: Copy: [Eden Space, Survivor Space]
|
19
|
+
Wed Apr 13 18:40:37 CEST 2011: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
|
20
|
+
Wed Apr 13 18:40:37 CEST 2011: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djna.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/linux-i386:/home/craig/dev/jruby-1.4.0/lib/native/linux-amd64, -Djffi.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/i386-Linux:/home/craig/dev/jruby-1.4.0/lib/native/s390x-Linux:/home/craig/dev/jruby-1.4.0/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar, -Djruby.home=/home/craig/dev/jruby-1.4.0, -Djruby.lib=/home/craig/dev/jruby-1.4.0/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
|
21
|
+
Wed Apr 13 18:40:37 CEST 2011:
|
22
|
+
Wed Apr 13 18:40:37 CEST 2011: adaptive_cache_heap_ratio=0.77
|
23
|
+
Wed Apr 13 18:40:37 CEST 2011: adaptive_cache_manager_decrease_ratio=1.15
|
24
|
+
Wed Apr 13 18:40:37 CEST 2011: adaptive_cache_manager_increase_ratio=1.1
|
25
|
+
Wed Apr 13 18:40:37 CEST 2011: adaptive_cache_worker_sleep_time=3000
|
26
|
+
Wed Apr 13 18:40:37 CEST 2011: create=true
|
27
|
+
Wed Apr 13 18:40:37 CEST 2011: dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext
|
28
|
+
Wed Apr 13 18:40:37 CEST 2011: enable_remote_shell=port=9332
|
29
|
+
Wed Apr 13 18:40:37 CEST 2011: ha.db=NO
|
30
|
+
Wed Apr 13 18:40:37 CEST 2011: ha.machine_id=2
|
31
|
+
Wed Apr 13 18:40:37 CEST 2011: ha.server=localhost:6002
|
32
|
+
Wed Apr 13 18:40:37 CEST 2011: ha.zoo_keeper_servers=localhost:2181,localhost:2182,localhost:2183
|
33
|
+
Wed Apr 13 18:40:37 CEST 2011: logical_log=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
34
|
+
Wed Apr 13 18:40:37 CEST 2011: max_node_cache_size=1500
|
35
|
+
Wed Apr 13 18:40:37 CEST 2011: max_relationship_cache_size=3500
|
36
|
+
Wed Apr 13 18:40:37 CEST 2011: migration_thread=NO
|
37
|
+
Wed Apr 13 18:40:37 CEST 2011: min_node_cache_size=0
|
38
|
+
Wed Apr 13 18:40:37 CEST 2011: min_relationship_cache_size=0
|
39
|
+
Wed Apr 13 18:40:37 CEST 2011: neo_store=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/neostore
|
40
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.nodestore.db.mapped_memory=25M
|
41
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.propertystore.db.arrays.mapped_memory=130M
|
42
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.propertystore.db.index.keys.mapped_memory=1M
|
43
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.propertystore.db.index.mapped_memory=1M
|
44
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.propertystore.db.mapped_memory=90M
|
45
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.propertystore.db.strings.mapped_memory=130M
|
46
|
+
Wed Apr 13 18:40:37 CEST 2011: neostore.relationshipstore.db.mapped_memory=50M
|
47
|
+
Wed Apr 13 18:40:37 CEST 2011: online_backup_enabled=NO
|
48
|
+
Wed Apr 13 18:40:37 CEST 2011: rebuild_idgenerators_fast=true
|
49
|
+
Wed Apr 13 18:40:37 CEST 2011: storage_path=db
|
50
|
+
Wed Apr 13 18:40:37 CEST 2011: store_dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db
|
51
|
+
Wed Apr 13 18:40:37 CEST 2011: timestamps=YES
|
52
|
+
Wed Apr 13 18:40:37 CEST 2011: use_adaptive_cache=YES
|
53
|
+
Wed Apr 13 18:40:37 CEST 2011: --- CONFIGURATION END ---
|
54
|
+
Wed Apr 13 18:40:37 CEST 2011: Extension org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
|
55
|
+
Wed Apr 13 18:40:37 CEST 2011: Extension org.neo4j.kernel.KernelExtension[shell] loaded ok
|
56
|
+
Wed Apr 13 18:40:38 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
57
|
+
Wed Apr 13 18:40:38 CEST 2011: NeoStore closed
|
58
|
+
Wed Apr 13 18:40:38 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log
|
59
|
+
Wed Apr 13 18:40:38 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log
|
60
|
+
Wed Apr 13 18:40:38 CEST 2011: NeoStore closed
|
61
|
+
Wed Apr 13 18:40:38 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log
|
62
|
+
Wed Apr 13 18:40:38 CEST 2011: TM shutting down
|
63
|
+
Wed Apr 13 18:40:38 CEST 2011: Thread[main,5,main] Starting BatchInserter(EmbeddedBatchInserter[db])
|
64
|
+
Wed Apr 13 18:40:40 CEST 2011: Thread[main,5,main] Clean shutdown on BatchInserter(EmbeddedBatchInserter[db])
|
65
|
+
Wed Apr 13 18:40:40 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log.1] clean empty log, version=0
|
66
|
+
Wed Apr 13 18:40:40 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log.1] clean empty log, version=0
|
67
|
+
Wed Apr 13 18:40:40 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log.1] clean empty log, version=0
|
68
|
+
Wed Apr 13 18:40:40 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log.1] clean empty log, version=0
|
69
|
+
Wed Apr 13 18:40:40 CEST 2011: TM opening log: /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/tm_tx_log.1
|
70
|
+
Wed Apr 13 18:40:40 CEST 2011: --- CONFIGURATION START ---
|
71
|
+
Wed Apr 13 18:40:40 CEST 2011: Physical mem: 2517MB, Heap size: 483MB
|
72
|
+
Wed Apr 13 18:40:40 CEST 2011: Kernel version: Neo4j - Graph Database Kernel 1.3.M03
|
73
|
+
Wed Apr 13 18:40:40 CEST 2011: Neo4j - Graph Database Kernel 1.3.M03
|
74
|
+
Wed Apr 13 18:40:40 CEST 2011: Operating System: Linux; version: 2.6.32-30-generic; arch: i386; cpus: 2
|
75
|
+
Wed Apr 13 18:40:40 CEST 2011: VM Name: Java HotSpot(TM) Client VM
|
76
|
+
Wed Apr 13 18:40:40 CEST 2011: VM Vendor: Sun Microsystems Inc.
|
77
|
+
Wed Apr 13 18:40:40 CEST 2011: VM Version: 19.1-b02
|
78
|
+
Wed Apr 13 18:40:40 CEST 2011: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/classes:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar
|
79
|
+
Wed Apr 13 18:40:40 CEST 2011: Class Path: /home/craig/dev/jruby-1.4.0/lib/derbyclient.jar:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/profile.jar:
|
80
|
+
Wed Apr 13 18:40:40 CEST 2011: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/../lib/i386:/lib:/usr/lib:/lib:/usr/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/usr/java/packages/lib/i386:/lib:/usr/lib
|
81
|
+
Wed Apr 13 18:40:40 CEST 2011: Garbage Collector: Copy: [Eden Space, Survivor Space]
|
82
|
+
Wed Apr 13 18:40:40 CEST 2011: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
|
83
|
+
Wed Apr 13 18:40:40 CEST 2011: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djna.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/linux-i386:/home/craig/dev/jruby-1.4.0/lib/native/linux-amd64, -Djffi.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/i386-Linux:/home/craig/dev/jruby-1.4.0/lib/native/s390x-Linux:/home/craig/dev/jruby-1.4.0/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar, -Djruby.home=/home/craig/dev/jruby-1.4.0, -Djruby.lib=/home/craig/dev/jruby-1.4.0/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
|
84
|
+
Wed Apr 13 18:40:40 CEST 2011:
|
85
|
+
Wed Apr 13 18:40:40 CEST 2011: adaptive_cache_heap_ratio=0.77
|
86
|
+
Wed Apr 13 18:40:40 CEST 2011: adaptive_cache_manager_decrease_ratio=1.15
|
87
|
+
Wed Apr 13 18:40:40 CEST 2011: adaptive_cache_manager_increase_ratio=1.1
|
88
|
+
Wed Apr 13 18:40:40 CEST 2011: adaptive_cache_worker_sleep_time=3000
|
89
|
+
Wed Apr 13 18:40:40 CEST 2011: create=true
|
90
|
+
Wed Apr 13 18:40:40 CEST 2011: dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext
|
91
|
+
Wed Apr 13 18:40:40 CEST 2011: enable_remote_shell=port=9332
|
92
|
+
Wed Apr 13 18:40:40 CEST 2011: ha.db=NO
|
93
|
+
Wed Apr 13 18:40:40 CEST 2011: ha.machine_id=2
|
94
|
+
Wed Apr 13 18:40:40 CEST 2011: ha.server=localhost:6002
|
95
|
+
Wed Apr 13 18:40:40 CEST 2011: ha.zoo_keeper_servers=localhost:2181,localhost:2182,localhost:2183
|
96
|
+
Wed Apr 13 18:40:40 CEST 2011: logical_log=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
97
|
+
Wed Apr 13 18:40:40 CEST 2011: max_node_cache_size=1500
|
98
|
+
Wed Apr 13 18:40:40 CEST 2011: max_relationship_cache_size=3500
|
99
|
+
Wed Apr 13 18:40:40 CEST 2011: migration_thread=NO
|
100
|
+
Wed Apr 13 18:40:40 CEST 2011: min_node_cache_size=0
|
101
|
+
Wed Apr 13 18:40:40 CEST 2011: min_relationship_cache_size=0
|
102
|
+
Wed Apr 13 18:40:40 CEST 2011: neo_store=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/neostore
|
103
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.nodestore.db.mapped_memory=25M
|
104
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.propertystore.db.arrays.mapped_memory=130M
|
105
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.propertystore.db.index.keys.mapped_memory=1M
|
106
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.propertystore.db.index.mapped_memory=1M
|
107
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.propertystore.db.mapped_memory=90M
|
108
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.propertystore.db.strings.mapped_memory=130M
|
109
|
+
Wed Apr 13 18:40:40 CEST 2011: neostore.relationshipstore.db.mapped_memory=50M
|
110
|
+
Wed Apr 13 18:40:40 CEST 2011: online_backup_enabled=NO
|
111
|
+
Wed Apr 13 18:40:40 CEST 2011: rebuild_idgenerators_fast=true
|
112
|
+
Wed Apr 13 18:40:40 CEST 2011: storage_path=db
|
113
|
+
Wed Apr 13 18:40:40 CEST 2011: store_dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db
|
114
|
+
Wed Apr 13 18:40:40 CEST 2011: timestamps=YES
|
115
|
+
Wed Apr 13 18:40:40 CEST 2011: use_adaptive_cache=YES
|
116
|
+
Wed Apr 13 18:40:40 CEST 2011: --- CONFIGURATION END ---
|
117
|
+
Wed Apr 13 18:40:40 CEST 2011: Extension org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
|
118
|
+
Wed Apr 13 18:40:40 CEST 2011: Extension org.neo4j.kernel.KernelExtension[shell] loaded ok
|
119
|
+
Wed Apr 13 18:40:42 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
120
|
+
Wed Apr 13 18:40:42 CEST 2011: NeoStore closed
|
121
|
+
Wed Apr 13 18:40:42 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log
|
122
|
+
Wed Apr 13 18:40:42 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log
|
123
|
+
Wed Apr 13 18:40:42 CEST 2011: NeoStore closed
|
124
|
+
Wed Apr 13 18:40:42 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log
|
125
|
+
Wed Apr 13 18:40:42 CEST 2011: TM shutting down
|
126
|
+
Wed Apr 13 18:40:58 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log.1] clean empty log, version=0
|
127
|
+
Wed Apr 13 18:40:58 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log.1] clean empty log, version=0
|
128
|
+
Wed Apr 13 18:40:58 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log.1] clean empty log, version=0
|
129
|
+
Wed Apr 13 18:40:58 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log.1] clean empty log, version=0
|
130
|
+
Wed Apr 13 18:40:58 CEST 2011: TM opening log: /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/tm_tx_log.1
|
131
|
+
Wed Apr 13 18:40:58 CEST 2011: --- CONFIGURATION START ---
|
132
|
+
Wed Apr 13 18:40:58 CEST 2011: Physical mem: 2517MB, Heap size: 483MB
|
133
|
+
Wed Apr 13 18:40:58 CEST 2011: Kernel version: Neo4j - Graph Database Kernel 1.3.M03
|
134
|
+
Wed Apr 13 18:40:58 CEST 2011: Neo4j - Graph Database Kernel 1.3.M03
|
135
|
+
Wed Apr 13 18:40:58 CEST 2011: Operating System: Linux; version: 2.6.32-30-generic; arch: i386; cpus: 2
|
136
|
+
Wed Apr 13 18:40:58 CEST 2011: VM Name: Java HotSpot(TM) Client VM
|
137
|
+
Wed Apr 13 18:40:58 CEST 2011: VM Vendor: Sun Microsystems Inc.
|
138
|
+
Wed Apr 13 18:40:58 CEST 2011: VM Version: 19.1-b02
|
139
|
+
Wed Apr 13 18:40:58 CEST 2011: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/classes:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar
|
140
|
+
Wed Apr 13 18:40:58 CEST 2011: Class Path: /home/craig/dev/jruby-1.4.0/lib/derbyclient.jar:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/profile.jar:
|
141
|
+
Wed Apr 13 18:40:58 CEST 2011: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/../lib/i386:/lib:/usr/lib:/lib:/usr/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/usr/java/packages/lib/i386:/lib:/usr/lib
|
142
|
+
Wed Apr 13 18:40:58 CEST 2011: Garbage Collector: Copy: [Eden Space, Survivor Space]
|
143
|
+
Wed Apr 13 18:40:58 CEST 2011: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
|
144
|
+
Wed Apr 13 18:40:58 CEST 2011: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djna.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/linux-i386:/home/craig/dev/jruby-1.4.0/lib/native/linux-amd64, -Djffi.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/i386-Linux:/home/craig/dev/jruby-1.4.0/lib/native/s390x-Linux:/home/craig/dev/jruby-1.4.0/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar, -Djruby.home=/home/craig/dev/jruby-1.4.0, -Djruby.lib=/home/craig/dev/jruby-1.4.0/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
|
145
|
+
Wed Apr 13 18:40:58 CEST 2011:
|
146
|
+
Wed Apr 13 18:40:58 CEST 2011: adaptive_cache_heap_ratio=0.77
|
147
|
+
Wed Apr 13 18:40:58 CEST 2011: adaptive_cache_manager_decrease_ratio=1.15
|
148
|
+
Wed Apr 13 18:40:58 CEST 2011: adaptive_cache_manager_increase_ratio=1.1
|
149
|
+
Wed Apr 13 18:40:58 CEST 2011: adaptive_cache_worker_sleep_time=3000
|
150
|
+
Wed Apr 13 18:40:58 CEST 2011: create=true
|
151
|
+
Wed Apr 13 18:40:58 CEST 2011: dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext
|
152
|
+
Wed Apr 13 18:40:58 CEST 2011: enable_remote_shell=port=9332
|
153
|
+
Wed Apr 13 18:40:58 CEST 2011: ha.db=NO
|
154
|
+
Wed Apr 13 18:40:58 CEST 2011: ha.machine_id=2
|
155
|
+
Wed Apr 13 18:40:58 CEST 2011: ha.server=localhost:6002
|
156
|
+
Wed Apr 13 18:40:58 CEST 2011: ha.zoo_keeper_servers=localhost:2181,localhost:2182,localhost:2183
|
157
|
+
Wed Apr 13 18:40:58 CEST 2011: logical_log=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
158
|
+
Wed Apr 13 18:40:58 CEST 2011: max_node_cache_size=1500
|
159
|
+
Wed Apr 13 18:40:58 CEST 2011: max_relationship_cache_size=3500
|
160
|
+
Wed Apr 13 18:40:58 CEST 2011: migration_thread=NO
|
161
|
+
Wed Apr 13 18:40:58 CEST 2011: min_node_cache_size=0
|
162
|
+
Wed Apr 13 18:40:58 CEST 2011: min_relationship_cache_size=0
|
163
|
+
Wed Apr 13 18:40:58 CEST 2011: neo_store=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/neostore
|
164
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.nodestore.db.mapped_memory=25M
|
165
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.propertystore.db.arrays.mapped_memory=130M
|
166
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.propertystore.db.index.keys.mapped_memory=1M
|
167
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.propertystore.db.index.mapped_memory=1M
|
168
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.propertystore.db.mapped_memory=90M
|
169
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.propertystore.db.strings.mapped_memory=130M
|
170
|
+
Wed Apr 13 18:40:58 CEST 2011: neostore.relationshipstore.db.mapped_memory=50M
|
171
|
+
Wed Apr 13 18:40:58 CEST 2011: online_backup_enabled=NO
|
172
|
+
Wed Apr 13 18:40:58 CEST 2011: rebuild_idgenerators_fast=true
|
173
|
+
Wed Apr 13 18:40:58 CEST 2011: storage_path=db
|
174
|
+
Wed Apr 13 18:40:58 CEST 2011: store_dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db
|
175
|
+
Wed Apr 13 18:40:58 CEST 2011: timestamps=YES
|
176
|
+
Wed Apr 13 18:40:58 CEST 2011: use_adaptive_cache=YES
|
177
|
+
Wed Apr 13 18:40:58 CEST 2011: --- CONFIGURATION END ---
|
178
|
+
Wed Apr 13 18:40:58 CEST 2011: Extension org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
|
179
|
+
Wed Apr 13 18:40:58 CEST 2011: Extension org.neo4j.kernel.KernelExtension[shell] loaded ok
|
180
|
+
Wed Apr 13 18:40:59 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
181
|
+
Wed Apr 13 18:40:59 CEST 2011: NeoStore closed
|
182
|
+
Wed Apr 13 18:40:59 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log
|
183
|
+
Wed Apr 13 18:40:59 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log
|
184
|
+
Wed Apr 13 18:40:59 CEST 2011: NeoStore closed
|
185
|
+
Wed Apr 13 18:40:59 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log
|
186
|
+
Wed Apr 13 18:40:59 CEST 2011: TM shutting down
|
187
|
+
Wed Apr 13 18:41:19 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log.1] clean empty log, version=0
|
188
|
+
Wed Apr 13 18:41:19 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log.1] clean empty log, version=0
|
189
|
+
Wed Apr 13 18:41:19 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log.1] clean empty log, version=0
|
190
|
+
Wed Apr 13 18:41:19 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log.1] clean empty log, version=0
|
191
|
+
Wed Apr 13 18:41:19 CEST 2011: TM opening log: /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/tm_tx_log.1
|
192
|
+
Wed Apr 13 18:41:19 CEST 2011: --- CONFIGURATION START ---
|
193
|
+
Wed Apr 13 18:41:19 CEST 2011: Physical mem: 2517MB, Heap size: 483MB
|
194
|
+
Wed Apr 13 18:41:19 CEST 2011: Kernel version: Neo4j - Graph Database Kernel 1.3.M03
|
195
|
+
Wed Apr 13 18:41:19 CEST 2011: Neo4j - Graph Database Kernel 1.3.M03
|
196
|
+
Wed Apr 13 18:41:19 CEST 2011: Operating System: Linux; version: 2.6.32-30-generic; arch: i386; cpus: 2
|
197
|
+
Wed Apr 13 18:41:19 CEST 2011: VM Name: Java HotSpot(TM) Client VM
|
198
|
+
Wed Apr 13 18:41:19 CEST 2011: VM Vendor: Sun Microsystems Inc.
|
199
|
+
Wed Apr 13 18:41:19 CEST 2011: VM Version: 19.1-b02
|
200
|
+
Wed Apr 13 18:41:19 CEST 2011: Boot Class Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/classes:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar
|
201
|
+
Wed Apr 13 18:41:19 CEST 2011: Class Path: /home/craig/dev/jruby-1.4.0/lib/derbyclient.jar:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/profile.jar:
|
202
|
+
Wed Apr 13 18:41:19 CEST 2011: Library Path: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.24/jre/../lib/i386:/lib:/usr/lib:/lib:/usr/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/home/craig/dev/smartgit-2_0_4/lib:/home/craig/dev/smartgit-2_0_3/lib:/home/craig/dev/smartgit-1_5_7/lib:/home/craig/dev/smartgit-1_5_4/lib:/home/craig/dev/FWTools-2.0.6/lib:/home/craig/dev/neo4j/ruby-style/lib:/home/craig/dev/neo4j/osmosis-0.34/lib:/home/craig/dev/neo4j/neo4j-spatial.rb/lib:/home/craig/dev/neo4j/neo4j-kernel/lib:/home/craig/dev/neo4j/geoneo/lib:/home/craig/dev/neo4j/br.ufg.inf.drtree.udig/lib:/home/craig/dev/neo4j/amanzi-sld/lib:/home/craig/dev/jruby-1.4.0/lib::/usr/java/packages/lib/i386:/lib:/usr/lib
|
203
|
+
Wed Apr 13 18:41:19 CEST 2011: Garbage Collector: Copy: [Eden Space, Survivor Space]
|
204
|
+
Wed Apr 13 18:41:19 CEST 2011: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
|
205
|
+
Wed Apr 13 18:41:19 CEST 2011: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djna.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/linux-i386:/home/craig/dev/jruby-1.4.0/lib/native/linux-amd64, -Djffi.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/i386-Linux:/home/craig/dev/jruby-1.4.0/lib/native/s390x-Linux:/home/craig/dev/jruby-1.4.0/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar, -Djruby.home=/home/craig/dev/jruby-1.4.0, -Djruby.lib=/home/craig/dev/jruby-1.4.0/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
|
206
|
+
Wed Apr 13 18:41:19 CEST 2011:
|
207
|
+
Wed Apr 13 18:41:19 CEST 2011: adaptive_cache_heap_ratio=0.77
|
208
|
+
Wed Apr 13 18:41:19 CEST 2011: adaptive_cache_manager_decrease_ratio=1.15
|
209
|
+
Wed Apr 13 18:41:19 CEST 2011: adaptive_cache_manager_increase_ratio=1.1
|
210
|
+
Wed Apr 13 18:41:19 CEST 2011: adaptive_cache_worker_sleep_time=3000
|
211
|
+
Wed Apr 13 18:41:19 CEST 2011: create=true
|
212
|
+
Wed Apr 13 18:41:19 CEST 2011: dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext
|
213
|
+
Wed Apr 13 18:41:19 CEST 2011: enable_remote_shell=port=9332
|
214
|
+
Wed Apr 13 18:41:19 CEST 2011: ha.db=NO
|
215
|
+
Wed Apr 13 18:41:19 CEST 2011: ha.machine_id=2
|
216
|
+
Wed Apr 13 18:41:19 CEST 2011: ha.server=localhost:6002
|
217
|
+
Wed Apr 13 18:41:19 CEST 2011: ha.zoo_keeper_servers=localhost:2181,localhost:2182,localhost:2183
|
218
|
+
Wed Apr 13 18:41:19 CEST 2011: logical_log=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
219
|
+
Wed Apr 13 18:41:19 CEST 2011: max_node_cache_size=1500
|
220
|
+
Wed Apr 13 18:41:19 CEST 2011: max_relationship_cache_size=3500
|
221
|
+
Wed Apr 13 18:41:19 CEST 2011: migration_thread=NO
|
222
|
+
Wed Apr 13 18:41:19 CEST 2011: min_node_cache_size=0
|
223
|
+
Wed Apr 13 18:41:19 CEST 2011: min_relationship_cache_size=0
|
224
|
+
Wed Apr 13 18:41:19 CEST 2011: neo_store=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/neostore
|
225
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.nodestore.db.mapped_memory=25M
|
226
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.propertystore.db.arrays.mapped_memory=130M
|
227
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.propertystore.db.index.keys.mapped_memory=1M
|
228
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.propertystore.db.index.mapped_memory=1M
|
229
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.propertystore.db.mapped_memory=90M
|
230
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.propertystore.db.strings.mapped_memory=130M
|
231
|
+
Wed Apr 13 18:41:19 CEST 2011: neostore.relationshipstore.db.mapped_memory=50M
|
232
|
+
Wed Apr 13 18:41:19 CEST 2011: online_backup_enabled=NO
|
233
|
+
Wed Apr 13 18:41:19 CEST 2011: rebuild_idgenerators_fast=true
|
234
|
+
Wed Apr 13 18:41:19 CEST 2011: storage_path=db
|
235
|
+
Wed Apr 13 18:41:19 CEST 2011: store_dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db
|
236
|
+
Wed Apr 13 18:41:19 CEST 2011: timestamps=YES
|
237
|
+
Wed Apr 13 18:41:19 CEST 2011: use_adaptive_cache=YES
|
238
|
+
Wed Apr 13 18:41:19 CEST 2011: --- CONFIGURATION END ---
|
239
|
+
Wed Apr 13 18:41:19 CEST 2011: Extension org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
|
240
|
+
Wed Apr 13 18:41:19 CEST 2011: Extension org.neo4j.kernel.KernelExtension[shell] loaded ok
|
241
|
+
Wed Apr 13 18:41:21 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
242
|
+
Wed Apr 13 18:41:21 CEST 2011: NeoStore closed
|
243
|
+
Wed Apr 13 18:41:21 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log
|
244
|
+
Wed Apr 13 18:41:21 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log
|
245
|
+
Wed Apr 13 18:41:21 CEST 2011: NeoStore closed
|
246
|
+
Wed Apr 13 18:41:21 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log
|
247
|
+
Wed Apr 13 18:41:21 CEST 2011: TM shutting down
|
248
|
+
Tue May 17 21:49:38 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log.1] clean empty log, version=0
|
249
|
+
Tue May 17 21:49:38 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log.1] clean empty log, version=0
|
250
|
+
Tue May 17 21:49:38 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log.1] clean empty log, version=0
|
251
|
+
Tue May 17 21:49:38 CEST 2011: Opened [/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log.1] clean empty log, version=0
|
252
|
+
Tue May 17 21:49:38 CEST 2011: TM opening log: /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/tm_tx_log.1
|
253
|
+
Tue May 17 21:49:38 CEST 2011: --- CONFIGURATION START ---
|
254
|
+
Tue May 17 21:49:38 CEST 2011: Physical mem: 3751MB, Heap size: 483MB
|
255
|
+
Tue May 17 21:49:38 CEST 2011: Kernel version: Neo4j - Graph Database Kernel 1.3.M03
|
256
|
+
Tue May 17 21:49:38 CEST 2011: Neo4j - Graph Database Kernel 1.3.M03
|
257
|
+
Tue May 17 21:49:38 CEST 2011: Operating System: Linux; version: 2.6.38-8-generic-pae; arch: i386; cpus: 4
|
258
|
+
Tue May 17 21:49:38 CEST 2011: VM Name: OpenJDK Client VM
|
259
|
+
Tue May 17 21:49:38 CEST 2011: VM Vendor: Sun Microsystems Inc.
|
260
|
+
Tue May 17 21:49:38 CEST 2011: VM Version: 20.0-b11
|
261
|
+
Tue May 17 21:49:38 CEST 2011: Boot Class Path: /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-6-openjdk/jre/classes:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar
|
262
|
+
Tue May 17 21:49:38 CEST 2011: Class Path: /home/craig/dev/jruby-1.4.0/lib/derbyclient.jar:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/profile.jar:
|
263
|
+
Tue May 17 21:49:38 CEST 2011: Library Path: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib
|
264
|
+
Tue May 17 21:49:38 CEST 2011: Garbage Collector: Copy: [Eden Space, Survivor Space]
|
265
|
+
Tue May 17 21:49:38 CEST 2011: Garbage Collector: MarkSweepCompact: [Eden Space, Survivor Space, Tenured Gen, Perm Gen, Perm Gen [shared-ro], Perm Gen [shared-rw]]
|
266
|
+
Tue May 17 21:49:38 CEST 2011: VM Arguments: [-Djruby.memory.max=500m, -Djruby.stack.max=1024k, -Xmx500m, -Xss1024k, -Djna.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/linux-i386:/home/craig/dev/jruby-1.4.0/lib/native/linux-amd64, -Djffi.boot.library.path=/home/craig/dev/jruby-1.4.0/lib/native/i386-Linux:/home/craig/dev/jruby-1.4.0/lib/native/s390x-Linux:/home/craig/dev/jruby-1.4.0/lib/native/x86_64-Linux, -Xbootclasspath/a:/home/craig/dev/jruby-1.4.0/lib/jruby.jar:/home/craig/dev/jruby-1.4.0/lib/bsf.jar, -Djruby.home=/home/craig/dev/jruby-1.4.0, -Djruby.lib=/home/craig/dev/jruby-1.4.0/lib, -Djruby.script=jruby, -Djruby.shell=/bin/sh]
|
267
|
+
Tue May 17 21:49:38 CEST 2011:
|
268
|
+
Tue May 17 21:49:38 CEST 2011: adaptive_cache_heap_ratio=0.77
|
269
|
+
Tue May 17 21:49:38 CEST 2011: adaptive_cache_manager_decrease_ratio=1.15
|
270
|
+
Tue May 17 21:49:38 CEST 2011: adaptive_cache_manager_increase_ratio=1.1
|
271
|
+
Tue May 17 21:49:38 CEST 2011: adaptive_cache_worker_sleep_time=3000
|
272
|
+
Tue May 17 21:49:38 CEST 2011: create=true
|
273
|
+
Tue May 17 21:49:38 CEST 2011: dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext
|
274
|
+
Tue May 17 21:49:38 CEST 2011: enable_remote_shell=port=9332
|
275
|
+
Tue May 17 21:49:38 CEST 2011: ha.db=NO
|
276
|
+
Tue May 17 21:49:38 CEST 2011: ha.machine_id=2
|
277
|
+
Tue May 17 21:49:38 CEST 2011: ha.server=localhost:6002
|
278
|
+
Tue May 17 21:49:38 CEST 2011: ha.zoo_keeper_servers=localhost:2181,localhost:2182,localhost:2183
|
279
|
+
Tue May 17 21:49:38 CEST 2011: logical_log=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
280
|
+
Tue May 17 21:49:38 CEST 2011: max_node_cache_size=1500
|
281
|
+
Tue May 17 21:49:38 CEST 2011: max_relationship_cache_size=3500
|
282
|
+
Tue May 17 21:49:38 CEST 2011: migration_thread=NO
|
283
|
+
Tue May 17 21:49:38 CEST 2011: min_node_cache_size=0
|
284
|
+
Tue May 17 21:49:38 CEST 2011: min_relationship_cache_size=0
|
285
|
+
Tue May 17 21:49:38 CEST 2011: neo_store=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/neostore
|
286
|
+
Tue May 17 21:49:38 CEST 2011: neostore.nodestore.db.mapped_memory=25M
|
287
|
+
Tue May 17 21:49:38 CEST 2011: neostore.propertystore.db.arrays.mapped_memory=130M
|
288
|
+
Tue May 17 21:49:38 CEST 2011: neostore.propertystore.db.index.keys.mapped_memory=1M
|
289
|
+
Tue May 17 21:49:38 CEST 2011: neostore.propertystore.db.index.mapped_memory=1M
|
290
|
+
Tue May 17 21:49:38 CEST 2011: neostore.propertystore.db.mapped_memory=90M
|
291
|
+
Tue May 17 21:49:38 CEST 2011: neostore.propertystore.db.strings.mapped_memory=130M
|
292
|
+
Tue May 17 21:49:38 CEST 2011: neostore.relationshipstore.db.mapped_memory=50M
|
293
|
+
Tue May 17 21:49:38 CEST 2011: online_backup_enabled=NO
|
294
|
+
Tue May 17 21:49:38 CEST 2011: rebuild_idgenerators_fast=true
|
295
|
+
Tue May 17 21:49:38 CEST 2011: storage_path=db
|
296
|
+
Tue May 17 21:49:38 CEST 2011: store_dir=/home/craig/dev/neo4j/neo4j-spatial.rb/examples/db
|
297
|
+
Tue May 17 21:49:38 CEST 2011: timestamps=YES
|
298
|
+
Tue May 17 21:49:38 CEST 2011: use_adaptive_cache=YES
|
299
|
+
Tue May 17 21:49:38 CEST 2011: --- CONFIGURATION END ---
|
300
|
+
Tue May 17 21:49:38 CEST 2011: Extension org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
|
301
|
+
Tue May 17 21:49:38 CEST 2011: Extension org.neo4j.kernel.KernelExtension[shell] loaded ok
|
302
|
+
Tue May 17 21:49:40 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/nioneo_logical.log
|
303
|
+
Tue May 17 21:49:40 CEST 2011: NeoStore closed
|
304
|
+
Tue May 17 21:49:40 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/index/lucene.log
|
305
|
+
Tue May 17 21:49:40 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene/lucene.log
|
306
|
+
Tue May 17 21:49:40 CEST 2011: NeoStore closed
|
307
|
+
Tue May 17 21:49:40 CEST 2011: Closed log /home/craig/dev/neo4j/neo4j-spatial.rb/examples/db/lucene-fulltext/lucene.log
|
308
|
+
Tue May 17 21:49:40 CEST 2011: TM shutting down
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
|
3
|
+
# useful if being run inside a source code checkout
|
4
|
+
$: << 'lib'
|
5
|
+
$: << '../lib'
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'neo4j/spatial'
|
9
|
+
require 'neo4j/spatial/cmd'
|
10
|
+
require 'fileutils'
|
11
|
+
|
12
|
+
$files = Neo4j::Spatial::Cmd.args
|
13
|
+
$script = $0.split(/[\\\/]+/)[-1].gsub(/\.rb$/,'')
|
14
|
+
$formats = [:shp, :osm]
|
15
|
+
$formats.each do |f|
|
16
|
+
$format = f if($0 =~ /#{f}/)
|
17
|
+
end
|
18
|
+
|
19
|
+
if $help || $files.length < 1 || $format.nil?
|
20
|
+
puts "usage: #{$script} <-d> <-D storage_path> #{$format ? "file.#{$format}" : "<-F format> file"}"
|
21
|
+
puts "\t-d\tDelete database first"
|
22
|
+
puts "\t-D\tUse specified database location"
|
23
|
+
puts "\t-F\tImport specified format (#{$formats.join(', ')})" unless($format)
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
|
27
|
+
if $delete
|
28
|
+
puts "Deleting previous database #{Neo4j::Config[:storage_path]}"
|
29
|
+
FileUtils.rm_rf Neo4j::Config[:storage_path]
|
30
|
+
end
|
31
|
+
|
32
|
+
importer = eval "Neo4j::Spatial::#{$format.to_s.upcase}Importer.new"
|
33
|
+
|
34
|
+
$files.each do |file|
|
35
|
+
importer.import file
|
36
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
|
3
|
+
# useful if being run inside a source code checkout
|
4
|
+
$: << 'lib'
|
5
|
+
$: << '../lib'
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'neo4j/spatial'
|
9
|
+
require 'neo4j/spatial/cmd'
|
10
|
+
require 'fileutils'
|
11
|
+
|
12
|
+
$files = Neo4j::Spatial::Cmd.args
|
13
|
+
$script = $0.split(/[\\\/]+/)[-1].gsub(/\.rb$/,'')
|
14
|
+
$formats = [:shp, :osm]
|
15
|
+
$formats.each do |f|
|
16
|
+
$format = f if($0 =~ /#{f}/)
|
17
|
+
end
|
18
|
+
|
19
|
+
if $help || $files.length < 1 || $format.nil?
|
20
|
+
puts "usage: #{$script} <-d> <-D storage_path> #{$format ? "file.#{$format}" : "<-F format> file"}"
|
21
|
+
puts "\t-d\tDelete database first"
|
22
|
+
puts "\t-D\tUse specified database location"
|
23
|
+
puts "\t-F\tImport specified format (#{$formats.join(', ')})" unless($format)
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
|
27
|
+
if $delete
|
28
|
+
puts "Deleting previous database #{Neo4j::Config[:storage_path]}"
|
29
|
+
FileUtils.rm_rf Neo4j::Config[:storage_path]
|
30
|
+
end
|
31
|
+
|
32
|
+
importer = eval "Neo4j::Spatial::#{$format.to_s.upcase}Importer.new"
|
33
|
+
|
34
|
+
$files.each do |file|
|
35
|
+
importer.import file
|
36
|
+
end
|
data/lib/neo4j/spatial.rb
CHANGED
@@ -51,6 +51,6 @@ require 'neo4j/spatial/jars/gt-shapefile/vecmath-1.3.2.jar'
|
|
51
51
|
|
52
52
|
require 'neo4j/spatial/database.rb'
|
53
53
|
require 'neo4j/spatial/layer.rb'
|
54
|
-
require 'neo4j/spatial/shapefile.rb'
|
55
54
|
require 'neo4j/spatial/osm.rb'
|
55
|
+
require 'neo4j/spatial/shp.rb'
|
56
56
|
require 'neo4j/spatial/image.rb'
|
@@ -1,22 +1,24 @@
|
|
1
1
|
require 'neo4j/spatial/listener'
|
2
2
|
require 'neo4j/spatial/database'
|
3
|
+
require 'neo4j/spatial/geometry'
|
3
4
|
|
4
|
-
|
5
|
+
java_import org.neo4j.gis.spatial.Constants
|
6
|
+
java_import org.neo4j.gis.spatial.SpatialDatabaseService
|
7
|
+
java_import org.neo4j.gis.spatial.ShapefileImporter
|
5
8
|
|
6
9
|
module Neo4j
|
7
10
|
module Spatial
|
8
|
-
|
9
|
-
# This class facilitates importing datasets in the ESRI Shapefile format
|
10
|
-
class ShapefileImporter
|
11
|
+
class SHPImporter
|
11
12
|
include Listener
|
12
13
|
include Database
|
13
14
|
def initialize(options={})
|
14
15
|
database(options)
|
15
|
-
@importer = org.neo4j.gis.spatial.ShapefileImporter.new(
|
16
|
+
@importer = org.neo4j.gis.spatial.ShapefileImporter.new(normal_database, self, @commit)
|
16
17
|
end
|
17
18
|
def import(shp_path,layer_name=nil)
|
18
19
|
@shp_path = shp_path
|
19
20
|
layer_name ||= shp_path.split(/[\\\/]+/)[-1].gsub(/\.\w+$/,'')
|
21
|
+
puts "\n=== Loading layer #{layer_name} from #{shp_path} ==="
|
20
22
|
@importer.import_file @shp_path, layer_name
|
21
23
|
end
|
22
24
|
def to_s
|
@@ -24,13 +26,13 @@ module Neo4j
|
|
24
26
|
end
|
25
27
|
end
|
26
28
|
|
27
|
-
# This class facilitates
|
28
|
-
class
|
29
|
+
# This class facilitates exporting datasets in the ESRI Shapefile format
|
30
|
+
class SHPExporter
|
29
31
|
include Database
|
30
32
|
def initialize(options={})
|
31
33
|
options[:dir] ||= "target/export"
|
32
34
|
database(options)
|
33
|
-
@exporter = org.neo4j.gis.spatial.ShapefileExporter.new(
|
35
|
+
@exporter = org.neo4j.gis.spatial.ShapefileExporter.new(normal_database)
|
34
36
|
@exporter.setExportDir(options[:dir])
|
35
37
|
end
|
36
38
|
def export(layer_name,options={})
|
@@ -46,5 +48,6 @@ module Neo4j
|
|
46
48
|
@layer_name || format
|
47
49
|
end
|
48
50
|
end
|
51
|
+
|
49
52
|
end
|
50
53
|
end
|
metadata
CHANGED
@@ -1,55 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-spatial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.0.
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 7
|
9
|
+
version: 0.0.7
|
11
10
|
platform: java
|
12
11
|
authors:
|
13
|
-
- Craig Taverner
|
12
|
+
- Craig Taverner
|
14
13
|
autorequire:
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-06-08 00:00:00 +02:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
type: :runtime
|
52
|
-
version_requirements: *id002
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: neo4j
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 0
|
31
|
+
- 0
|
32
|
+
version: 1.0.0
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: amanzi-sld
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 0
|
46
|
+
- 1
|
47
|
+
version: 0.0.1
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
53
50
|
description: |
|
54
51
|
Neo4j-Spatial adds GIS and spatial analysis capabilities to the Neo4j Graph Database. This allows you to load spatial data,
|
55
52
|
like points, lines, polygons and more complex geometries, index them and perform fast spatial queries on them. It includes
|
@@ -59,106 +56,167 @@ description: |
|
|
59
56
|
|
60
57
|
email: craig@amanzi.com
|
61
58
|
executables:
|
62
|
-
- osm_import
|
63
|
-
- osm_layer
|
64
|
-
- export_layer
|
59
|
+
- osm_import
|
60
|
+
- osm_layer
|
61
|
+
- export_layer
|
65
62
|
extensions: []
|
66
63
|
|
67
64
|
extra_rdoc_files:
|
68
|
-
- README.rdoc
|
65
|
+
- README.rdoc
|
69
66
|
files:
|
70
|
-
- bin/osm_import
|
71
|
-
- bin/osm_layer
|
72
|
-
- bin/export_layer
|
73
|
-
-
|
74
|
-
-
|
75
|
-
- lib/neo4j/spatial
|
76
|
-
- lib/neo4j/spatial/
|
77
|
-
- lib/neo4j/spatial/
|
78
|
-
- lib/neo4j/spatial/
|
79
|
-
- lib/neo4j/spatial/
|
80
|
-
- lib/neo4j/spatial/
|
81
|
-
- lib/neo4j/spatial/
|
82
|
-
- lib/neo4j/spatial/
|
83
|
-
- lib/neo4j/spatial/
|
84
|
-
- lib/neo4j/spatial/
|
85
|
-
- lib/neo4j/spatial/jars/neo4j-
|
86
|
-
- lib/neo4j/spatial/jars/
|
87
|
-
- lib/neo4j/spatial/jars/
|
88
|
-
- lib/neo4j/spatial/jars/
|
89
|
-
- lib/neo4j/spatial/jars/
|
90
|
-
- lib/neo4j/spatial/jars/
|
91
|
-
- lib/neo4j/spatial/jars/
|
92
|
-
- lib/neo4j/spatial/jars/
|
93
|
-
- lib/neo4j/spatial/jars/
|
94
|
-
- lib/neo4j/spatial/jars/
|
95
|
-
- lib/neo4j/spatial/jars/
|
96
|
-
- lib/neo4j/spatial/jars/
|
97
|
-
- lib/neo4j/spatial/jars/gt-
|
98
|
-
- lib/neo4j/spatial/jars/gt-
|
99
|
-
- lib/neo4j/spatial/jars/gt-
|
100
|
-
- lib/neo4j/spatial/jars/gt-
|
101
|
-
- lib/neo4j/spatial/jars/gt-
|
102
|
-
- lib/neo4j/spatial/jars/gt-
|
103
|
-
- lib/neo4j/spatial/jars/gt-
|
104
|
-
- lib/neo4j/spatial/jars/
|
105
|
-
- lib/neo4j/spatial/
|
106
|
-
- lib/neo4j/spatial/shapefile.
|
107
|
-
- lib/neo4j/spatial/
|
108
|
-
- lib/neo4j/spatial/
|
109
|
-
- lib/neo4j/spatial/
|
110
|
-
- lib/neo4j/spatial/
|
111
|
-
- lib/neo4j/spatial/
|
112
|
-
- lib/neo4j/spatial.
|
113
|
-
-
|
114
|
-
- examples/
|
115
|
-
- examples/
|
116
|
-
- examples/
|
117
|
-
- examples/
|
118
|
-
- examples/
|
119
|
-
- examples/
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
67
|
+
- bin/osm_import
|
68
|
+
- bin/osm_layer
|
69
|
+
- bin/export_layer
|
70
|
+
- bin/shp_import
|
71
|
+
- bin/import_layer
|
72
|
+
- lib/neo4j/spatial.rb
|
73
|
+
- lib/neo4j/spatial/osm.rb
|
74
|
+
- lib/neo4j/spatial/database.rb
|
75
|
+
- lib/neo4j/spatial/layer.rb
|
76
|
+
- lib/neo4j/spatial/cmd.rb
|
77
|
+
- lib/neo4j/spatial/image.rb
|
78
|
+
- lib/neo4j/spatial/listener.rb
|
79
|
+
- lib/neo4j/spatial/version.rb
|
80
|
+
- lib/neo4j/spatial/geometry.rb
|
81
|
+
- lib/neo4j/spatial/shp.rb
|
82
|
+
- lib/neo4j/spatial/jars/neo4j-server-1.3.M03.jar
|
83
|
+
- lib/neo4j/spatial/jars/org.apache.servicemix.bundles.lucene-3.0.1_2.jar
|
84
|
+
- lib/neo4j/spatial/jars/junit-4.8.1.jar
|
85
|
+
- lib/neo4j/spatial/jars/json-simple-1.1.jar
|
86
|
+
- lib/neo4j/spatial/jars/neo4j-kernel-1.3.M03.jar
|
87
|
+
- lib/neo4j/spatial/jars/log4j-1.2.14.jar
|
88
|
+
- lib/neo4j/spatial/jars/neo4j-spatial-0.5-SNAPSHOT.jar
|
89
|
+
- lib/neo4j/spatial/jars/server-api-1.3.M03.jar
|
90
|
+
- lib/neo4j/spatial/jars/neo4j-lucene-index-1.3.M03.jar
|
91
|
+
- lib/neo4j/spatial/jars/geronimo-jta_1.1_spec-1.1.1.jar
|
92
|
+
- lib/neo4j/spatial/jars/jsr311-api-1.1.1.jar
|
93
|
+
- lib/neo4j/spatial/jars/neo4j-kernel-1.3.M03-tests.jar
|
94
|
+
- lib/neo4j/spatial/jars/gt-main/xercesImpl-2.4.0.jar
|
95
|
+
- lib/neo4j/spatial/jars/gt-main/gt-api-2.7-M3.jar
|
96
|
+
- lib/neo4j/spatial/jars/gt-main/jdom-1.0.jar
|
97
|
+
- lib/neo4j/spatial/jars/gt-main/jts-1.11.jar
|
98
|
+
- lib/neo4j/spatial/jars/gt-main/gt-main-2.7-M3.jar
|
99
|
+
- lib/neo4j/spatial/jars/gt-render/gt-render-2.7-M3.jar
|
100
|
+
- lib/neo4j/spatial/jars/gt-render/gt-coverage-2.7-M3.jar
|
101
|
+
- lib/neo4j/spatial/jars/gt-render/gt-cql-2.7-M3.jar
|
102
|
+
- lib/neo4j/spatial/jars/gt-shapefile/jsr-275-1.0-beta-2.jar
|
103
|
+
- lib/neo4j/spatial/jars/gt-shapefile/geoapi-2.3-M1.jar
|
104
|
+
- lib/neo4j/spatial/jars/gt-shapefile/gt-data-2.7-M3.jar
|
105
|
+
- lib/neo4j/spatial/jars/gt-shapefile/vecmath-1.3.2.jar
|
106
|
+
- lib/neo4j/spatial/jars/gt-shapefile/gt-shapefile-2.7-M3.jar
|
107
|
+
- lib/neo4j/spatial/jars/gt-shapefile/commons-pool-1.5.4.jar
|
108
|
+
- lib/neo4j/spatial/jars/gt-shapefile/gt-metadata-2.7-M3.jar
|
109
|
+
- lib/neo4j/spatial/jars/gt-shapefile/gt-referencing-2.7-M3.jar
|
110
|
+
- lib/neo4j/spatial/jars/gt-shapefile/geoapi-pending-2.3-M1.jar
|
111
|
+
- examples/import_layer.rb~
|
112
|
+
- examples/test.rb
|
113
|
+
- examples/export_layer.rb
|
114
|
+
- examples/map2.osm
|
115
|
+
- examples/osm_layer.rb
|
116
|
+
- examples/map.osm
|
117
|
+
- examples/osm_random_trace.rb
|
118
|
+
- examples/import_layer.rb
|
119
|
+
- examples/db/tm_tx_log.1
|
120
|
+
- examples/db/neostore.propertystore.db.index
|
121
|
+
- examples/db/neostore.propertystore.db.arrays
|
122
|
+
- examples/db/neostore.propertystore.db.strings
|
123
|
+
- examples/db/active_tx_log
|
124
|
+
- examples/db/neostore.relationshiptypestore.db.names.id
|
125
|
+
- examples/db/neostore.nodestore.db
|
126
|
+
- examples/db/neostore.propertystore.db.index.keys
|
127
|
+
- examples/db/neostore
|
128
|
+
- examples/db/neostore.relationshipstore.db.id
|
129
|
+
- examples/db/neostore.propertystore.db
|
130
|
+
- examples/db/index.db
|
131
|
+
- examples/db/neostore.propertystore.db.id
|
132
|
+
- examples/db/neostore.propertystore.db.index.keys.id
|
133
|
+
- examples/db/neostore.nodestore.db.id
|
134
|
+
- examples/db/neostore.relationshiptypestore.db.names
|
135
|
+
- examples/db/neostore.propertystore.db.index.id
|
136
|
+
- examples/db/neostore.id
|
137
|
+
- examples/db/neostore.relationshiptypestore.db
|
138
|
+
- examples/db/nioneo_logical.log.active
|
139
|
+
- examples/db/neostore.relationshipstore.db
|
140
|
+
- examples/db/neostore.propertystore.db.strings.id
|
141
|
+
- examples/db/neostore.propertystore.db.arrays.id
|
142
|
+
- examples/db/neostore.relationshiptypestore.db.id
|
143
|
+
- examples/db/messages.log
|
144
|
+
- examples/db/lucene-fulltext/lucene.log.active
|
145
|
+
- examples/db/lucene-fulltext/lucene-store.db
|
146
|
+
- examples/db/index/lucene.log.active
|
147
|
+
- examples/db/index/lucene-store.db
|
148
|
+
- examples/db/index/lucene/node/user/_d.nrm
|
149
|
+
- examples/db/index/lucene/node/user/_d.tii
|
150
|
+
- examples/db/index/lucene/node/user/_d.prx
|
151
|
+
- examples/db/index/lucene/node/user/_d.fdt
|
152
|
+
- examples/db/index/lucene/node/user/segments_2
|
153
|
+
- examples/db/index/lucene/node/user/_d.fdx
|
154
|
+
- examples/db/index/lucene/node/user/_d.tis
|
155
|
+
- examples/db/index/lucene/node/user/segments.gen
|
156
|
+
- examples/db/index/lucene/node/user/_d.fnm
|
157
|
+
- examples/db/index/lucene/node/user/_d.frq
|
158
|
+
- examples/db/index/lucene/node/changeset/_1o.fdx
|
159
|
+
- examples/db/index/lucene/node/changeset/segments_2
|
160
|
+
- examples/db/index/lucene/node/changeset/_1o.fdt
|
161
|
+
- examples/db/index/lucene/node/changeset/_1o.frq
|
162
|
+
- examples/db/index/lucene/node/changeset/_1o.fnm
|
163
|
+
- examples/db/index/lucene/node/changeset/segments.gen
|
164
|
+
- examples/db/index/lucene/node/changeset/_1o.prx
|
165
|
+
- examples/db/index/lucene/node/changeset/_1o.nrm
|
166
|
+
- examples/db/index/lucene/node/changeset/_1o.tii
|
167
|
+
- examples/db/index/lucene/node/changeset/_1o.tis
|
168
|
+
- examples/db/index/lucene/node/node/segments_2
|
169
|
+
- examples/db/index/lucene/node/node/_0.cfs
|
170
|
+
- examples/db/index/lucene/node/node/segments.gen
|
171
|
+
- examples/db/index/lucene/node/way/segments_2
|
172
|
+
- examples/db/index/lucene/node/way/_0.cfs
|
173
|
+
- examples/db/index/lucene/node/way/segments.gen
|
174
|
+
- examples/db/index/lucene/node/relation/segments_2
|
175
|
+
- examples/db/index/lucene/node/relation/_0.cfx
|
176
|
+
- examples/db/index/lucene/node/relation/_0.cfs
|
177
|
+
- examples/db/index/lucene/node/relation/segments.gen
|
178
|
+
- examples/db/lucene/lucene.log.active
|
179
|
+
- examples/db/lucene/lucene-store.db
|
180
|
+
- README.rdoc
|
181
|
+
- CHANGELOG
|
182
|
+
- CONTRIBUTORS
|
183
|
+
- Gemfile
|
184
|
+
- neo4j-spatial.gemspec
|
125
185
|
has_rdoc: true
|
126
186
|
homepage: http://github.com/craigtaverner/neo4j-spatial.rb
|
127
187
|
licenses: []
|
128
188
|
|
129
189
|
post_install_message:
|
130
190
|
rdoc_options:
|
131
|
-
- --quiet
|
132
|
-
- --title
|
133
|
-
- Neo4j-Spatial.rb
|
134
|
-
- --opname
|
135
|
-
- index.html
|
136
|
-
- --line-numbers
|
137
|
-
- --main
|
138
|
-
- README.rdoc
|
139
|
-
- --inline-source
|
191
|
+
- --quiet
|
192
|
+
- --title
|
193
|
+
- Neo4j-Spatial.rb
|
194
|
+
- --opname
|
195
|
+
- index.html
|
196
|
+
- --line-numbers
|
197
|
+
- --main
|
198
|
+
- README.rdoc
|
199
|
+
- --inline-source
|
140
200
|
require_paths:
|
141
|
-
- lib
|
201
|
+
- lib
|
142
202
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
203
|
none: false
|
144
204
|
requirements:
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
version: 1.8.7
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
segments:
|
208
|
+
- 1
|
209
|
+
- 8
|
210
|
+
- 7
|
211
|
+
version: 1.8.7
|
153
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
213
|
none: false
|
155
214
|
requirements:
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
version: "0"
|
215
|
+
- - ">="
|
216
|
+
- !ruby/object:Gem::Version
|
217
|
+
segments:
|
218
|
+
- 0
|
219
|
+
version: "0"
|
162
220
|
requirements: []
|
163
221
|
|
164
222
|
rubyforge_project: neo4j-spatial
|