A GDAL/OGR based Workspace requires a native installation of GDAL/OGR with JNI bindings.
Modifiers | Name | Description |
---|---|---|
static class |
OGR.Factory |
The OGR WorkspaceFactory |
Type | Name and description |
---|---|
Layer |
add(Layer layer) Add a Layer to the Workspace |
Layer |
add(java.util.Map options, Layer layer) Add a Layer to the Workspace |
Layer |
add(Layer layer, java.lang.String name, int chunk = 1000) Add a Layer to this Workspace |
Layer |
add(java.util.Map options, Layer layer, java.lang.String name, int chunk = 1000) Add an existing Layer to this Workspace |
Layer |
create(Schema schema) Create a Layer from a Schema |
Layer |
create(Schema schema, boolean write) Create a new Layer from a Schema |
Layer |
create(java.util.Map options, Schema schema, boolean write) Create a new Layer from a Schema |
Layer |
create(java.util.Map options = [:], Cursor c) Create a Layer from a Cursor |
static java.util.Set<java.lang.String> |
getDrivers() Get a Set of drivers that GDAL has been compiled to support. |
java.lang.String |
getFormat() Get the format |
static boolean |
isAvailable() Get whether the OGR Workspace can be used. |
static void |
setErrorHandler(java.lang.String name) Set the OGR/GDAL Error Handler |
java.lang.String |
toString() The String representation |
Methods inherited from class | Name |
---|---|
class Workspace |
add, add, close, create, create, get, getAt, getFormat, getLayers, getNames, getParameters, getWorkspace, getWorkspace, getWorkspaceNames, getWorkspaceParameters, has, readFeatures, remove, remove, withWorkspace, withWorkspace, withWorkspace, wrap |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new OGR Workspace
driver
- The driverdataset
- The datasetCreate a new OGR Workspace
dataset
- The datasetAdd a Layer to the Workspace
layer
- The Layer to addAdd a Layer to the Workspace
options
- The OGR options
layer
- The Layer to addAdd a Layer to this Workspace
layer
- The Layer to addname
- The name of the new Layerchunk
- The number of Features to read from the Layer at a timeAdd an existing Layer to this Workspace
options
- The OGR options
layer
- The Layer to addname
- The new Layer namechunk
- The number of Features to read at one timeCreate a Layer from a Schema
schema
- The SchemaCreate a new Layer from a Schema
schema
- The Schemawrite
- Whether to force the immediate creation of the LayerCreate a new Layer from a Schema
options
- OGR Layer creation options
schema
- The Schemawrite
- Whether to force the immediate creation of the LayerCreate a Layer from a Cursor
options
- The OGR options
c
- The CursorGet a Set of drivers that GDAL has been compiled to support.
Get the format
Get whether the OGR Workspace can be used. The native GDAL/OGR libraries must be installed correctly.
Set the OGR/GDAL Error Handler
name
- The error handler name (quiet, logging, or default)The String representation