代码拉取完成,页面将自动刷新
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace SharpMap.Serialization.Model
{
[XmlInclude(typeof(WmsLayer))]
[XmlInclude(typeof(SpatiaLiteLayer))]
[XmlInclude(typeof(ShapefileLayer))]
public partial class MapDefinition
{
public string BackGroundColor { get; set; }
public Extent Extent { get; set; }
public MapLayer[] Layers { get; set; }
public int SRID { get; set; }
}
public class Extent
{
public double Xmin { get; set; }
public double Ymin { get; set; }
public double Xmax { get; set; }
public double Ymax { get; set; }
}
public partial class MapLayer
{
public string Name { get; set; }
public double MinVisible { get; set; }
public double MaxVisible { get; set; }
}
public partial class StyledLayer : MapLayer
{
public Style[] Styles { get; set; }
}
[XmlInclude(typeof(SimpleLineStyle))]
[XmlInclude(typeof(SimplePointStyle))]
[XmlInclude(typeof(SimpleFillStyle))]
[XmlInclude(typeof(SimpleMarkerStyle))]
public class Style
{
}
public class SimplePointStyle : Style
{
public string Color { get; set; }
public double Opacity { get; set; }
public double Size { get; set; }
public double OutlineWidth { get; set; }
public string OutlineColor { get; set; }
}
public class SimpleMarkerStyle : Style
{
public double? Opacity { get; set; }
public double Size { get; set; }
public byte[] MarkerPicture { get; set; }
public double? SymbolOffsetX { get; set; }
public double? SymbolOffsetY { get; set; }
}
public class SimpleLineStyle : Style
{
public string Color { get; set; }
public double Opacity { get; set; }
public string OutlineColor { get; set; }
public double LineWidth { get; set; }
public double OutlineWidth { get; set; }
}
public class SimpleFillStyle : Style
{
public string Color { get; set; }
public double FillOpacity { get; set; }
public string OutlineColor { get; set; }
public double OutlineWidth { get; set; }
}
public class WmsLayer : MapLayer
{
public string OnlineURL { get; set; }
public string WmsUser { get; set; }
public string WmsPassword { get; set; }
public string WmsLayers { get; set; }
}
public class SpatiaLiteLayer : StyledLayer
{
public string FileName { get; set; }
public string TableName { get; set; }
public string GeometryColumn { get; set; }
}
public class ShapefileLayer : StyledLayer
{
public string FileName { get; set; }
}
public class OsmLayer : MapLayer
{
public string KnownTileSource { get; set; }
public string ApiKey { get; set; }
public bool Async { get; set; }
}
/*
public class GoogleLayer : MapLayer
{
}
public class GoogleSatLayer : MapLayer
{
}
public class GoogleTerrainLayer : MapLayer
{
}
*/
public class BingLayer : MapLayer
{
}
public class CustomLayer : StyledLayer
{
public string ClassName { get; set; }
public string CustomData { get; set; }
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。