forked from GeoJSON-Net/GeoJSON.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeoJSONObject.cs
More file actions
51 lines (47 loc) · 2.32 KB
/
GeoJSONObject.cs
File metadata and controls
51 lines (47 loc) · 2.32 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
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="GeoJSONObject.cs" company="Jörg Battermann">
// Copyright © Jörg Battermann 2011
// </copyright>
// <summary>
// Defines the GeoJSONObject type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace GeoJSON.Net
{
using Newtonsoft.Json;
/// <summary>
/// Base class for all IGeometryObject implementing types
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public abstract class GeoJSONObject : IGeoJSONObject
{
/// <summary>
/// Gets the (mandatory) type of the <see cref="http://geojson.org/geojson-spec.html#geojson-objects">GeoJSON Object</see>.
/// </summary>
/// <value>
/// The type of the object.
/// </value>
[JsonProperty(PropertyName = "type", Required = Required.Always)]
public GeoJSONObjectType Type { get; internal set; }
/// <summary>
/// Gets or sets the (optional) <see cref="http://geojson.org/geojson-spec.html#coordinate-reference-system-objects">Coordinate Reference System Object</see>.
/// </summary>
/// <value>
/// The Coordinate Reference System Objects.
/// </value>
[JsonProperty(PropertyName = "crs", Required = Required.AllowNull)]
public CoordinateReferenceSystem.ICRSObject CRS { get; set; }
/// <summary>
/// Gets or sets the (optional) <see cref="http://geojson.org/geojson-spec.html#coordinate-reference-system-objects">Bounding Boxes</see>.
/// </summary>
/// <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>
[JsonProperty(PropertyName = "bbox", Required = Required.AllowNull)]
public double[] BoundingBoxes { get; set; }
}
}