Class ScenesBaseClient
java.lang.Object
com.azure.verticals.agrifood.farming.ScenesBaseClient
Initializes a new instance of the ScenesBaseClient type.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a satellite data ingestion job.Downloads and returns file stream as response for the given input filePath.Get a satellite data ingestion job.invoke()
Create an empty DynamicRequest with the serializer and pipeline initialized for this client.Returns a paginated list of scene resources.Get the next page of items.
-
Method Details
-
list
Returns a paginated list of scene resources.Optional Query Parameters
Optional Query Parameters Name Type Description source String Source name of scene data, default value Sentinel_2_L2A (Sentinel 2 L2A). startDateTime OffsetDateTime Scene start UTC datetime (inclusive), sample format: yyyy-MM-ddThh:mm:ssZ. endDateTime OffsetDateTime Scene end UTC datetime (inclusive), sample format: yyyy-MM-dThh:mm:ssZ. maxCloudCoveragePercentage Double Filter scenes with cloud coverage percentage less than max value. Range [0 to 100.0]. maxDarkPixelCoveragePercentage Double Filter scenes with dark pixel coverage percentage less than max value. Range [0 to 100.0]. imageNames List<String> List of image names to be filtered. imageResolutions List<Double> List of image resolutions in meters to be filtered. imageFormats List<String> List of image formats to be filtered. maxPageSize Integer Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50. skipToken String Skip token for getting next set of results. Response Body Schema
{ value: [ { sceneDateTime: OffsetDateTime provider: String source: String imageFiles: [ { fileLink: String name: String imageFormat: String(TIF) resolution: Double } ] imageFormat: String(TIF) cloudCoverPercentage: Double darkPixelPercentage: Double ndviMedianValue: Double boundaryId: String farmerId: String id: String eTag: String } ] skipToken: String nextLink: String }
- Parameters:
provider
- Provider name of scene data.farmerId
- FarmerId.boundaryId
- BoundaryId.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
createSatelliteDataIngestionJob
Create a satellite data ingestion job.Request Body Schema
{ farmerId: String boundaryId: String startDateTime: OffsetDateTime endDateTime: OffsetDateTime provider: String(Microsoft) source: String(Sentinel_2_L2A) data: { imageNames: [ String ] imageFormats: [ String ] imageResolutions: [ double ] } id: String status: String durationInSeconds: Double message: String createdDateTime: OffsetDateTime lastActionDateTime: OffsetDateTime startTime: OffsetDateTime endTime: OffsetDateTime name: String description: String properties: { String: Object } }
Response Body Schema
(recursive schema, see above)
- Parameters:
jobId
- JobId provided by user.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
getSatelliteDataIngestionJobDetails
Get a satellite data ingestion job.Response Body Schema
{ farmerId: String boundaryId: String startDateTime: OffsetDateTime endDateTime: OffsetDateTime provider: String(Microsoft) source: String(Sentinel_2_L2A) data: { imageNames: [ String ] imageFormats: [ String ] imageResolutions: [ double ] } id: String status: String durationInSeconds: Double message: String createdDateTime: OffsetDateTime lastActionDateTime: OffsetDateTime startTime: OffsetDateTime endTime: OffsetDateTime name: String description: String properties: { String: Object } }
- Parameters:
jobId
- ID of the job.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
download
Downloads and returns file stream as response for the given input filePath.- Parameters:
filePath
- cloud storage path of scene file.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
listNext
Get the next page of items.Response Body Schema
{ value: [ { sceneDateTime: OffsetDateTime provider: String source: String imageFiles: [ { fileLink: String name: String imageFormat: String(TIF) resolution: Double } ] imageFormat: String(TIF) cloudCoverPercentage: Double darkPixelPercentage: Double ndviMedianValue: Double boundaryId: String farmerId: String id: String eTag: String } ] skipToken: String nextLink: String }
- Parameters:
nextLink
- The nextLink parameter.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-
invoke
Create an empty DynamicRequest with the serializer and pipeline initialized for this client.- Returns:
- a DynamicRequest where customizations can be made before sent to the service.
-