ProjectionCloudClient¶
Namespace: ThinkGeo.Core
A class that provides the methods to access the GIS Server Projection APIs.
public class ProjectionCloudClient : CloudClient, System.IDisposable
Inheritance Object → CloudClient → ProjectionCloudClient
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¶
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¶
ClientSecret¶
A GIS Server NativeConfidential client secret.
public string ClientSecret { get; set; }
Property Value¶
BaseUris¶
Candidate Gis Server Uris. This collection must have one uri at least before sending any request.
public Collection<Uri> BaseUris { get; }
Property Value¶
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)¶
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
Int32
The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the
geometry is expressed.
toProjectionInSrid
Int32
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, Int32, 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
Int32
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, Int32)¶
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
Int32
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(Feature, Int32, Int32)¶
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
Int32
The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the
geometry is expressed.
toProjectionInSrid
Int32
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, Int32, 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
Int32
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, Int32)¶
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
Int32
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.
Project(IEnumerable<Feature>, Int32, Int32)¶
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
Int32
The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the
geometry is expressed.
toProjectionInSrid
Int32
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>, Int32, 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
Int32
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, Int32)¶
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
Int32
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.
ProjectAsync(IEnumerable<Feature>, Int32, Int32)¶
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
Int32
The EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the
geometry is expressed.
toProjectionInSrid
Int32
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>, Int32, 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
Int32
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, Int32)¶
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
Int32
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.
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;