public abstract class GDALCreateOptionsHandler extends Object
GDALCreateOptionsHandler
constructor.GDALCreateOptionsHandler
constructor you
need to instantiate the createOptions
array with the number of
supported create options. Then, you need to set the proper fields of each
GDALCreateOption
using the constructor as shown in the example listed
below.GDALCreateOption
source code for more information about
validityValues
and others fields. final String nameOfCreateOptionValidityValues[] = new String[N];
nameOfCreateOptionValidityValues[0] = "FIRST VALUE";
nameOfCreateOptionValidityValues[1] = "SECOND VALUE";
...
nameOfCreateOptionValidityValues[N-1] = "LAST VALUE";
GDALCreateOption
setting the
optionName
, the validityCheckType
, the
validityValues
array and the representedType
.createOptions[i] = new GDALCreateOption( "CREATEOPTIONNAME",
GDALCreateOption.VALIDITYCHECKTYPE_XXXX, nameOfCreateOptionValidityValues, GDALCreateOption.TYPE_XXXX);
final String qualityValues[] = new String[2];
qualityValues[0] = "1";
qualityValues[1] = "100";
...
createOptions[0]=new GDALCreateOption("Quality",
GDALCreateOption.VALIDITYCHECKTYPE_VALUE_BELONGINGRANGE_EXTREMESINCLUDED,
qualityValues, GDALCreateOption.TYPE_INT);
Available information about create options properties can be found at GDAL Supported formats list.
Look at the proper format page to retrieve names and values.Constructor and Description |
---|
GDALCreateOptionsHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addCreateOption(GDALCreateOption option)
This method add a create option to this handler.
|
void |
addCreateOptions(Collection<GDALCreateOption> options)
This method add a collection of create options to this handler.
|
List<String> |
getCreateOptions()
Provides to return a
List containing String s
representing all specified create options we need to give to the writer
when it call GDAL's create/createCopy method. |
void |
setCreateOption(String optionName)
Set the create option identified by
optionName |
void |
setCreateOption(String optionName,
float optionValue)
Set the value of the create option identified by
optionName
to optionValue |
void |
setCreateOption(String optionName,
int optionValue)
Set the value of the create option identified by
optionName
to optionValue |
void |
setCreateOption(String optionName,
String optionValue)
Set the value of the create option identified by
optionName
to optionValue |
public List<String> getCreateOptions()
List
containing String
s
representing all specified create options we need to give to the writer
when it call GDAL's create/createCopy method.public void setCreateOption(String optionName, String optionValue)
optionName
to optionValue
optionName
- name of the create option we want to set.optionValue
- value for the specified create option.public void setCreateOption(String optionName)
optionName
optionName
- name of the create option we want to set.public void addCreateOption(GDALCreateOption option)
option
- to add to this handler.public void addCreateOptions(Collection<GDALCreateOption> options)
Objects that are not of type GDALCreateOption
are not added.
option
- to add to this handler.public void setCreateOption(String optionName, int optionValue)
optionName
to optionValue
optionName
- name of the create option we want to set.optionValue
- value for the specified create option.public void setCreateOption(String optionName, float optionValue)
optionName
to optionValue
optionName
- name of the create option we want to set.optionValue
- value for the specified create option.Copyright © 2006–2016 GeoSolutions. All rights reserved.