class OGR extends Workspace
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 |
Constructor and description |
---|
OGR
(java.lang.String driver, java.lang.String dataset) Create a new OGR Workspace |
OGR
(java.lang.String dataset) Create a new OGR Workspace |
OGR
(OGRDataStore ds) |
Type Params | Return Type | Name and description |
---|---|---|
|
Layer |
add(Layer layer) Add a Layer to the Workspace |
|
Layer |
add(Map options, Layer layer) Add a Layer to the Workspace |
|
Layer |
add(Layer layer, java.lang.String name, int chunk) Add a Layer to this Workspace |
|
Layer |
add(Map options, Layer layer, java.lang.String name, int chunk) 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(Map options, Schema schema, boolean write) Create a new Layer from a Schema |
|
Layer |
create(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 |
The dataset string (see individual formats)
The driver string (http://www.gdal.org/ogr/ogr_formats.html)
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