public final class VSIUtils extends Object
Constructor and Description |
---|
VSIUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addAlphaToVRT(Dataset dataset)
Add an alpha band to a VRT dataset in-place based on the dataset's mask.
|
static Dataset |
datasetToVRT(Dataset source,
File destination)
Generate and create a VRT file that links any given GDAL
Dataset , handling a null
response as a IOException |
static String |
getFileName(String input)
Get a filename from a source location
|
static boolean |
isVSILocation(String input)
Determine if an input
String is a valid VSI-prefixed Virtual File System location |
static Dataset |
openDataset(String input)
|
public static boolean isVSILocation(String input)
String
is a valid VSI-prefixed Virtual File System locationinput
- String
representation of a virtual locationpublic static String getFileName(String input)
public static Dataset openDataset(String input) throws IOException
input
- String
representation of a virtual locationDataset
object containing the layer dataIOException
public static void addAlphaToVRT(Dataset dataset)
dataset
- The dataset object to add an alpha band to.public static Dataset datasetToVRT(Dataset source, File destination) throws IOException
Dataset
, handling a null
response as a IOException
source
- input GDAL Dataset
destination
- output VRT File
objectDataset
IOException
Copyright © 1996–2022 Geotools. All rights reserved.