-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathSpatialReferencedBoundingBox.cs
More file actions
46 lines (43 loc) · 1.98 KB
/
SpatialReferencedBoundingBox.cs
File metadata and controls
46 lines (43 loc) · 1.98 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
38
39
40
41
42
43
44
45
46
using GeoAPI.Geometries;
namespace SharpMap.Web.Wms
{
/// <summary>
/// Spatial referenced boundingbox
/// </summary>
/// <remarks>
/// The spatial referenced boundingbox is used to communicate boundingboxes of WMS layers together
/// with their spatial reference system in which they are specified
/// </remarks>
public class SpatialReferencedBoundingBox : Envelope
{
/// <summary>
/// Initializes a new SpatialReferencedBoundingBox which stores a boundingbox together with the SRID
/// </summary>
/// <remarks>This class is used to communicate all the boundingboxes of a WMS server between client.cs and wmslayer.cs</remarks>
/// <param name="minX">The minimum x-ordinate value</param>
/// <param name="maxX">The maximum x-ordinate value</param>
/// <param name="minY">The minimum y-ordinate value</param>
/// <param name="maxY">The maximum y-ordinate value</param>
/// <param name="srid">Spatial Reference ID</param>
public SpatialReferencedBoundingBox(double minX, double minY, double maxX, double maxY, int srid)
: base(minX, maxX, minY, maxY)
{
SRID = srid;
}
/// <summary>
/// Initializes a new SpatialReferencedBoundingBox which stores a boundingbox together with the SRID
/// </summary>
/// <remarks>This class is used to communicate all the boundingboxes of a WMS server between client.cs and wmslayer.cs</remarks>
/// <param name="boundingBox">BoundingBox</param>
/// <param name="srid">Spatial Reference ID</param>
public SpatialReferencedBoundingBox(Envelope boundingBox, int srid)
: base(boundingBox.MinX, boundingBox.MaxX, boundingBox.MinY, boundingBox.MaxY)
{
SRID = srid;
}
/// <summary>
/// The spatial reference ID (CRS)
/// </summary>
public int SRID { get; set; }
}
}