Touchstone Re 2023 API Reference
GetGeospatialAnalysisTemplates Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ObjectManagementServiceClient Class : GetGeospatialAnalysisTemplates Method
Contains a GetGeospatialAnalysisTemplatesRequest that identifies the Business Unit SID and SQL Instance SID associated with the templates to retrieve.
Retrieves a set of Geospatial Analysis Templates.

You can manage Geospatial Analysis Templates only from the Touchstone Administration Console.

The GeospatialAnalysisTemplate() method contains the new DamagePlacementType and DamageBand parameters in the RingAnalysis Options. Enabling, you can perform the Gridded Ring Geospatial analysis using the SubmitRingExposureConcentrationAnalysisRequest() method for the retrieved geospatial templates.

Syntax
Public Function GetGeospatialAnalysisTemplates( _
   ByVal request As GetGeospatialAnalysisTemplatesRequest _
) As GetGeospatialAnalysisTemplatesResponse
Dim instance As ObjectManagementServiceClient
Dim request As GetGeospatialAnalysisTemplatesRequest
Dim value As GetGeospatialAnalysisTemplatesResponse
 
value = instance.GetGeospatialAnalysisTemplates(request)
public GetGeospatialAnalysisTemplatesResponse GetGeospatialAnalysisTemplates( 
   GetGeospatialAnalysisTemplatesRequest request
)

Parameters

request
Contains a GetGeospatialAnalysisTemplatesRequest that identifies the Business Unit SID and SQL Instance SID associated with the templates to retrieve.

Return Value

A GetGeospatialAnalysisTemplatesResponse containing a list of Geospatial Analysis Templates in the specified business unit and SQL Server instance.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To perform a Gridded Ring Geospatial analysis for the retrieved set of geospatial templates, you must specify the placement type, grid space, and radius parameters in the SubmitRingExposureConcentrationAnalysisRequest class.

For more information, see the SubmitRingExposureConcentrationAnalysis() Method.

To find the SQL Server Instance SID to pass into this method, call the GetSqlInstances() method.

Example
The following example shows how to get a list of the Geospatial Analysis Templates associated with a given Business Unit using the GetGeospatialAnalysisTemplates() method:
using AIR.Services.ObjectManagement.Api;
using System;
GetGeospatialAnalysisTemplatesRequest
class SnippetGetGeospatialAnalysisTemplates(request);
{
    private static void GetGeospatialAnalysisTemplates(int businessUnitSid, int sqlInstanceSid)
        {
            GetGeospatialAnalysisTemplatesRequest request = new GetGeospatialAnalysisTemplatesRequest();
            request.BusinessUnitSid = 1;
            request.SqlInstanceSid = 1;
            
            ObjectManagementServiceClient ecClient = new ObjectManagementServiceClient();
            GetGeospatialAnalysisTemplatesResponse resoponse = client.GetGeospatialAnalysisTemplates(request);
            if (response.Status.Code == StatusCode.Success)
            {
            foreach (var set in response.GetGeospatialAnalysisTemplates)
            var response = ecClient.GetGeospatialAnalysisTemplates(request);
            }
        }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ObjectManagementServiceClient Class
ObjectManagementServiceClient Members