-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathIGeoJSONObject.cs
More file actions
54 lines (50 loc) · 1.87 KB
/
IGeoJSONObject.cs
File metadata and controls
54 lines (50 loc) · 1.87 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
// Copyright © Joerg Battermann 2014, Matt Hunt 2017
using GeoJSON.Text.Converters;
using System.Text.Json.Serialization;
namespace GeoJSON.Text
{
/// <summary>
/// Base Interface for GeoJSONObject types.
/// </summary>
public interface IGeoJSONObject
{
/// <summary>
/// Gets the (mandatory) type of the GeoJSON Object.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-3
/// </remarks>
/// <value>
/// The type of the object.
/// </value>
[JsonPropertyName("type")]
GeoJSONObjectType Type { get; }
/// <summary>
/// Gets the (optional) Coordinate Reference System Object.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-4
/// </remarks>
/// <value>
/// The Coordinate Reference System Objects.
/// </value>
[JsonPropertyName("crs")]
CoordinateReferenceSystem.ICRSObject CRS { get; }
/// <summary>
/// Gets or sets the (optional) Bounding Boxes.
/// </summary>
/// <remarks>
/// See https://tools.ietf.org/html/rfc7946#section-5
/// </remarks>
/// <value>
/// The value of the bbox member must be a 2*n array where n is the number of dimensions represented in the
/// contained geometries, with the lowest values for all axes followed by the highest values.
/// The axes order of a bbox follows the axes order of geometries.
/// In addition, the coordinate reference system for the bbox is assumed to match the coordinate reference
/// system of the GeoJSON object of which it is a member.
/// </value>
[JsonPropertyName("bbox")]
[JsonConverter(typeof(BoundingBoxConverter))]
double[] BoundingBoxes { get; set; }
}
}