Class ProjectionCloudClient
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
Exceptions
- ArgumentNullException
Thrown when the
clientId
orclientSecret
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
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe 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
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe 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
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe 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
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe 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
FeatureThe feature that you want to project.
fromProjectionInSrid
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe 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
FeatureThe feature that you want to project.
fromProjectionInSrid
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe 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
FeatureThe feature that you want to project.
fromProjectionInProj4String
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe 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
FeatureThe feature that you want to project.
fromProjectionInProj4String
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe 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
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe 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
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe 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
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe 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
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe 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
FeatureThe feature that you want to project.
fromProjectionInSrid
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.
Returns
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
FeatureThe feature that you want to project.
fromProjectionInSrid
intThe EPSG or ESRI ID (a.k.a. SRID) of the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe Proj4 projection string describing the target spatial reference system that you want the geometry projected to.
Returns
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
FeatureThe feature that you want to project.
fromProjectionInProj4String
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInSrid
intThe EPSG or ESRI ID (a.k.a. SRID) of the target spatial reference system that you want the geometry reprojected to.
Returns
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
FeatureThe feature that you want to project.
fromProjectionInProj4String
stringThe Proj4 projection string describing the original spatial reference system in which the geometry is expressed.
toProjectionInProj4String
stringThe Proj4 projection string describing the target spatial reference system that you want the geometry projected to.