-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathIGeometryObject.cs
More file actions
28 lines (26 loc) · 901 Bytes
/
IGeometryObject.cs
File metadata and controls
28 lines (26 loc) · 901 Bytes
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
// Copyright © Joerg Battermann 2014, Matt Hunt 2017
using GeoJSON.Text.Converters;
using System.Text.Json.Serialization;
namespace GeoJSON.Text.Geometry
{
/// <summary>
/// Base Interface for GeometryObject types.
/// </summary>
[JsonConverter(typeof(GeometryConverter))]
public interface IGeometryObject
{
/// <summary>
/// Gets the (mandatory) type of the GeoJSON Object.
/// However, for GeoJSON Objects only the 'Point', 'MultiPoint', 'LineString', 'MultiLineString',
/// 'Polygon', 'MultiPolygon', or 'GeometryCollection' types are allowed.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3.1
/// </remarks>
/// <value>
/// The type of the object.
/// </value>
[JsonPropertyName("type")]
GeoJSONObjectType Type { get; }
}
}