MapsQueryCloudClient¶
Namespace: ThinkGeo.Core
A class provides the methods to access the MapsQuery APIs.
public class MapsQueryCloudClient : CloudClient, System.IDisposable
Inheritance Object → CloudClient → MapsQueryCloudClient
Implements IDisposable
Remarks:
A class provides the methods to access the MapsQuery 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¶
MapsQueryCloudClient()¶
Initilizes an instance. You need apply client Id and secret by properties.
public MapsQueryCloudClient()
MapsQueryCloudClient(String, String)¶
Initializes an instance with ClientID and ClientSecret. It will send a request to GIS Server to gain the token which will be added to the Header for all the requests.
public MapsQueryCloudClient(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¶
GetFeaturesWithin(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within the target shape.
public CloudMapsQueryResult GetFeaturesWithin(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithin(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within the target shape.
public CloudMapsQueryResult GetFeaturesWithin(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithin(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within the target shape.
public CloudMapsQueryResult GetFeaturesWithin(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesContaining(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that contain the target shape.
public CloudMapsQueryResult GetFeaturesContaining(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesContaining(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that contain the target shape.
public CloudMapsQueryResult GetFeaturesContaining(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesContaining(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that contain the target shape.
public CloudMapsQueryResult GetFeaturesContaining(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesIntersecting(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that intersect the target shape.
public CloudMapsQueryResult GetFeaturesIntersecting(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesIntersecting(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that intersect the target shape.
public CloudMapsQueryResult GetFeaturesIntersecting(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesIntersecting(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that intersect the target shape.
public CloudMapsQueryResult GetFeaturesIntersecting(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesOverlapping(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that overlap the target shape.
public CloudMapsQueryResult GetFeaturesOverlapping(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesOverlapping(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that overlap the target shape.
public CloudMapsQueryResult GetFeaturesOverlapping(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesOverlapping(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that overlap the target shape.
public CloudMapsQueryResult GetFeaturesOverlapping(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesTouching(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that touch the target shape.
public CloudMapsQueryResult GetFeaturesTouching(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesTouching(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that touch the target shape.
public CloudMapsQueryResult GetFeaturesTouching(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesTouching(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that touch the target shape.
public CloudMapsQueryResult GetFeaturesTouching(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesNearest(String, BaseShape, Int32, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public CloudMapsQueryResult GetFeaturesNearest(string queryLayer, BaseShape shape, int maxResults, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
maxResults Int32
The maximum number of features to return.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearest(String, BaseShape, Int32, Int32, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public CloudMapsQueryResult GetFeaturesNearest(string queryLayer, BaseShape shape, int srid, int maxResults, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
maxResults Int32
The maximum number of features to return.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearest(String, BaseShape, String, Int32, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public CloudMapsQueryResult GetFeaturesNearest(string queryLayer, BaseShape shape, string proj4String, int maxResults, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
maxResults Int32
The maximum number of features to return.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearest(String, BaseShape, Int32, Double, DistanceUnit, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public CloudMapsQueryResult GetFeaturesNearest(string queryLayer, BaseShape shape, int maxResults, double searchRadius, DistanceUnit searchRadiusUnit, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
maxResults Int32
The maximum number of features to return.
searchRadius Double
The radius of the search area around the target geometry.
searchRadiusUnit DistanceUnit
The unit of measure in which the searchRadius is expressed.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearest(String, BaseShape, Int32, Int32, Double, DistanceUnit, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public CloudMapsQueryResult GetFeaturesNearest(string queryLayer, BaseShape shape, int srid, int maxResults, double searchRadius, DistanceUnit searchRadiusUnit, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
maxResults Int32
The maximum number of features to return.
searchRadius Double
The radius of the search area around the target geometry.
searchRadiusUnit DistanceUnit
The unit of measure in which the searchRadius is expressed.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearest(String, BaseShape, String, Int32, Double, DistanceUnit, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public CloudMapsQueryResult GetFeaturesNearest(string queryLayer, BaseShape shape, string proj4String, int maxResults, double searchRadius, DistanceUnit searchRadiusUnit, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
maxResults Int32
The maximum number of features to return.
searchRadius Double
The radius of the search area around the target geometry.
searchRadiusUnit DistanceUnit
The unit of measure in which the searchRadius is expressed.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinDistance(String, BaseShape, Double, DistanceUnit, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within a certain distance of the target shape.
public CloudMapsQueryResult GetFeaturesWithinDistance(string queryLayer, BaseShape shape, double distance, DistanceUnit distanceUnit, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
distance Double
The distance within which to find features.
distanceUnit DistanceUnit
The unit of measure in which the distance is expressed.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinDistance(String, BaseShape, Int32, Double, DistanceUnit, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within a certain distance of the target shape.
public CloudMapsQueryResult GetFeaturesWithinDistance(string queryLayer, BaseShape shape, int srid, double distance, DistanceUnit distanceUnit, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
distance Double
The distance within which to find features.
distanceUnit DistanceUnit
The unit of measure in which the distance is expressed.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinDistance(String, BaseShape, String, Double, DistanceUnit, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within a certain distance of the target shape.
public CloudMapsQueryResult GetFeaturesWithinDistance(string queryLayer, BaseShape shape, string proj4String, double distance, DistanceUnit distanceUnit, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
distance Double
The distance within which to find features.
distanceUnit DistanceUnit
The unit of measure in which the distance is expressed.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesCustom(CloudMapsQueryCustomQueryOptions)¶
Perform a custom spatial query, using the specified query layer, spatial relationship type, and query feature.
public CloudMapsQueryResult GetFeaturesCustom(CloudMapsQueryCustomQueryOptions options)
Parameters¶
options CloudMapsQueryCustomQueryOptions
Returns¶
GetLayers()¶
List the available query layers.
public CloudMapsQueryGetLayersResult GetLayers()
Returns¶
GetAttributesOfLayer(String)¶
List the feature attributes available on the given query layer.
public CloudMapsQueryGetAttributesOfLayerResult GetAttributesOfLayer(string queryLayer)
Parameters¶
queryLayer String
the query layer.
Returns¶
CloudMapsQueryGetAttributesOfLayerResult
GetFeaturesWithinAsync(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within the target shape.
public Task<CloudMapsQueryResult> GetFeaturesWithinAsync(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinAsync(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within the target shape.
public Task<CloudMapsQueryResult> GetFeaturesWithinAsync(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinAsync(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within the target shape.
public Task<CloudMapsQueryResult> GetFeaturesWithinAsync(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesContainingAsync(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that contain the target shape.
public Task<CloudMapsQueryResult> GetFeaturesContainingAsync(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesContainingAsync(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that contain the target shape.
public Task<CloudMapsQueryResult> GetFeaturesContainingAsync(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesContainingAsync(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that contain the target shape.
public Task<CloudMapsQueryResult> GetFeaturesContainingAsync(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesIntersectingAsync(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that intersect the target shape.
public Task<CloudMapsQueryResult> GetFeaturesIntersectingAsync(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesIntersectingAsync(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that intersect the target shape.
public Task<CloudMapsQueryResult> GetFeaturesIntersectingAsync(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesIntersectingAsync(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that intersect the target shape.
public Task<CloudMapsQueryResult> GetFeaturesIntersectingAsync(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesOverlappingAsync(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that overlap the target shape.
public Task<CloudMapsQueryResult> GetFeaturesOverlappingAsync(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesOverlappingAsync(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that overlap the target shape.
public Task<CloudMapsQueryResult> GetFeaturesOverlappingAsync(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesOverlappingAsync(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that overlap the target shape.
public Task<CloudMapsQueryResult> GetFeaturesOverlappingAsync(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesTouchingAsync(String, BaseShape, CloudMapsQuerySpatialQueryOptions)¶
Get the features that touch the target shape.
public Task<CloudMapsQueryResult> GetFeaturesTouchingAsync(string queryLayer, BaseShape shape, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesTouchingAsync(String, BaseShape, Int32, CloudMapsQuerySpatialQueryOptions)¶
Get the features that touch the target shape.
public Task<CloudMapsQueryResult> GetFeaturesTouchingAsync(string queryLayer, BaseShape shape, int srid, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesTouchingAsync(String, BaseShape, String, CloudMapsQuerySpatialQueryOptions)¶
Get the features that touch the target shape.
public Task<CloudMapsQueryResult> GetFeaturesTouchingAsync(string queryLayer, BaseShape shape, string proj4String, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesNearestAsync(String, BaseShape, Int32, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public Task<CloudMapsQueryResult> GetFeaturesNearestAsync(string queryLayer, BaseShape shape, int maxResults, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
maxResults Int32
The maximum number of features to return.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearestAsync(String, BaseShape, Int32, Int32, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public Task<CloudMapsQueryResult> GetFeaturesNearestAsync(string queryLayer, BaseShape shape, int srid, int maxResults, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
maxResults Int32
The maximum number of features to return.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearestAsync(String, BaseShape, String, Int32, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public Task<CloudMapsQueryResult> GetFeaturesNearestAsync(string queryLayer, BaseShape shape, string proj4String, int maxResults, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
maxResults Int32
The maximum number of features to return.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearestAsync(String, BaseShape, Int32, Double, DistanceUnit, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public Task<CloudMapsQueryResult> GetFeaturesNearestAsync(string queryLayer, BaseShape shape, int maxResults, double searchRadius, DistanceUnit searchRadiusUnit, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
maxResults Int32
The maximum number of features to return.
searchRadius Double
The radius of the search area around the target geometry.
searchRadiusUnit DistanceUnit
The unit of measure in which the searchRadius is expressed.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearestAsync(String, BaseShape, Int32, Int32, Double, DistanceUnit, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public Task<CloudMapsQueryResult> GetFeaturesNearestAsync(string queryLayer, BaseShape shape, int srid, int maxResults, double searchRadius, DistanceUnit searchRadiusUnit, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
maxResults Int32
The maximum number of features to return.
searchRadius Double
The radius of the search area around the target geometry.
searchRadiusUnit DistanceUnit
The unit of measure in which the searchRadius is expressed.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesNearestAsync(String, BaseShape, String, Int32, Double, DistanceUnit, CloudMapsQueryNearestQueryOptions)¶
Get the features that are nearest to the target shape.
public Task<CloudMapsQueryResult> GetFeaturesNearestAsync(string queryLayer, BaseShape shape, string proj4String, int maxResults, double searchRadius, DistanceUnit searchRadiusUnit, CloudMapsQueryNearestQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
maxResults Int32
The maximum number of features to return.
searchRadius Double
The radius of the search area around the target geometry.
searchRadiusUnit DistanceUnit
The unit of measure in which the searchRadius is expressed.
options CloudMapsQueryNearestQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinDistanceAsync(String, BaseShape, Double, DistanceUnit, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within a certain distance of the target shape.
public Task<CloudMapsQueryResult> GetFeaturesWithinDistanceAsync(string queryLayer, BaseShape shape, double distance, DistanceUnit distanceUnit, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
distance Double
The distance within which to find features.
distanceUnit DistanceUnit
The unit of measure in which the distance is expressed.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinDistanceAsync(String, BaseShape, Int32, Double, DistanceUnit, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within a certain distance of the target shape.
public Task<CloudMapsQueryResult> GetFeaturesWithinDistanceAsync(string queryLayer, BaseShape shape, int srid, double distance, DistanceUnit distanceUnit, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
srid Int32
Specifies the SRID (spatial reference system ID). Defaults to 4326.
distance Double
The distance within which to find features.
distanceUnit DistanceUnit
The unit of measure in which the distance is expressed.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesWithinDistanceAsync(String, BaseShape, String, Double, DistanceUnit, CloudMapsQuerySpatialQueryOptions)¶
Get the features that are within a certain distance of the target shape.
public Task<CloudMapsQueryResult> GetFeaturesWithinDistanceAsync(string queryLayer, BaseShape shape, string proj4String, double distance, DistanceUnit distanceUnit, CloudMapsQuerySpatialQueryOptions options)
Parameters¶
queryLayer String
The query layer.
shape BaseShape
The target shape.
proj4String String
Specifies the proj4String (coordinate system).
distance Double
The distance within which to find features.
distanceUnit DistanceUnit
The unit of measure in which the distance is expressed.
options CloudMapsQuerySpatialQueryOptions
The options of quering.
Returns¶
GetFeaturesCustomAsync(CloudMapsQueryCustomQueryOptions)¶
Perform a custom spatial query, using the specified query layer, spatial relationship type, and query feature.
public Task<CloudMapsQueryResult> GetFeaturesCustomAsync(CloudMapsQueryCustomQueryOptions options)
Parameters¶
options CloudMapsQueryCustomQueryOptions
Returns¶
GetLayersAsync()¶
List the available query layers.
public Task<CloudMapsQueryGetLayersResult> GetLayersAsync()
Returns¶
Task<CloudMapsQueryGetLayersResult>
GetAttributesOfLayerAsync(String)¶
List the feature attributes available on the given query layer.
public Task<CloudMapsQueryGetAttributesOfLayerResult> GetAttributesOfLayerAsync(string queryLayer)
Parameters¶
queryLayer String
the query layer.
Returns¶
Task<CloudMapsQueryGetAttributesOfLayerResult>
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;