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>( int layerId, string whereClause, GeometryBase geometry, SpatialRel spatialRel, string extraParameters = null, bool keepQuerying = false, int degreeOfParallelism = 1 ) where T : Feature
Parameters
- layerId
- Type: System.Int32
The layer ID of the feature layer or table. - whereClause
- Type: System.String
The where clause. If set to null, returns all features. - geometry
- Type: PreStorm.GeometryBase
The geometry used to spatially filter the records. - spatialRel
- Type: PreStorm.SpatialRel
The spatial relationship used for filtering. - extraParameters (Optional)
- Type: System.String
The query string that describes any additional query parameters (i.e. outSR=4326). Each parameter must be url encoded. - keepQuerying (Optional)
- Type: System.Boolean
If set to true, repetitively queries the server until all features have been returned. - degreeOfParallelism (Optional)
- Type: System.Int32
The maximum number of concurrent requests.
Type Parameters
- T
- The type the record should be mapped to.
Return Value
Type: IEnumerable<T>Implements
IService.Download<T>(Int32, String, GeometryBase, SpatialRel, String, Boolean, Int32)See Also