Skip to content

Commit e6dc55e

Browse files
committed
add memory workspace
1 parent b36ec94 commit e6dc55e

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

lib/geoscript/layer/layer.rb

Whitespace-only changes.

lib/geoscript/layer/shapefile.rb

Whitespace-only changes.

lib/geoscript/workspace.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'workspace/memory'

lib/geoscript/workspace/memory.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
java_import org.geotools.data.memory.MemoryDataStore
2+
3+
module GeoScript
4+
module Workspace
5+
class Memory < MemoryDataStore
6+
def initialize; super; end
7+
end
8+
end
9+
end
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
java_import org.geotools.data.DataStore
2+
3+
module GeoScript
4+
module Workspace
5+
class Workspace < DataStore
6+
def initialize(store = nil, params = nil)
7+
unless store
8+
@store = GeoScript::Workspace::Memory.new
9+
elsif store.respond_to? :create
10+
end
11+
end
12+
end
13+
end
14+
end

0 commit comments

Comments
 (0)