Skip to content

ProjectionCloudClient

Namespace: ThinkGeo.Core

A class that provides the methods to access the GIS Server Projection APIs.

public class ProjectionCloudClient : CloudClient, System.IDisposable

Inheritance ObjectCloudClientProjectionCloudClient
Implements IDisposable

Remarks:

A class that provides the methods to access the GIS Server Projection APIs.

Properties

TimeoutInSeconds

The request timeout, default 100 seconds

public int TimeoutInSeconds { get; set; }

Property Value

Int32

WebProxy

The proxy used for requesting a Web Response.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

ClientId

A GIS Server NativeConfidential client ID.

public string ClientId { get; set; }

Property Value

String

ClientSecret

A GIS Server NativeConfidential client secret.

public string ClientSecret { get; set; }

Property Value

String

BaseUris

Candidate Gis Server Uris. This collection must have one uri at least before sending any request.

public Collection<Uri> BaseUris { get; }

Property Value

Collection<Uri>

Constructors

ProjectionCloudClient()

Create an instance of the Projection client, you need to apply ClientId and ClientSecret by properties.

public ProjectionCloudClient()

ProjectionCloudClient(String, String)

Initializes an instance of the Projection client with a GIS Server client ID and Secret.

public ProjectionCloudClient(string clientId, string clientSecret)

Parameters

clientId String
The ClientId for the auth.

clientSecret String
The ClientSecret for the auth.

Exceptions

ArgumentNullException
Thrown when the or is null.

Methods

Project(Feature, Int32, Int32)

Converts a geometry from one spatial reference system to another.

public Feature Project(Feature feature, int fromProjectionInSrid, int toProjectionInSrid)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Feature
The projected geometry.

Project(Feature, Int32, String)

Converts a geometry from one spatial reference system to another.

public Feature Project(Feature feature, int fromProjectionInSrid, string toProjectionInProj4String)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Feature
The projected geometry.

Project(Feature, String, Int32)

Converts a geometry from one spatial reference system to another.

public Feature Project(Feature feature, string fromProjectionInProj4String, int toProjectionInSrid)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Feature
The projected geometry.

Project(Feature, String, String)

Converts a geometry from one spatial reference system to another.

public Feature Project(Feature feature, string fromProjectionInProj4String, string toProjectionInProj4String)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Feature
The projected geometry.

ProjectAsync(Feature, Int32, Int32)

Asynchronously converts a geometry from one spatial reference system to another.

public Task<Feature> ProjectAsync(Feature feature, int fromProjectionInSrid, int toProjectionInSrid)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Task<Feature>
A task whose result contains the projected geometry.

ProjectAsync(Feature, Int32, String)

Asynchronously converts a geometry from one spatial reference system to another.

public Task<Feature> ProjectAsync(Feature feature, int fromProjectionInSrid, string toProjectionInProj4String)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Task<Feature>
A task whose result contains the projected geometry.

ProjectAsync(Feature, String, Int32)

Asynchronously converts a geometry from one spatial reference system to another.

public Task<Feature> ProjectAsync(Feature feature, string fromProjectionInProj4String, int toProjectionInSrid)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Task<Feature>
A task whose result contains the projected geometry.

ProjectAsync(Feature, String, String)

Asynchronously converts a geometry from one spatial reference system to another.

public Task<Feature> ProjectAsync(Feature feature, string fromProjectionInProj4String, string toProjectionInProj4String)

Parameters

feature Feature
The feature that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Task<Feature>
A task whose result contains the projected geometry.

Project(IEnumerable<Feature>, Int32, Int32)

Converts multiple geometries from one spatial reference system to another.

public Collection<Feature> Project(IEnumerable<Feature> features, int fromProjectionInSrid, int toProjectionInSrid)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Collection<Feature>
The projected geometries.

Project(IEnumerable<Feature>, Int32, String)

Converts multiple geometries from one spatial reference system to another.

public Collection<Feature> Project(IEnumerable<Feature> features, int fromProjectionInSrid, string toProjectionInProj4String)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Collection<Feature>
The projected geometries.

Project(IEnumerable<Feature>, String, Int32)

Converts multiple geometries from one spatial reference system to another.

public Collection<Feature> Project(IEnumerable<Feature> features, string fromProjectionInProj4String, int toProjectionInSrid)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Collection<Feature>
The projected geometries.

Project(IEnumerable<Feature>, String, String)

Converts multiple geometries from one spatial reference system to another.

public Collection<Feature> Project(IEnumerable<Feature> features, string fromProjectionInProj4String, string toProjectionInProj4String)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Collection<Feature>
The projected geometries.

ProjectAsync(IEnumerable<Feature>, Int32, Int32)

Asynchronously converts multiple geometries from one spatial reference system to another.

public Task<Collection<Feature>> ProjectAsync(IEnumerable<Feature> features, int fromProjectionInSrid, int toProjectionInSrid)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Task<Collection<Feature>>
A task whose result contains the projected geometries.

ProjectAsync(IEnumerable<Feature>, Int32, String)

Asynchronously converts multiple geometries from one spatial reference system to another.

public Task<Collection<Feature>> ProjectAsync(IEnumerable<Feature> features, int fromProjectionInSrid, string toProjectionInProj4String)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInSrid Int32
The EPSG or ESRI identifier describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Task<Collection<Feature>>
A task whose result contains the projected geometries.

ProjectAsync(IEnumerable<Feature>, String, Int32)

Asynchronously converts multiple geometries from one spatial reference system to another.

public Task<Collection<Feature>> ProjectAsync(IEnumerable<Feature> features, string fromProjectionInProj4String, int toProjectionInSrid)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInSrid Int32
The EPSG or ESRI identifier describing the target spatial reference system.

Returns

Task<Collection<Feature>>
A task whose result contains the projected geometries.

ProjectAsync(IEnumerable<Feature>, String, String)

Asynchronously converts multiple geometries from one spatial reference system to another.

public Task<Collection<Feature>> ProjectAsync(IEnumerable<Feature> features, string fromProjectionInProj4String, string toProjectionInProj4String)

Parameters

features IEnumerable<Feature>
The features that you want to project.

fromProjectionInProj4String String
Proj4 projection string describing the source spatial reference system.

toProjectionInProj4String String
Proj4 projection string describing the target spatial reference system.

Returns

Task<Collection<Feature>>
A task whose result contains the projected geometries.

Events

GettingAccessToken

Occurs before getting an AccessToken.

public event EventHandler<GettingAccessTokenEventArgs> GettingAccessToken;

SendingWebRequest

Occurs before sending a web request.

public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest;

SentWebRequest

Occurs after the response of a web request is gotten.

public event EventHandler<SentWebRequestEventArgs> SentWebRequest;