Skip to content

Commit

Permalink
Move GeoJSON to Azure.Core.GeoJson (#21296)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym authored May 24, 2021
1 parent 23d321c commit 28dd603
Show file tree
Hide file tree
Showing 38 changed files with 667 additions and 676 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;
using System.Text.Json;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using NUnit.Framework;

namespace Azure.Core.Tests
Expand Down
316 changes: 158 additions & 158 deletions sdk/core/Azure.Core/api/Azure.Core.net461.cs

Large diffs are not rendered by default.

316 changes: 158 additions & 158 deletions sdk/core/Azure.Core/api/Azure.Core.net5.0.cs

Large diffs are not rendered by default.

316 changes: 158 additions & 158 deletions sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs

Large diffs are not rendered by default.

316 changes: 158 additions & 158 deletions sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/src/GeoJson/GeoArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections;
using System.Collections.Generic;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a geometry coordinates array
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// Licensed under the MIT License.

using System;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents information about the coordinate range of the <see cref="GeoObject"/>.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a geometry that is composed of multiple geometries.
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
#pragma warning disable AZC0014 // Dont use System.Json apis.
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Linq;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a line geometry that consists of multiple coordinates.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a geometry that is composed of multiple <see cref="GeoLineString"/>.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a linear ring that's a part of a polygon
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
using System.IO;
using System.Text;
using System.Text.Json;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// A base type for all spatial types.
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Identifies the type of the <see cref="GeoObject"/>
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a point geometry.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a geometry that is composed of multiple <see cref="GeoPoint"/>.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

using System.Collections.Generic;
using System.Linq;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a polygon consisting of outer ring and optional inner rings.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a geometry that is composed of multiple <see cref="GeoPolygon"/>.
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
// Licensed under the MIT License.

using System;
using Azure.Core;

namespace Azure.GeoJson
namespace Azure.Core.GeoJson
{
/// <summary>
/// Represents a single spatial position with altitude, longitude, and optional latitude.
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/tests/GeoArrayTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

using System.Linq;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using NUnit.Framework;

namespace Azure.Core.Tests
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.IO;
using System.Text.Json;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using NUnit.Framework;

namespace Azure.Core.Tests
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/tests/GeoJsonTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.GeoJson;
using Azure.Core.GeoJson;
using NUnit.Framework;

namespace Azure.Core.Tests
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.GeoJson;
using Azure.Core.GeoJson;
using NUnit.Framework;

namespace Azure.Core.Samples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2549,8 +2549,8 @@ public void Clear() { }
public System.Collections.Generic.IReadOnlyList<long> GetInt64Collection(string key) { throw null; }
public Azure.Search.Documents.Models.SearchDocument GetObject(string key) { throw null; }
public System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Models.SearchDocument> GetObjectCollection(string key) { throw null; }
public Azure.GeoJson.GeoPoint GetPoint(string key) { throw null; }
public System.Collections.Generic.IReadOnlyList<Azure.GeoJson.GeoPoint> GetPointCollection(string key) { throw null; }
public Azure.Core.GeoJson.GeoPoint GetPoint(string key) { throw null; }
public System.Collections.Generic.IReadOnlyList<Azure.Core.GeoJson.GeoPoint> GetPointCollection(string key) { throw null; }
public string GetString(string key) { throw null; }
public System.Collections.Generic.IReadOnlyList<string> GetStringCollection(string key) { throw null; }
public bool Remove(string key) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Serialization;
using Azure.Search.Documents.Indexes.Models;
using Azure.GeoJson;
using Azure.Core.GeoJson;

namespace Azure.Search.Documents.Indexes
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Azure.Core;
using Azure.GeoJson;
using Azure.Core.GeoJson;

namespace Azure.Search.Documents.Models
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/Azure.Search.Documents/src/SearchFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Globalization;
using System.Text;
using Azure.Core;
using Azure.GeoJson;
using Azure.Core.GeoJson;

namespace Azure.Search.Documents
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using System.Threading.Tasks;
using Azure.Core.Pipeline;
using Azure.Core.Serialization;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Search.Documents.Models;

namespace Azure.Search.Documents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Globalization;
using System.Text;
using Azure.Core;
using Azure.GeoJson;
using Azure.Core.GeoJson;

namespace Azure.Search.Documents
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Azure.Core.Serialization;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Core.TestFramework;
using Azure.Search.Documents.Models;
using NUnit.Framework;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text.Json;
using System.Threading.Tasks;
using Azure.Core.Serialization;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Core.TestFramework;
using Azure.Search.Documents.Indexes;
using Azure.Search.Documents.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text.Json.Serialization;
using Azure.Search.Documents.Indexes;
using Azure.Search.Documents.Indexes.Models;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Microsoft.Spatial;
using KeyFieldAttribute = System.ComponentModel.DataAnnotations.KeyAttribute;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Text.Json.Serialization;
using Azure.Search.Documents.Indexes;
using Azure.Search.Documents.Indexes.Models;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Microsoft.Spatial;
using KeyFieldAttribute = System.ComponentModel.DataAnnotations.KeyAttribute;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Dynamic;
using System.Linq;
using System.Text.Json;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Search.Documents.Models;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Collections;
using System.Text;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Microsoft.Spatial;
using NUnit.Framework;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Linq;
using System.Text.Json.Serialization;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Core.Serialization;
using Azure.Search.Documents.Models;
using Azure.Search.Documents.Indexes.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Threading.Tasks;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Core.TestFramework;
using Azure.Search.Documents.Indexes;
using Azure.Search.Documents.Indexes.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Azure.GeoJson;
using Azure.Core.GeoJson;
using Azure.Search.Documents.Models;
using Microsoft.Spatial;
using NUnit.Framework;
Expand Down

0 comments on commit 28dd603

Please sign in to comment.