public abstract class Sentinel2ImageryProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Sentinel2ImageryProvider.JSONFeatureIterator
Converts a JSONArray to an Iterator
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DOWNLOAD_DIRECTORY |
| Constructor and Description |
|---|
Sentinel2ImageryProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
applyCustomCertsFile(HttpsURLConnection connection,
File customCertsFile)
Load CAs from a custom certs file.
|
abstract org.geotools.feature.simple.SimpleFeatureTypeBuilder |
bandFeatureTypeBuilder()
Returns the SimpleFeatureTypeBuilder which provides the Bands schema of the repository.
|
abstract String[] |
collections()
Returns the available Product collection of this Provider.
|
protected static long |
copyLarge(InputStream input,
OutputStream output,
int contentLength)
Copy bytes from a large (over 2GB)
InputStream to an OutputStream
showing the progress of the copy. |
abstract String |
description()
Provider Description.
|
abstract boolean |
downloadScene(org.opengis.feature.simple.SimpleFeature scene,
String workspaceDir,
String userIdent,
String password)
Download the scene from the Sentinel2 repository.
|
abstract RasterBandData |
getCoverage(org.opengis.feature.simple.SimpleFeature band,
String workspaceDir)
Fetch the coverage of the specified band in the specified workspace directory
|
static Sentinel2ImageryProvider |
getProvider(String providerName)
Returns the Sentinel2 provider with the specified name.
|
static Sentinel2ImageryProvider[] |
getProviders()
Returns the available providers implementing a Sentinel2 imagery repository.
|
abstract boolean |
isAvailable()
Returns
true if this provider is ready for ingest imagery. |
abstract String |
providerName()
Provider Name (It should be unique).
|
abstract org.geotools.feature.simple.SimpleFeatureTypeBuilder |
sceneFeatureTypeBuilder()
Returns the SimpleFeatureTypeBuilder which provides the Scene schema of the repository.
|
abstract Iterator<org.opengis.feature.simple.SimpleFeature> |
searchScenes(File scenesDir,
String collection,
String platform,
String location,
org.locationtech.jts.geom.Envelope envelope,
Date startDate,
Date endDate,
int orbitNumber,
int relativeOrbitNumber)
Returns the Product/Scene collection that matches the specified criteria.
|
protected static final String DOWNLOAD_DIRECTORY
public static Sentinel2ImageryProvider[] getProviders()
public static Sentinel2ImageryProvider getProvider(String providerName)
public abstract String providerName()
public abstract String description()
public abstract String[] collections()
public abstract boolean isAvailable()
true if this provider is ready for ingest imagery.public abstract org.geotools.feature.simple.SimpleFeatureTypeBuilder sceneFeatureTypeBuilder()
throws org.opengis.referencing.NoSuchAuthorityCodeException,
org.opengis.referencing.FactoryException
org.opengis.referencing.NoSuchAuthorityCodeExceptionorg.opengis.referencing.FactoryExceptionpublic abstract org.geotools.feature.simple.SimpleFeatureTypeBuilder bandFeatureTypeBuilder()
throws org.opengis.referencing.NoSuchAuthorityCodeException,
org.opengis.referencing.FactoryException
org.opengis.referencing.NoSuchAuthorityCodeExceptionorg.opengis.referencing.FactoryExceptionpublic abstract Iterator<org.opengis.feature.simple.SimpleFeature> searchScenes(File scenesDir, String collection, String platform, String location, org.locationtech.jts.geom.Envelope envelope, Date startDate, Date endDate, int orbitNumber, int relativeOrbitNumber) throws IOException
IOExceptionpublic abstract boolean downloadScene(org.opengis.feature.simple.SimpleFeature scene,
String workspaceDir,
String userIdent,
String password)
throws IOException
IOExceptionpublic abstract RasterBandData getCoverage(org.opengis.feature.simple.SimpleFeature band, String workspaceDir) throws IOException
IOExceptionprotected static boolean applyCustomCertsFile(HttpsURLConnection connection, File customCertsFile) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected static long copyLarge(InputStream input, OutputStream output, int contentLength) throws IOException
InputStream to an OutputStream
showing the progress of the copy.IOExceptionCopyright © 2013–2020. All rights reserved.