public class MajorObject
extends java.lang.Object
The MajorObject class is a binding for the C++ GDALMajorObject class.
Modifier and Type | Method | Description |
---|---|---|
void |
delete() |
|
java.lang.String |
GetDescription() |
Fetch object description.
|
java.util.Hashtable |
GetMetadata_Dict() |
Fetch metadata.
|
java.util.Hashtable |
GetMetadata_Dict(java.lang.String domain) |
Fetch metadata.
|
java.util.Vector |
GetMetadata_List() |
Fetch metadata.
|
java.util.Vector |
GetMetadata_List(java.lang.String domain) |
Fetch metadata.
|
java.util.Vector |
GetMetadataDomainList() |
|
java.lang.String |
GetMetadataItem(java.lang.String name) |
Fetch single metadata item.
|
java.lang.String |
GetMetadataItem(java.lang.String name,
java.lang.String domain) |
Fetch single metadata item.
|
void |
SetDescription(java.lang.String newDescription) |
Set object description.
|
int |
SetMetadata(java.lang.String metadataString) |
Set metadata.
|
int |
SetMetadata(java.lang.String metadataString,
java.lang.String domain) |
Set metadata.
|
int |
SetMetadata(java.util.Hashtable metadata) |
Set metadata.
|
int |
SetMetadata(java.util.Hashtable metadata,
java.lang.String domain) |
Set metadata.
|
int |
SetMetadata(java.util.Vector metadata) |
Set metadata.
|
int |
SetMetadata(java.util.Vector metadata,
java.lang.String domain) |
Set metadata.
|
int |
SetMetadataItem(java.lang.String name,
java.lang.String value) |
Set single metadata item.
|
int |
SetMetadataItem(java.lang.String name,
java.lang.String value,
java.lang.String domain) |
Set single metadata item.
|
public void delete()
public int SetMetadata(java.util.Hashtable metadata, java.lang.String domain)
The metadata is set into the domain specified.
metadata
- the metadata as a table of (key, value) tuples to applydomain
- the domain of interest. Use "" or null for the default
domain.public int SetMetadata(java.util.Hashtable metadata)
The metadata is set into the default domain
public java.lang.String GetDescription()
The semantics of the returned description are specific to the derived type. For Dataset object it is the dataset name. For Band object it is actually a description (if supported) or "".
public void SetDescription(java.lang.String newDescription)
The semantics of the returned description are specific to the derived type. For Dataset object it is the dataset name. For Band object it is actually a description (if supported) or "". Normally application code should not set the "description" for GDALDatasets. It is handled internally.
newDescription
- new descriptionpublic java.util.Vector GetMetadataDomainList()
public java.util.Hashtable GetMetadata_Dict(java.lang.String domain)
domain
- the domain of interest. Use "" or null for the default
domain.public java.util.Hashtable GetMetadata_Dict()
public java.util.Vector GetMetadata_List(java.lang.String domain)
domain
- the domain of interest. Use "" or null for the default
domain.public java.util.Vector GetMetadata_List()
Returns metadata from the default domain as a vector of strings of the format "KEY=VALUE".
public int SetMetadata(java.util.Vector metadata, java.lang.String domain)
The metadata is set into the domain specified.
metadata
- the metadata to apply as a vector of strings of the format "KEY=VALUE".domain
- the domain of interest. Use "" or null for the default
domain.public int SetMetadata(java.util.Vector metadata)
The metadata is set into the default domain
metadata
- the metadata to apply as a vector of strings of the format "KEY=VALUE".public int SetMetadata(java.lang.String metadataString, java.lang.String domain)
The metadata is set into the domain specified.
metadataString
- the metadata to apply as a string of the format "KEY=VALUE".domain
- the domain of interest. Use "" or null for the default
domain.public int SetMetadata(java.lang.String metadataString)
The metadata is set into the default domain
metadataString
- the metadata to apply as a string of the format "KEY=VALUE".public java.lang.String GetMetadataItem(java.lang.String name, java.lang.String domain)
name
- the key for the metadata item to fetch.domain
- the domain to fetch for, use null for the default domain.public java.lang.String GetMetadataItem(java.lang.String name)
The metadata item is searched into the default domain.
name
- the key for the metadata item to fetch.public int SetMetadataItem(java.lang.String name, java.lang.String value, java.lang.String domain)
name
- the key for the metadata item to fetch.value
- the value to assign to the key.domain
- the domain to set within, use null for the default domain.public int SetMetadataItem(java.lang.String name, java.lang.String value)
The metadata item is set into the default domain.
name
- the key for the metadata item to fetch.value
- the value to assign to the key.