-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathGeoJSONObjectType.cs
More file actions
99 lines (89 loc) · 2.76 KB
/
GeoJSONObjectType.cs
File metadata and controls
99 lines (89 loc) · 2.76 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
// Copyright © Joerg Battermann 2014, Matt Hunt 2017
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
namespace GeoJSON.Text
{
/// <summary>
/// Defines the GeoJSON Objects types.
/// </summary>
#if NET8_0_OR_GREATER
[JsonConverter(typeof(JsonStringEnumConverter<GeoJSONObjectType>))]
#else
[JsonConverter(typeof(JsonStringEnumConverter))]
#endif
public enum GeoJSONObjectType
{
/// <summary>
/// Defines the Point type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.2
/// </remarks>
[EnumMember(Value = "Point")]
Point,
/// <summary>
/// Defines the MultiPoint type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.3
/// </remarks>
[EnumMember(Value = "MultiPoint")]
MultiPoint,
/// <summary>
/// Defines the LineString type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.4
/// </remarks>
[EnumMember(Value = "LineString")]
LineString,
/// <summary>
/// Defines the MultiLineString type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.5
/// </remarks>
[EnumMember(Value = "MultiLineString")]
MultiLineString,
/// <summary>
/// Defines the Polygon type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.6
/// </remarks>
[EnumMember(Value = "Polygon")]
Polygon,
/// <summary>
/// Defines the MultiPolygon type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.7
/// </remarks>
[EnumMember(Value = "MultiPolygon")]
MultiPolygon,
/// <summary>
/// Defines the GeometryCollection type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1.8
/// </remarks>
[EnumMember(Value = "GeometryCollection")]
GeometryCollection,
/// <summary>
/// Defines the Feature type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.2
/// </remarks>
[EnumMember(Value = "Feature")]
Feature,
/// <summary>
/// Defines the FeatureCollection type.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.3
/// </remarks>
[EnumMember(Value = "FeatureCollection")]
FeatureCollection
}
}