Downloads records and yields them as a lazy sequence of features of the specified type. Possibly throws RestException.
Namespace: PreStorm
Assembly: PreStorm (in PreStorm.dll) Version: 1.8.19.0 (1.8.19.0)
Syntax
public IEnumerable<T> Download<T>( string layerName, string whereClause, GeometryBase geometry, SpatialRel spatialRel, string extraParameters = null, bool keepQuerying = false, int degreeOfParallelism = 1 ) where T : Feature
Parameters
- layerName
- Type: SystemString
The name of the feature layer or table. If the service contains two or more layers with this name, use the overload that takes the layer ID rather than the name. - whereClause
- Type: SystemString
The where clause. If set to null, returns all features. - geometry
- Type: PreStormGeometryBase
The geometry used to spatially filter the records. - spatialRel
- Type: PreStormSpatialRel
The spatial relationship used for filtering. - extraParameters (Optional)
- Type: SystemString
The query string that describes any additional query parameters (i.e. outSR=4326). Each parameter must be url encoded. - keepQuerying (Optional)
- Type: SystemBoolean
If set to true, repetitively queries the server until all features have been returned. - degreeOfParallelism (Optional)
- Type: SystemInt32
The maximum number of concurrent requests.
Type Parameters
- T
- The type the record should be mapped to.
Return Value
Type: IEnumerableTImplements
IServiceDownloadT(String, String, GeometryBase, SpatialRel, String, Boolean, Int32)See Also