Log.log(Logger.Info, "chunmap's wms service starting");
super.init(config);
key=config.getInitParameter("key");
Capabilities cap = new Capabilities();
Layer layer = loadLayerData();
cap.getLayers().add(layer);
cap.setBaseURL("http://localhost:8080/chunmapService/");
cap.setLink("http://localhost:8080/chunmapService/test");
cap.setUrl("http://localhost:8080/chunmapService/test");
cap.setServiceTile("hello");
cap.setSrs("4326");
Service wms = new WebMapService(cap);
ServiceFactory.putService(wms, "WMS");
Log.log(Logger.Info, "chunmap's wms服务已启动");