Skip to content

Commit d7e9fa8

Browse files
author
rstam
committed
CSHARP-685: Added doc comments to GeoJson object model.
1 parent 1f52042 commit d7e9fa8

File tree

61 files changed

+1707
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1707
-4
lines changed

MongoDB.Driver/GeoJsonObjectModel/GeoJson.cs

Lines changed: 204 additions & 0 deletions
Large diffs are not rendered by default.

MongoDB.Driver/GeoJsonObjectModel/GeoJson2DCoordinates.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,55 @@
1919

2020
namespace MongoDB.Driver.GeoJsonObjectModel
2121
{
22+
/// <summary>
23+
/// Represents a GeoJson 2D position (x, y).
24+
/// </summary>
2225
[BsonSerializer(typeof(GeoJson2DCoordinatesSerializer))]
2326
public class GeoJson2DCoordinates : GeoJsonCoordinates
2427
{
2528
// private fields
2629
private ReadOnlyCollection<double> _values;
2730

2831
// constructors
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="GeoJson2DCoordinates"/> class.
34+
/// </summary>
35+
/// <param name="x">The x coordinate.</param>
36+
/// <param name="y">The y coordinate.</param>
2937
public GeoJson2DCoordinates(double x, double y)
3038
{
3139
_values = new ReadOnlyCollection<double>(new[] { x, y });
3240
}
3341

3442
// public properties
43+
/// <summary>
44+
/// Gets the coordinate values.
45+
/// </summary>
46+
/// <value>
47+
/// The coordinate values.
48+
/// </value>
3549
public override ReadOnlyCollection<double> Values
3650
{
3751
get { return _values; }
3852
}
3953

54+
/// <summary>
55+
/// Gets the X coordinate.
56+
/// </summary>
57+
/// <value>
58+
/// The X coordinate.
59+
/// </value>
4060
public double X
4161
{
4262
get { return _values[0]; }
4363
}
4464

65+
/// <summary>
66+
/// Gets the Y coordinate.
67+
/// </summary>
68+
/// <value>
69+
/// The Y coordinate.
70+
/// </value>
4571
public double Y
4672
{
4773
get { return _values[1]; }

MongoDB.Driver/GeoJsonObjectModel/GeoJson2DGeographicCoordinates.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,55 @@
1919

2020
namespace MongoDB.Driver.GeoJsonObjectModel
2121
{
22+
/// <summary>
23+
/// Represents a GeoJson 2D geographic position (longitude, latitude).
24+
/// </summary>
2225
[BsonSerializer(typeof(GeoJson2DGeographicCoordinatesSerializer))]
2326
public class GeoJson2DGeographicCoordinates : GeoJsonCoordinates
2427
{
2528
// private fields
2629
private ReadOnlyCollection<double> _values;
2730

2831
// constructors
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="GeoJson2DGeographicCoordinates"/> class.
34+
/// </summary>
35+
/// <param name="longitude">The longitude.</param>
36+
/// <param name="latitude">The latitude.</param>
2937
public GeoJson2DGeographicCoordinates(double longitude, double latitude)
3038
{
3139
_values = new ReadOnlyCollection<double>(new[] { longitude, latitude });
3240
}
3341

3442
// public properties
43+
/// <summary>
44+
/// Gets the coordinate values.
45+
/// </summary>
46+
/// <value>
47+
/// The coordinate values.
48+
/// </value>
3549
public override ReadOnlyCollection<double> Values
3650
{
3751
get { return _values; }
3852
}
3953

54+
/// <summary>
55+
/// Gets the longitude.
56+
/// </summary>
57+
/// <value>
58+
/// The longitude.
59+
/// </value>
4060
public double Longitude
4161
{
4262
get { return _values[0]; }
4363
}
4464

65+
/// <summary>
66+
/// Gets the latitude.
67+
/// </summary>
68+
/// <value>
69+
/// The latitude.
70+
/// </value>
4571
public double Latitude
4672
{
4773
get { return _values[1]; }

MongoDB.Driver/GeoJsonObjectModel/GeoJson2DProjectedCoordinates.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,55 @@
1919

2020
namespace MongoDB.Driver.GeoJsonObjectModel
2121
{
22+
/// <summary>
23+
/// Represents a GeoJson 2D projected position (easting, northing).
24+
/// </summary>
2225
[BsonSerializer(typeof(GeoJson2DProjectedCoordinatesSerializer))]
2326
public class GeoJson2DProjectedCoordinates : GeoJsonCoordinates
2427
{
2528
// private fields
2629
private ReadOnlyCollection<double> _values;
2730

2831
// constructors
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="GeoJson2DProjectedCoordinates"/> class.
34+
/// </summary>
35+
/// <param name="easting">The easting.</param>
36+
/// <param name="northing">The northing.</param>
2937
public GeoJson2DProjectedCoordinates(double easting, double northing)
3038
{
3139
_values = new ReadOnlyCollection<double>(new[] { easting, northing });
3240
}
3341

3442
// public properties
43+
/// <summary>
44+
/// Gets the coordinate values.
45+
/// </summary>
46+
/// <value>
47+
/// The coordinate values.
48+
/// </value>
3549
public override ReadOnlyCollection<double> Values
3650
{
3751
get { return _values; }
3852
}
3953

54+
/// <summary>
55+
/// Gets the easting.
56+
/// </summary>
57+
/// <value>
58+
/// The easting.
59+
/// </value>
4060
public double Easting
4161
{
4262
get { return _values[0]; }
4363
}
4464

65+
/// <summary>
66+
/// Gets the northing.
67+
/// </summary>
68+
/// <value>
69+
/// The northing.
70+
/// </value>
4571
public double Northing
4672
{
4773
get { return _values[1]; }

MongoDB.Driver/GeoJsonObjectModel/GeoJson3DCoordinates.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,67 @@
1919

2020
namespace MongoDB.Driver.GeoJsonObjectModel
2121
{
22+
/// <summary>
23+
/// Represents a GeoJson 3D position (x, y, z).
24+
/// </summary>
2225
[BsonSerializer(typeof(GeoJson3DCoordinatesSerializer))]
2326
public class GeoJson3DCoordinates : GeoJsonCoordinates
2427
{
2528
// private fields
2629
private ReadOnlyCollection<double> _values;
2730

2831
// constructors
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="GeoJson3DCoordinates"/> class.
34+
/// </summary>
35+
/// <param name="x">The x coordinate.</param>
36+
/// <param name="y">The y coordinate.</param>
37+
/// <param name="z">The z coordinate.</param>
2938
public GeoJson3DCoordinates(double x, double y, double z)
3039
{
3140
_values = new ReadOnlyCollection<double>(new[] { x, y, z });
3241
}
3342

3443
// public properties
44+
/// <summary>
45+
/// Gets the coordinate values.
46+
/// </summary>
47+
/// <value>
48+
/// The coordinate values.
49+
/// </value>
3550
public override ReadOnlyCollection<double> Values
3651
{
3752
get { return _values; }
3853
}
3954

55+
/// <summary>
56+
/// Gets the X coordinate.
57+
/// </summary>
58+
/// <value>
59+
/// The X coordinate.
60+
/// </value>
4061
public double X
4162
{
4263
get { return _values[0]; }
4364
}
4465

66+
/// <summary>
67+
/// Gets the Y coordinate.
68+
/// </summary>
69+
/// <value>
70+
/// The Y coordinate.
71+
/// </value>
4572
public double Y
4673
{
4774
get { return _values[1]; }
4875
}
4976

77+
/// <summary>
78+
/// Gets the Z coordinate.
79+
/// </summary>
80+
/// <value>
81+
/// The Z coordinate.
82+
/// </value>
5083
public double Z
5184
{
5285
get { return _values[2]; }

MongoDB.Driver/GeoJsonObjectModel/GeoJson3DGeographicCoordinates.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,67 @@
1919

2020
namespace MongoDB.Driver.GeoJsonObjectModel
2121
{
22+
/// <summary>
23+
/// Represents a GeoJson 3D geographic position (longitude, latitude, altitude).
24+
/// </summary>
2225
[BsonSerializer(typeof(GeoJson3DGeographicCoordinatesSerializer))]
2326
public class GeoJson3DGeographicCoordinates : GeoJsonCoordinates
2427
{
2528
// private fields
2629
private ReadOnlyCollection<double> _values;
2730

2831
// constructors
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="GeoJson3DGeographicCoordinates"/> class.
34+
/// </summary>
35+
/// <param name="longitude">The longitude.</param>
36+
/// <param name="latitude">The latitude.</param>
37+
/// <param name="altitude">The altitude.</param>
2938
public GeoJson3DGeographicCoordinates(double longitude, double latitude, double altitude)
3039
{
3140
_values = new ReadOnlyCollection<double>(new[] { longitude, latitude, altitude });
3241
}
3342

3443
// public properties
44+
/// <summary>
45+
/// Gets the coordinate values.
46+
/// </summary>
47+
/// <value>
48+
/// The coordinate values.
49+
/// </value>
3550
public override ReadOnlyCollection<double> Values
3651
{
3752
get { return _values; }
3853
}
3954

55+
/// <summary>
56+
/// Gets the longitude.
57+
/// </summary>
58+
/// <value>
59+
/// The longitude.
60+
/// </value>
4061
public double Longitude
4162
{
4263
get { return _values[0]; }
4364
}
4465

66+
/// <summary>
67+
/// Gets the latitude.
68+
/// </summary>
69+
/// <value>
70+
/// The latitude.
71+
/// </value>
4572
public double Latitude
4673
{
4774
get { return _values[1]; }
4875
}
4976

77+
/// <summary>
78+
/// Gets the altitude.
79+
/// </summary>
80+
/// <value>
81+
/// The altitude.
82+
/// </value>
5083
public double Altitude
5184
{
5285
get { return _values[2]; }

MongoDB.Driver/GeoJsonObjectModel/GeoJson3DProjectedCoordinates.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,67 @@
1919

2020
namespace MongoDB.Driver.GeoJsonObjectModel
2121
{
22+
/// <summary>
23+
/// Represents a GeoJson 3D projected position (easting, northing, altitude).
24+
/// </summary>
2225
[BsonSerializer(typeof(GeoJson3DProjectedCoordinatesSerializer))]
2326
public class GeoJson3DProjectedCoordinates : GeoJsonCoordinates
2427
{
2528
// private fields
2629
private ReadOnlyCollection<double> _values;
2730

2831
// constructors
32+
/// <summary>
33+
/// Initializes a new instance of the <see cref="GeoJson3DProjectedCoordinates"/> class.
34+
/// </summary>
35+
/// <param name="easting">The easting.</param>
36+
/// <param name="northing">The northing.</param>
37+
/// <param name="altitude">The altitude.</param>
2938
public GeoJson3DProjectedCoordinates(double easting, double northing, double altitude)
3039
{
3140
_values = new ReadOnlyCollection<double>(new[] { easting, northing, altitude });
3241
}
3342

3443
// public properties
44+
/// <summary>
45+
/// Gets the coordinate values.
46+
/// </summary>
47+
/// <value>
48+
/// The coordinate values.
49+
/// </value>
3550
public override ReadOnlyCollection<double> Values
3651
{
3752
get { return _values; }
3853
}
3954

55+
/// <summary>
56+
/// Gets the easting.
57+
/// </summary>
58+
/// <value>
59+
/// The easting.
60+
/// </value>
4061
public double Easting
4162
{
4263
get { return _values[0]; }
4364
}
4465

66+
/// <summary>
67+
/// Gets the northing.
68+
/// </summary>
69+
/// <value>
70+
/// The northing.
71+
/// </value>
4572
public double Northing
4673
{
4774
get { return _values[1]; }
4875
}
4976

77+
/// <summary>
78+
/// Gets the altitude.
79+
/// </summary>
80+
/// <value>
81+
/// The altitude.
82+
/// </value>
5083
public double Altitude
5184
{
5285
get { return _values[2]; }

0 commit comments

Comments
 (0)