class Memory extends Workspace
A Memory Workspace stores it's Layers in memory.
Memory mem = new Memory() Layer layer = mem.create('widgets',[new Field("geom", "Point"), new Field("name", "String")]) layer.add([new Point(1,1), "one"]) layer.add([new Point(2,2), "two"]) layer.add([new Point(3,3), "three"])
Modifiers | Name | Description |
---|---|---|
static class |
Memory.Factory |
The Memory WorkspaceFactory |
Constructor and description |
---|
Memory() Create a new Memory Workspace |
Memory(MemoryDataStore ds) Create a new Memory Workspace from a GeoTools MemoryDataStore |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getFormat() Get the format |
Methods inherited from class | Name |
---|---|
class Workspace |
add, add, close, create, create, get, getAt, getFormat, getLayers, getNames, getParameters, getStyle, getWorkspace, getWorkspace, getWorkspaceNames, getWorkspaceParameters, has, readFeatures, remove, remove, withWorkspace, withWorkspace, withWorkspace, wrap |
Create a new Memory Workspace
Create a new Memory Workspace from a GeoTools MemoryDataStore
ds
- The MemoryDataStore