Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MultiPolygon and PolygonCoordinates classes public. #1239

Merged
merged 2 commits into from
Mar 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/Spatial/MultiPolygon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Cosmos.Spatial
/// </summary>
/// <seealso cref="Polygon"/>
[DataContract]
internal sealed class MultiPolygon : Geometry, IEquatable<MultiPolygon>
public sealed class MultiPolygon : Geometry, IEquatable<MultiPolygon>
mcpappas marked this conversation as resolved.
Show resolved Hide resolved
{
/// <summary>
/// Initializes a new instance of the <see cref="MultiPolygon"/> class.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/Spatial/PolygonCoordinates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Cosmos.Spatial
/// <seealso cref="MultiPolygon"/>
[DataContract]
[JsonConverter(typeof(PolygonCoordinatesJsonConverter))]
internal sealed class PolygonCoordinates : IEquatable<PolygonCoordinates>
public sealed class PolygonCoordinates : IEquatable<PolygonCoordinates>
mcpappas marked this conversation as resolved.
Show resolved Hide resolved
{
/// <summary>
/// Initializes a new instance of the <see cref="PolygonCoordinates"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6477,6 +6477,52 @@
},
"NestedTypes": {}
},
"MultiPolygon": {
"Subclasses": {},
"Members": {
"Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)"
},
"Boolean Equals(System.Object)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(System.Object)"
},
"Int32 GetHashCode()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Int32 GetHashCode()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] Polygons[System.Runtime.Serialization.DataMemberAttribute(Name = \"coordinates\")]-[Newtonsoft.Json.JsonPropertyAttribute(\"coordinates\", Order = 1, Required = 2)]": {
"Type": "Property",
"Attributes": [
"DataMemberAttribute",
"JsonPropertyAttribute"
],
"MethodInfo": null
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])"
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)"
}
},
"NestedTypes": {}
},
"Point": {
"Subclasses": {},
"Members": {
Expand Down Expand Up @@ -7017,6 +7063,52 @@
},
"NestedTypes": {}
},
"MultiPolygon": {
"Subclasses": {},
"Members": {
"Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)"
},
"Boolean Equals(System.Object)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(System.Object)"
},
"Int32 GetHashCode()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Int32 GetHashCode()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] Polygons[System.Runtime.Serialization.DataMemberAttribute(Name = \"coordinates\")]-[Newtonsoft.Json.JsonPropertyAttribute(\"coordinates\", Order = 1, Required = 2)]": {
"Type": "Property",
"Attributes": [
"DataMemberAttribute",
"JsonPropertyAttribute"
],
"MethodInfo": null
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])"
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)"
}
},
"NestedTypes": {}
},
"NamedCrs": {
"Subclasses": {},
"Members": {
Expand Down Expand Up @@ -7154,6 +7246,46 @@
},
"NestedTypes": {}
},
"PolygonCoordinates": {
"Subclasses": {},
"Members": {
"Boolean Equals(Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates)"
},
"Boolean Equals(System.Object)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Boolean Equals(System.Object)"
},
"Int32 GetHashCode()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Int32 GetHashCode()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] get_Rings()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] get_Rings()"
},
"System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] Rings[System.Runtime.Serialization.DataMemberAttribute(Name = \"rings\")]": {
"Type": "Property",
"Attributes": [
"DataMemberAttribute"
],
"MethodInfo": null
},
"Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.LinearRing])": {
"Type": "Constructor",
"Attributes": [],
"MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.LinearRing])"
}
},
"NestedTypes": {}
},
"Position": {
"Subclasses": {},
"Members": {
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- [#1239](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1239) Made MultiPolygon and PolygonCoordinates classes public.

### Fixed

- [#1213](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1213) CosmosException now returns the original stack trace.
Expand Down