[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/SharpMap/SharpMap/main/SharpMap.Server/WMSServer.cs [Back]  [Original]

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);
            }
        }
    }
}

Web Proxy Viewer  |  New URL  |  Original Page