Table of Contents

Class ProjectionCloudClient

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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

public class ProjectionCloudClient : CloudClient, IDisposable
Inheritance
ProjectionCloudClient
Implements
Inherited Members

Remarks

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

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 clientId or clientSecret is null.

Methods

Project(IEnumerable<Feature>, int, int)

Converts multi geometries from one spatial reference system to another.

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

Parameters

features IEnumerable<Feature>

The feature that you want to project.

fromProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Collection<Feature>

Projected geometry.

Project(IEnumerable<Feature>, int, string)

Converts multi geometries from one spatial reference system to another.

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

Parameters

features IEnumerable<Feature>

The feature that you want to project.

fromProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Collection<Feature>

Projected geometry.

Project(IEnumerable<Feature>, string, int)

Converts multi geometries from one spatial reference system to another.

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

Parameters

features IEnumerable<Feature>

The feature that you want to project.

fromProjectionInProj4String string

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Collection<Feature>

Projected geometry.

Project(IEnumerable<Feature>, string, string)

Converts multi 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

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Collection<Feature>

Projected geometry.

Project(Feature, int, int)

Convert one 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 int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Feature

Projected geometry.

Project(Feature, int, string)

Convert one 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 int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Feature

Projected geometry.

Project(Feature, string, int)

Convert one 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

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Feature

Projected geometry.

Project(Feature, string, string)

Convert one 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

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Feature

Projected geometry.

ProjectAsync(IEnumerable<Feature>, int, int)

Converts multi 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 feature that you want to project.

fromProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Task<Collection<Feature>>

Projected geometry.

ProjectAsync(IEnumerable<Feature>, int, string)

Converts multi 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 feature that you want to project.

fromProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Task<Collection<Feature>>

Projected geometry.

ProjectAsync(IEnumerable<Feature>, string, int)

Converts multi 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 feature that you want to project.

fromProjectionInProj4String string

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Task<Collection<Feature>>

Projected geometry.

ProjectAsync(IEnumerable<Feature>, string, string)

Converts multi 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

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Task<Collection<Feature>>

Projected geometry.

ProjectAsync(Feature, int, int)

Convert one 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 int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Task<Feature>

Projected geometry.

ProjectAsync(Feature, int, string)

Convert one 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 int

The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Task<Feature>

Projected geometry.

ProjectAsync(Feature, string, int)

Convert one 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

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInSrid int

The EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.

Returns

Task<Feature>

Projected geometry.

ProjectAsync(Feature, string, string)

Convert one 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

The Proj4 projection string describing the original spatial reference system in which the geometry is expressed.

toProjectionInProj4String string

The Proj4 projection string describing the target spatial reference system that you want the geometry projected to.

Returns

Task<Feature>

Projected geometry.