Class MajorObject
The MajorObject class is a binding for the C++ GDALMajorObject class.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Fetch object description.Fetch metadata.GetMetadata_Dict(String domain) Fetch metadata.Fetch metadata.GetMetadata_List(String domain) Fetch metadata.GetMetadataItem(String name) Fetch single metadata item.GetMetadataItem(String name, String domain) Fetch single metadata item.voidSetDescription(String newDescription) Set object description.intSetMetadata(String metadataString) Set metadata.intSetMetadata(String metadataString, String domain) Set metadata.intSetMetadata(Hashtable metadata) Set metadata.intSetMetadata(Hashtable metadata, String domain) Set metadata.intSetMetadata(Vector metadata) Set metadata.intSetMetadata(Vector metadata, String domain) Set metadata.intSetMetadataItem(String name, String value) Set single metadata item.intSetMetadataItem(String name, String value, String domain) Set single metadata item.
-
Method Details
-
delete
public void delete() -
SetMetadata
Set metadata.The metadata is set into the domain specified.
- Parameters:
metadata- the metadata as a table of (key, value) tuples to applydomain- the domain of interest. Use "" or null for the default domain.- Returns:
- gdalconst.CE_None on success, gdalconst.CE_Failure on failure and gdalconst.CE_Warning if the metadata has been accepted, but is likely not maintained persistently by the underlying object between sessions.
-
SetMetadata
Set metadata.The metadata is set into the default domain
- Returns:
- gdalconst.CE_None on success, gdalconst.CE_Failure on failure and gdalconst.CE_Warning if the metadata has been accepted, but is likely not maintained persistently by the underlying object between sessions.
- Since:
- Java bindings 1.7.0
-
GetDescription
Fetch object description.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 "".
- Returns:
- description
-
SetDescription
Set object description.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.
- Parameters:
newDescription- new description
-
GetMetadataDomainList
-
GetMetadata_Dict
-
GetMetadata_Dict
Fetch metadata. Returns metadata from the default domain as (key, value) tuples in the result table- Returns:
- null or a hash table with metadata
- Since:
- Java bindings 1.7.0
-
GetMetadata_List
-
GetMetadata_List
Fetch metadata.Returns metadata from the default domain as a vector of strings of the format "KEY=VALUE".
- Returns:
- null or a vector of strings
- Since:
- Java bindings 1.7.0
-
SetMetadata
Set metadata.The metadata is set into the domain specified.
- Parameters:
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.- Returns:
- gdalconst.CE_None on success, gdalconst.CE_Failure on failure and gdalconst.CE_Warning if the metadata has been accepted, but is likely not maintained persistently by the underlying object between sessions.
- Since:
- Java bindings 1.7.0
-
SetMetadata
Set metadata.The metadata is set into the default domain
- Parameters:
metadata- the metadata to apply as a vector of strings of the format "KEY=VALUE".- Returns:
- gdalconst.CE_None on success, gdalconst.CE_Failure on failure and gdalconst.CE_Warning if the metadata has been accepted, but is likely not maintained persistently by the underlying object between sessions.
- Since:
- Java bindings 1.7.0
-
SetMetadata
Set metadata.The metadata is set into the domain specified.
- Parameters:
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.- Returns:
- gdalconst.CE_None on success, gdalconst.CE_Failure on failure and gdalconst.CE_Warning if the metadata has been accepted, but is likely not maintained persistently by the underlying object between sessions.
-
SetMetadata
Set metadata.The metadata is set into the default domain
- Parameters:
metadataString- the metadata to apply as a string of the format "KEY=VALUE".- Returns:
- gdalconst.CE_None on success, gdalconst.CE_Failure on failure and gdalconst.CE_Warning if the metadata has been accepted, but is likely not maintained persistently by the underlying object between sessions.
- Since:
- Java bindings 1.7.0
-
GetMetadataItem
-
GetMetadataItem
-
SetMetadataItem
Set single metadata item.- Parameters:
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.- Returns:
- gdalconst.CE_None on success, or an error code on failure.
-
SetMetadataItem
Set single metadata item.The metadata item is set into the default domain.
- Parameters:
name- the key for the metadata item to fetch.value- the value to assign to the key.- Returns:
- gdalconst.CE_None on success, or an error code on failure.
- Since:
- Java bindings 1.7.0
-