by Morten
12. October 2005 21:03
Today I was trying to make a WMS implementation using SharpMap, and it turned out to be quite easy. I’ve implemented some helper classes in SharpMap, which I will include in the next release of SharpMap. Actually now you can create a WMS service using only a few lines of code. Here’s an example:
protected void Page_Load(object sender, EventArgs e)
{
SharpMap.Map myMap = InitializeMap(); //Call method that sets up your map
SharpMap.Web.Wms.WmsServer.ParseQueryString(Request.QueryString,Response,myMap);
}And that’s it !!! (well at least besides the InitializeMap method where you set up layers etc…)
It even returns nice little XML exceptions according to the specification. I still need to do some work on the GetCapabilities request, but I think it’s more or less safe to say that SharpMap will work as an OpenGIS compliant WMS Server in the next release.
ca5dc35c-788d-47a8-94b5-1ce3e1e09bca|2|3.5|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
SharpMap