-
Notifications
You must be signed in to change notification settings - Fork 302
Expand file tree
/
Copy pathSharpMapSerializationClasses.cs
More file actions
131 lines (115 loc) · 3.47 KB
/
Copy pathSharpMapSerializationClasses.cs
File metadata and controls
131 lines (115 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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; }
}
}