forked from SharpMap/SharpMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICanQueryLayer.cs
More file actions
37 lines (34 loc) · 1.51 KB
/
ICanQueryLayer.cs
File metadata and controls
37 lines (34 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using GeoAPI.Geometries;
using SharpMap.Data;
namespace SharpMap.Layers
{
/// <summary>
/// Interface for Layers, that can be queried
/// </summary>
public interface ICanQueryLayer : ILayer
{
/// <summary>
/// Returns the data associated with all the geometries that are intersected by 'geom'
///
/// Note! The table added should be named according to the LayerName!
/// </summary>
/// <param name="box">Bounding box to intersect with</param>
/// <param name="ds">FeatureDataSet to fill data into</param>
void ExecuteIntersectionQuery(Envelope box, FeatureDataSet ds);
/// <summary>
/// Returns the data associated with all the geometries that are intersected by 'geom'
///
/// Note! The table added should be named according to the LayerName!
/// </summary>
/// <param name="geometry">Geometry to intersect with</param>
/// <param name="ds">FeatureDataSet to fill data into</param>
void ExecuteIntersectionQuery(IGeometry geometry, FeatureDataSet ds);
/// <summary>
/// Whether the layer is queryable when used in a SharpMap.Web.Wms.WmsServer,
/// ExecuteIntersectionQuery() will be possible in all other situations when set to FALSE.
/// This property currently only applies to WMS and should perhaps be moved to a WMS
/// specific class.
/// </summary>
bool IsQueryEnabled { get; set; }
}
}