Java WasdiLib¶
-
public class
WasdiLib
¶
Constructors¶
Methods¶
addFileToWASDI¶
-
public String
addFileToWASDI
(String sFileName)¶ Ingest a new file in the Active WASDI Workspace waiting for the result The method takes a file saved in the workspace root (see getSaveFilePath) not already added to the WS To work be sure that the file is on the server
- Parameters
sFileName – Name of the file to add
- Returns
Output state of the ingestion process
asynchAddFileToWASDI¶
-
public String
asynchAddFileToWASDI
(String sFileName)¶ Ingest a new file in the Active WASDI Workspace in an asynch way The method takes a file saved in the workspace root (see getSaveFilePath) not already added to the WS To work be sure that the file is on the server
- Parameters
sFileName – Name of the file to add
- Returns
Process Id of the ingestion process
asynchExecuteProcessor¶
asynchExecuteProcessor¶
asynchExecuteWorkflow¶
asynchMosaic¶
asynchMosaic¶
asynchMosaic¶
-
public String
asynchMosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands)¶ Asynch Mosaic with also Bands Parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
- Returns
Process id
asynchMosaic¶
-
public String
asynchMosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY)¶ Asynch Mosaic with also Pixel Size Parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
- Returns
Process id
asynchMosaic¶
-
public String
asynchMosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY, String sCrs)¶ Asynch Mosaic with also CRS Input
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
sCrs – WKT of the CRS to use
- Returns
Process id
asynchMosaic¶
-
public String
asynchMosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY, String sCrs, double dSouthBound, double dNorthBound, double dEastBound, double dWestBound, String sOverlappingMethod, boolean bShowSourceProducts, String sElevationModelName, String sResamplingName, boolean bUpdateMode, boolean bNativeResolution, String sCombine)¶ Asynch Mosaic with all the input parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
sCrs – WKT of the CRS to use
dSouthBound – South Bound
dNorthBound – North Bound
dEastBound – East Bound
dWestBound – West Bound
sOverlappingMethod – Overlapping Method
bShowSourceProducts – Show Source Products Flag
sElevationModelName – DEM Model Name
sResamplingName – Resampling Method Name
bUpdateMode – Update Mode Flag
bNativeResolution – Native Resolution Flag
sCombine – Combine verb
- Returns
Process id
checkSession¶
copyStream¶
-
protected void
copyStream
(InputStream oInputStream, OutputStream oOutputStream)¶
copyStreamAndClose¶
-
protected void
copyStreamAndClose
(InputStream oInputStream, OutputStream oOutputStream)¶ Copy Input Stream in Output Stream
- Parameters
oInputStream –
oOutputStream –
- Throws
IOException –
deleteProduct¶
downloadFile¶
executeWorkflow¶
getFoundProductLink¶
getFoundProductName¶
getFullProductPath¶
getParametersFilePath¶
getPath¶
getProcessStatus¶
getProductsByActiveWorkspace¶
getProductsByWorkspace¶
getSavePath¶
getStandardHeaders¶
getStreamingHeaders¶
getWorkflows¶
getWorkspaceIdByName¶
getWorkspaceOwnerByName¶
getWorkspaceOwnerByWSId¶
getWorkspaces¶
httpGet¶
httpPost¶
importProduct¶
importProduct¶
importProduct¶
init¶
internalAddFileToWASDI¶
-
protected String
internalAddFileToWASDI
(String sFileName, Boolean bAsynch)¶ Private version of the add file to wasdi function. Adds a generated file to current open workspace
- Parameters
sFileName – File Name to add to the open workspace
bAsynch – true if the process has to be asynch, false to wait for the result
internalExecuteWorkflow¶
-
protected String
internalExecuteWorkflow
(String[] asInputFileNames, String[] asOutputFileNames, String sWorkflowName, Boolean bAsynch)¶ Internal execute workflow
- Parameters
asInputFileNames –
asOutputFileNames –
sWorkflowName –
bAsynch – true if asynch, false for synch
- Returns
if Asynch, the process Id else the ouput status of the workflow process
internalInit¶
internalMosaic¶
-
protected String
internalMosaic
(boolean bAsynch, List<String> asInputFiles, String sOutputFile)¶ Protected Mosaic with minimum parameters
- Parameters
bAsynch – True to return after the triggering, False to wait the process to finish
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
- Returns
Process id or end status of the process
internalMosaic¶
-
protected String
internalMosaic
(boolean bAsynch, List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue)¶ Protected Mosaic with also nodata value parameters
- Parameters
bAsynch – True to return after the triggering, False to wait the process to finish
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
sNoDataValue – Value to use in output as no data
sInputIgnoreValue – Value to use as input no data
- Returns
Process id or end status of the process
internalMosaic¶
-
protected String
internalMosaic
(boolean bAsynch, List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands)¶ Protected Mosaic with also Bands Parameters
- Parameters
bAsynch – True to return after the triggering, False to wait the process to finish
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
- Returns
Process id or end status of the process
internalMosaic¶
-
protected String
internalMosaic
(boolean bAsynch, List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY)¶ Protected Mosaic with also Pixel Size Parameters
- Parameters
bAsynch – True to return after the triggering, False to wait the process to finish
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
- Returns
Process id or end status of the process
internalMosaic¶
-
protected String
internalMosaic
(boolean bAsynch, List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY, String sCrs)¶ Protected Mosaic with also CRS Input
- Parameters
bAsynch – True to return after the triggering, False to wait the process to finish
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
sCrs – WKT of the CRS to use
- Returns
Process id or end status of the process
internalMosaic¶
-
protected String
internalMosaic
(boolean bAsynch, List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY, String sCrs, double dSouthBound, double dNorthBound, double dEastBound, double dWestBound, String sOverlappingMethod, boolean bShowSourceProducts, String sElevationModelName, String sResamplingName, boolean bUpdateMode, boolean bNativeResolution, String sCombine)¶ Protected Mosaic with all the input parameters
- Parameters
bAsynch – True to return after the triggering, False to wait the process to finish
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
sCrs – WKT of the CRS to use
dSouthBound – South Bound
dNorthBound – North Bound
dEastBound – East Bound
dWestBound – West Bound
sOverlappingMethod – Overlapping Method
bShowSourceProducts – Show Source Products Flag
sElevationModelName – DEM Model Name
sResamplingName – Resampling Method Name
bUpdateMode – Update Mode Flag
bNativeResolution – Native Resolution Flag
sCombine – Combine verb
- Returns
Process id or end status of the process
login¶
mosaic¶
mosaic¶
-
public String
mosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue)¶ Mosaic with also NoData Parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
sNoDataValue – Value to use in output as no data
sInputIgnoreValue – Value to use as input no data
- Returns
End status of the process
mosaic¶
-
public String
mosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands)¶ Mosaic with also Bands Parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
- Returns
End status of the process
mosaic¶
-
public String
mosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY)¶ Mosaic with also Pixel Size Parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
- Returns
End status of the process
mosaic¶
-
public String
mosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY, String sCrs)¶ Mosaic with also CRS Input
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
sCrs – WKT of the CRS to use
- Returns
End status of the process
mosaic¶
-
public String
mosaic
(List<String> asInputFiles, String sOutputFile, String sNoDataValue, String sInputIgnoreValue, List<String> asBands, double dPixelSizeX, double dPixelSizeY, String sCrs, double dSouthBound, double dNorthBound, double dEastBound, double dWestBound, String sOverlappingMethod, boolean bShowSourceProducts, String sElevationModelName, String sResamplingName, boolean bUpdateMode, boolean bNativeResolution, String sCombine)¶ Mosaic with all the input parameters
- Parameters
asInputFiles – List of input files to mosaic
sOutputFile – Name of the mosaic output file
asBands – List of the bands to use for the mosaic
dPixelSizeX – X Pixel Size
dPixelSizeY – Y Pixel Size
sCrs – WKT of the CRS to use
dSouthBound – South Bound
dNorthBound – North Bound
dEastBound – East Bound
dWestBound – West Bound
sOverlappingMethod – Overlapping Method
bShowSourceProducts – Show Source Products Flag
sElevationModelName – DEM Model Name
sResamplingName – Resampling Method Name
bUpdateMode – Update Mode Flag
bNativeResolution – Native Resolution Flag
sCombine – Combine verb
- Returns
End status of the process
openWorkspace¶
searchEOImages¶
-
public List<Map<String, Object>>
searchEOImages
(String sPlatform, String sDateFrom, String sDateTo, Double dULLat, Double dULLon, Double dLRLat, Double dLRLon, String sProductType, Integer iOrbitNumber, String sSensorOperationalMode, String sCloudCoverage)¶ Search EO-Images
- Parameters
sPlatform – Satellite Platform. Accepts “S1”,”S2”
sDateFrom – Starting date in format “YYYY-MM-DD”
sDateTo – End date in format “YYYY-MM-DD”
dULLat – Upper Left Lat Coordinate. Can be null.
dULLon – Upper Left Lon Coordinate. Can be null.
dLRLat – Lower Right Lat Coordinate. Can be null.
dLRLon – Lower Right Lon Coordinate. Can be null.
sProductType – Product Type. If Platform = “S1” -> Accepts “SLC”,”GRD”, “OCN”. If Platform = “S2” -> Accepts “S2MSI1C”,”S2MSI2Ap”,”S2MSI2A”. Can be null.
iOrbitNumber – Sentinel Orbit Number. Can be null.
sSensorOperationalMode – Sensor Operational Mode. ONLY for S1. Accepts -> “SM”, “IW”, “EW”, “WV”. Can be null. Ignored for Platform “S2”
sCloudCoverage – Cloud Coverage. Sample syntax: [0 TO 9.4]
- Returns
List of the available products as a LIST of Dictionary representing JSON Object: { footprint = id = link = provider = Size = title = properties = < Another JSON Object containing other product-specific info > }
setActiveWorkspace¶
setDownloadActive¶
setIsOnServer¶
setMyProcId¶
setParametersFilePath¶
setProcessPayload¶
subset¶
-
public String
subset
(String sInputFile, String sOutputFile, double dLatN, double dLonW, double dLatS, double dLonE)¶ Make a Subset (tile) of an input image in a specified Lat Lon Rectangle
- Parameters
sInputFile – Name of the input file
sOutputFile – Name of the output file
dLatN – Lat North Coordinate
dLonW – Lon West Coordinate
dLatS – Lat South Coordinate
dLonE – Lon East Coordinate
- Returns
Status of the operation