forked from SharpMap/SharpMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWMSServer.cs
More file actions
26 lines (24 loc) · 751 Bytes
/
WMSServer.cs
File metadata and controls
26 lines (24 loc) · 751 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SharpMapServer
{
public class WMSServer : IHttpHandler
{
internal static SharpMap.Map m_Map;
internal static SharpMap.Web.Wms.Capabilities.WmsServiceDescription m_Capabilities;
public bool IsReusable
{
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
//Clone the map-instance since the parse-query-string request will modify sice etc.
using (var safeMap = m_Map.Clone())
{
SharpMap.Web.Wms.WmsServer.ParseQueryString(safeMap, m_Capabilities);
}
}
}
}