private void manager_GetCapabilityCompleted(object sender, EventArgs e)
{
WMSManager manager = sender as WMSManager;
if (manager.Error != null)
{
base.Error = manager.Error;
base.Initialize();
return;
}
//当版本号是1.3.0时,x,y是反的;
if (this.Version == "1.3.0")
{
this.Bounds = new Rectangle2D(manager.Bounds.BottomLeft.Y, manager.Bounds.BottomLeft.X, manager.Bounds.TopRight.Y, manager.Bounds.TopRight.X);
}
else
{
this.Bounds = manager.Bounds;
}
this.CRS = manager.CRS;
this.AllLayerList = manager.AllLayerList;
this.Metadata = manager.Metadata;
if (string.IsNullOrEmpty(this.Version))
{
this.Version = manager.Version;
}
base.Initialize();
}