Class: GoRSService

GoRSService

A service class for the remote sensing data retrieval in the application. This class provides static methods to fetch various types of remote sensing data, currently returning mock data for testing and development purposes.

new GoRSService()

Services/GoRSService/index.ts, line 11

Methods

staticGoRSService.getClientData(clientId){Promise.<Rs1Response>}

Services/GoRSService/index.ts, line 21

Remote sensing data retrieval call and returns a response for Rs1.

Name Type Description
clientId string

The client identifier.

Returns:
Type Description
Promise.<Rs1Response> A promise that resolves to the Rs1 response data.

staticGoRSService.getClientGeometries(clientId, plotIds){Promise.<Rs4Response>}

Services/GoRSService/index.ts, line 276

Simulates a remote sensing data retrieval call and returns a mock response for Rs4.

Name Type Description
clientId string

The client identifier.

plotIds Array.<(number|string)>

Array of plot identifiers.

Throws:

Will throw an error if the backend feature is not available or the request fails.

Returns:
Type Description
Promise.<Rs4Response> A promise that resolves to the Rs4 response data.

staticGoRSService.getDataPipe(pipe_id)

Services/GoRSService/index.ts, line 146

Simulates a remote sensing data retrieval call and returns a mock response for getDataPipe.

Name Type Description
pipe_id number

The plot identifier.

Throws:

Will throw an error if the backend feature is not available or the request fails.

staticGoRSService.getFeatures(pipe_id){Promise}

Services/GoRSService/index.ts, line 59

Simulates a remote sensing data retrieval call and returns a mock response for getDataPipe.

Name Type Description
pipe_id number

The plot identifier.

Throws:

Will throw an error if the backend feature is not available or the request fails.

Returns:
Type Description
Promise A promise that resolves to the getDataPipe response data.

staticGoRSService.getImage(imageName){Promise.<Blob>}

Services/GoRSService/index.ts, line 179

Simulates a remote sensing data retrieval call and returns a mock response for Rs21. This response is typically a Blob representing binary data.

Name Type Description
imageName string

The name of the image to fetch.

Throws:

Will throw an error if the backend feature is not available or the request fails.

Returns:
Type Description
Promise.<Blob> A promise that resolves to the image Blob data.

staticGoRSService.getImageData(imageName, plotIds){Promise.<Rs22Response>}

Services/GoRSService/index.ts, line 209

Simulates a remote sensing data retrieval call and returns a mock response for Rs22.

Name Type Description
imageName string

The name of the image.

plotIds Array.<(string|number)>

Array of plot identifiers.

Throws:

Will throw an error if the backend feature is not available or the request fails.

Returns:
Type Description
Promise.<Rs22Response> A promise that resolves to the Rs22 response data.

staticGoRSService.rs3(imageName, plotId){Promise.<Rs3Response>}

Services/GoRSService/index.ts, line 243

Simulates a remote sensing data retrieval call and returns a mock response for Rs3.

Name Type Description
imageName string

The name of the image.

plotId number

The plot identifier.

Throws:

Will throw an error if the backend feature is not available or the request fails.

Returns:
Type Description
Promise.<Rs3Response> A promise that resolves to the Rs3 response data.