New!你知道小组可以导入词条、编辑专题页面吗?  

SharpMap as a WMS server

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:

今天我尝试用SharpMap做一个WMS执行,结果非常容易就完成了。我执行了一些helper classes ,我打算把他们放在下一个版本的SharpMap中。事实上你可只用几行代码就以创建一个WMS service (WMS服务)。这里是一个例子:

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…)
就是它!!!(至少除此之外还有设置层等时候的InitializeMap方法)

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.

它甚至根据具体情况返回了一个XML,我仍然要做一些关于GetCapabilities请求的工作,但是我可能应该说SharpMap将会在下一个版本中作为一个OpenGIS适应性WMS Server 。

 

发表讨论

Copyright © 2005-2009 hudong.com Ltd. All Rights Reserved. 互动在线 版权所有