Skip to content

Commit 5c523d0

Browse files
committed
Minor test fix
1 parent e6eab22 commit 5c523d0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

LinqToDBPostGisNetTopologySuite.Tests/GeometryProcessingTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void TestSTBuffer()
5353
.Select(g => g.Geography.STBuffer(50.0).STArea())
5454
.Single();
5555

56-
Assert.AreEqual(7788.3237, geographyPointBufferArea.Value, 1.0E-4);
56+
Assert.AreEqual(7788.324, geographyPointBufferArea.Value, 1.0E-3);
5757
}
5858
}
5959

LinqToDBPostGisNetTopologySuite/PostGisCompositeTypeMapper.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,25 @@
33

44
namespace LinqToDBPostGisNetTopologySuite
55
{
6+
/// <summary>
7+
/// Utility class with methods for registering PostGIS composite types mappings.
8+
/// </summary>
69
public static class PostGisCompositeTypeMapper
710
{
11+
/// <summary>
12+
/// Registers PostGIS composite types mappings for given <paramref name="connection"/>.
13+
/// </summary>
14+
/// <param name="connection">Database connection.</param>
815
public static void RegisterPostGisCompositeTypes(this IDbConnection connection)
916
{
1017
var typeMapper = (connection as NpgsqlConnection).TypeMapper;
1118

1219
typeMapper.MapComposite<ValidDetail>(ValidDetail.CompositeTypeName);
1320
}
1421

22+
/// <summary>
23+
/// Globally registers PostGIS composite types mappings for all database connections.
24+
/// </summary>
1525
public static void RegisterPostGisCompositeTypesGlobally()
1626
{
1727
NpgsqlConnection.GlobalTypeMapper.MapComposite<ValidDetail>(ValidDetail.CompositeTypeName);

0 commit comments

Comments
 (0)