Skip to content

Commit 012a17f

Browse files
committed
Fixed XML comments structure (placed URLs into remarks tag)
1 parent 76d9a81 commit 012a17f

File tree

9 files changed

+107
-73
lines changed

9 files changed

+107
-73
lines changed

LinqToDBPostGisNetTopologySuite/GeometryAccessors.cs

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,34 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.4. Geometry Accessors
14-
/// https://postgis.net/docs/manual-3.0/reference.html#Geometry_Accessors
10+
/// Geometry Accessors
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.4. Geometry Accessors https://postgis.net/docs/manual-3.0/reference.html#Geometry_Accessors
14+
/// </remarks>
1615
public static class GeometryAccessors
1716
{
1817
/// <summary>
19-
/// Returns a LINESTRING representing the exterior ring of the POLYGON geometry. Return NULL if the geometry is not a polygon.
20-
/// https://postgis.net/docs/manual-3.0/ST_ExteriorRing.html
18+
/// Returns a LINESTRING representing the exterior ring of the POLYGON geometry. Returns NULL if the geometry is not a polygon.
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_ExteriorRing.html
22+
/// </remarks>
2223
/// <param name="geometry">Input geometry</param>
23-
/// <returns>Geometry</returns>
24+
/// <returns>Exterior ring geometry</returns>
2425
[Sql.Function("ST_ExteriorRing", ServerSideOnly = true)]
2526
public static NTSG STExteriorRing(this NTSG geometry)
2627
{
2728
throw new InvalidOperationException();
2829
}
2930

3031
/// <summary>
31-
/// Return the number of points in a geometry. Works for all geometries.
32-
/// https://postgis.net/docs/manual-3.0/ST_NPoints.html
32+
/// Returns the number of points in a geometry.
3333
/// </summary>
34+
/// <remarks>
35+
/// See https://postgis.net/docs/manual-3.0/ST_NPoints.html
36+
/// </remarks>
3437
/// <param name="geometry">Input geometry</param>
3538
/// <returns>Number of points</returns>
3639
[Sql.Function("ST_NPoints", ServerSideOnly = true)]
@@ -40,9 +43,11 @@ public static int STNPoints(this NTSG geometry)
4043
}
4144

4245
/// <summary>
43-
/// Returns the minimum bounding box for the supplied geometry, as a geometry.
44-
/// https://postgis.net/docs/manual-3.0/ST_Envelope.html
46+
/// Returns the minimum bounding box for the supplied geometry, as geometry.
4547
/// </summary>
48+
/// <remarks>
49+
/// See https://postgis.net/docs/manual-3.0/ST_Envelope.html
50+
/// </remarks>
4651
/// <param name="geometry">Input geometry</param>
4752
/// <returns>Bounding box geometry</returns>
4853
[Sql.Function("ST_Envelope", ServerSideOnly = true)]

LinqToDBPostGisNetTopologySuite/GeometryInput.cs

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.8. Geometry Output
14-
/// https://postgis.net/docs/manual-3.0/reference.html#Geometry_Inputs
10+
/// Geometry Input
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.8. Geometry Input https://postgis.net/docs/manual-3.0/reference.html#Geometry_Inputs
14+
/// </remarks>
1615
public static class GeometryInput
1716
{
1817
/// <summary>
19-
/// Constructs a PostGIS ST_Geometry object from the OGC Extended Well-Known Text (EWKT) representation.
20-
/// https://postgis.net/docs/manual-3.0/ST_GeomFromEWKT.html
18+
/// Constructs geometry from the Extended Well-Known Text (EWKT) representation.
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_GeomFromEWKT.html
22+
/// </remarks>
2223
/// <param name="ewkt">Extended Well-Known Text (EWKT)</param>
2324
/// <returns>Geometry</returns>
2425
[Sql.Function("ST_GeomFromEWKT", ServerSideOnly = true)]
@@ -28,9 +29,11 @@ public static NTSG STGeomFromEWKT(string ewkt)
2829
}
2930

3031
/// <summary>
31-
/// Constructs a PostGIS ST_Geometry object from the OGC Well-Known Text (WKT) representation.
32-
/// https://postgis.net/docs/manual-3.0/ST_GeomFromText.html
32+
/// Constructs geometry from the OGC Well-Known Text (WKT) representation.
3333
/// </summary>
34+
/// <remarks>
35+
/// See https://postgis.net/docs/manual-3.0/ST_GeomFromText.html
36+
/// </remarks>
3437
/// <param name="wkt">Well-Known Text (WKT)</param>
3538
/// <returns>Geometry</returns>
3639
[Sql.Function("ST_GeomFromText", ServerSideOnly = true)]
@@ -40,9 +43,11 @@ public static NTSG STGeomFromText(string wkt)
4043
}
4144

4245
/// <summary>
43-
/// Constructs a PostGIS ST_Geometry object from the OGC Well-Known Text (WKT) representation.
44-
/// https://postgis.net/docs/manual-3.0/ST_GeomFromText.html
46+
/// Constructs geometry from the OGC Well-Known Text (WKT) representation with given SRID.
4547
/// </summary>
48+
/// <remarks>
49+
/// See https://postgis.net/docs/manual-3.0/ST_GeomFromText.html
50+
/// </remarks>
4651
/// <param name="wkt">Well-Known Text (WKT)</param>
4752
/// <param name="srid">SRID of geometry</param>
4853
/// <returns>Geometry</returns>

LinqToDBPostGisNetTopologySuite/GeometryOutput.cs

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.9. Geometry Output
14-
/// https://postgis.net/docs/manual-3.0/reference.html#Geometry_Outputs
10+
/// Geometry Output
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.9. Geometry Output https://postgis.net/docs/manual-3.0/reference.html#Geometry_Outputs
14+
/// </remarks>
1615
public static class GeometryOutput
1716
{
1817
/// <summary>
1918
/// Returns the Extended Well-Known Text representation of the geometry prefixed with the SRID.
20-
/// https://postgis.net/docs/manual-3.0/ST_AsEWKT.html
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_AsEWKT.html
22+
/// </remarks>
2223
/// <param name="geometry">Input geometry</param>
2324
/// <returns>Extended Well-Known Text</returns>
2425
[Sql.Function("ST_AsEWKT", ServerSideOnly = true)]
@@ -29,8 +30,10 @@ public static string STAsEWKT(this NTSG geometry)
2930

3031
/// <summary>
3132
/// Returns the Well-Known Text representation of the geometry.
32-
/// https://postgis.net/docs/manual-3.0/ST_AsText.html
3333
/// </summary>
34+
/// <remarks>
35+
/// See https://postgis.net/docs/manual-3.0/ST_AsText.html
36+
/// </remarks>
3437
/// <param name="geometry">Input geometry</param>
3538
/// <returns>Well-Known Text</returns>
3639
[Sql.Function("ST_AsText", ServerSideOnly = true)]
@@ -41,8 +44,10 @@ public static string STAsText(this NTSG geometry)
4144

4245
/// <summary>
4346
/// Returns the Well-Known Binary representation of the geometry.
44-
/// https://postgis.net/docs/manual-3.0/ST_AsBinary.html
4547
/// </summary>
48+
/// <remarks>
49+
/// See https://postgis.net/docs/manual-3.0/ST_AsBinary.html
50+
/// </remarks>
4651
/// <param name="geometry">Input geometry</param>
4752
/// <returns>Well-Known Binary</returns>
4853
[Sql.Function("ST_AsBinary", ServerSideOnly = true)]
@@ -52,9 +57,11 @@ public static byte[] STAsBinary(this NTSG geometry) // TODO: NDR_or_XDR version
5257
}
5358

5459
/// <summary>
55-
/// Return the geometry as a GeoJSON "geometry" object.
56-
/// https://postgis.net/docs/manual-3.0/ST_AsGeoJSON.html
60+
/// Returns geometry as GeoJSON "geometry" object.
5761
/// </summary>
62+
/// <remarks>
63+
/// See https://postgis.net/docs/manual-3.0/ST_AsGeoJSON.html
64+
/// </remarks>
5865
/// <param name="geometry">Input geometry</param>
5966
/// <returns>GeoJSON</returns>
6067
[Sql.Function("ST_AsGeoJSON", ServerSideOnly = true)]

LinqToDBPostGisNetTopologySuite/GeometryProcessing.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.13. Geometry Processing
14-
/// https://postgis.net/docs/manual-3.0/reference.html#Geometry_Processing
10+
/// Geometry Processing
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.13. Geometry Processing https://postgis.net/docs/manual-3.0/reference.html#Geometry_Processing
14+
/// </remarks>
1615
public static class GeometryProcessing
1716
{
1817
/// <summary>
19-
/// Returns a geometry that represents all points whose distance from this geometry is less than or equal to distance.
20-
/// https://postgis.net/docs/manual-3.0/ST_Buffer.html
18+
/// Returns geometry that represents all points whose distance from this geometry is less than or equal to distance.
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_Buffer.html
22+
/// </remarks>
2223
/// <param name="geometry">Input geometry</param>
2324
/// <param name="radius">Buffer radius</param>
2425
/// <returns>Geometry</returns>

LinqToDBPostGisNetTopologySuite/MeasurementFunctions.cs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.12. Measurement Functions
14-
/// https://postgis.net/docs/manual-3.0/reference.html#Measurement_Functions
10+
/// Measurement Functions
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.12. Measurement Functions https://postgis.net/docs/manual-3.0/reference.html#Measurement_Functions
14+
/// </remarks>
1615
public static class MeasurementFunctions
1716
{
1817
/// <summary>
1918
/// Returns the area of a polygonal geometry. For geometry types a 2D Cartesian (planar) area is computed, with units specified by the SRID.
20-
/// https://postgis.net/docs/manual-3.0/ST_Area.html
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_Area.html
22+
/// </remarks>
2223
/// <param name="geometry">Input geometry</param>
2324
/// <returns>Area</returns>
2425
[Sql.Function("ST_Area", ServerSideOnly = true)]
@@ -29,8 +30,10 @@ public static double STArea(this NTSG geometry)
2930

3031
/// <summary>
3132
/// For geometry types returns the minimum 2D Cartesian (planar) distance between two geometries, in projected units (spatial ref units).
32-
/// https://postgis.net/docs/manual-3.0/ST_Distance.html
3333
/// </summary>
34+
/// <remarks>
35+
/// See https://postgis.net/docs/manual-3.0/ST_Distance.html
36+
/// </remarks>
3437
/// <param name="geometry">Input geometry 1</param>
3538
/// <param name="other">Input geometry 2</param>
3639
/// <returns>Distance between two geometries</returns>
@@ -42,8 +45,10 @@ public static double STDistance(this NTSG geometry, NTSG other)
4245

4346
/// <summary>
4447
/// Returns the 2D Cartesian length of the geometry if it is a LineString, MultiLineString, ST_Curve, ST_MultiCurve. For areal geometries 0 is returned; use ST_Perimeter instead.
45-
/// https://postgis.net/docs/manual-3.0/ST_Length.html
4648
/// </summary>
49+
/// <remarks>
50+
/// See https://postgis.net/docs/manual-3.0/ST_Length.html
51+
/// </remarks>
4752
/// <param name="geometry">Input geometry</param>
4853
/// <returns>Length</returns>
4954
[Sql.Function("ST_Length", ServerSideOnly = true)]
@@ -54,8 +59,10 @@ public static double STLength(this NTSG geometry)
5459

5560
/// <summary>
5661
/// Returns the 2D perimeter of the geometry if it is a ST_Surface, ST_MultiSurface (Polygon, MultiPolygon). Zero is returned for non-areal geometries. For linear geometries use ST_Length.
57-
/// https://postgis.net/docs/manual-3.0/ST_Perimeter.html
5862
/// </summary>
63+
/// <remarks>
64+
/// See https://postgis.net/docs/manual-3.0/ST_Perimeter.html
65+
/// </remarks>
5966
/// <param name="geometry">Input geometry</param>
6067
/// <returns>Perimeter</returns>
6168
[Sql.Function("ST_Perimeter", ServerSideOnly = true)]

LinqToDBPostGisNetTopologySuite/SpatialReferenceSystemFunctions.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.7. Spatial Reference System Functions
14-
/// https://postgis.net/docs/manual-3.0/reference.html#SRS_Functions
10+
/// Spatial Reference System Functions
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.7. Spatial Reference System Functions https://postgis.net/docs/manual-3.0/reference.html#SRS_Functions
14+
/// </remarks>
1615
public static class SpatialReferenceSystemFunctions
1716
{
1817
/// <summary>
19-
/// Returns the spatial reference identifier for the ST_Geometry as defined in spatial_ref_sys table.
20-
/// https://postgis.net/docs/manual-3.0/ST_SRID.html
18+
/// Returns the spatial reference identifier for the geometry as defined in spatial_ref_sys table.
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_SRID.html
22+
/// </remarks>
2223
/// <param name="geometry">Input geometry</param>
23-
/// <returns>Spatial reference identifier</returns>
24+
/// <returns>Spatial Reference System Identifier</returns>
2425
[Sql.Function("ST_SRID", ServerSideOnly = true)]
2526
public static int STSrId(this NTSG geometry)
2627
{
@@ -29,10 +30,12 @@ public static int STSrId(this NTSG geometry)
2930

3031
/// <summary>
3132
/// Returns a new geometry with its coordinates transformed to a different spatial reference system.
32-
/// https://postgis.net/docs/manual-3.0/ST_Transform.html
3333
/// </summary>
34-
/// <param name="geometry ">Input geometry</param>
35-
/// <param name="srid">Spatial reference system ID</param>
34+
/// <remarks>
35+
/// See https://postgis.net/docs/manual-3.0/ST_Transform.html
36+
/// </remarks>
37+
/// <param name="geometry">Input geometry</param>
38+
/// <param name="srid">Spatial Reference System Identifier</param>
3639
/// <returns>Transformed geometry</returns>
3740
[Sql.Function("ST_Transform", ServerSideOnly = true)]
3841
public static NTSG STTransform(this NTSG geometry, int srid)

LinqToDBPostGisNetTopologySuite/SpatialRelationships.cs

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66

77
namespace LinqToDBPostGisNetTopologySuite
88
{
9-
// Chapter 8. PostGIS Reference
10-
// https://postgis.net/docs/manual-3.0/reference.html
11-
129
/// <summary>
13-
/// 8.11. Spatial Relationships
14-
/// https://postgis.net/docs/manual-3.0/reference.html#Spatial_Relationships
10+
/// Spatial Relationships
1511
/// </summary>
12+
/// <remarks>
13+
/// 8.11. Spatial Relationships https://postgis.net/docs/manual-3.0/reference.html#Spatial_Relationships
14+
/// </remarks>
1615
public static class SpatialRelationships
1716
{
1817
/// <summary>
19-
/// Returns TRUE if geometry 2 is completely inside geometry 1.
20-
/// https://postgis.net/docs/manual-3.0/ST_Contains.html
18+
/// Returns true if geometry 2 is completely inside geometry 1.
2119
/// </summary>
20+
/// <remarks>
21+
/// See https://postgis.net/docs/manual-3.0/ST_Contains.html
22+
/// </remarks>
2223
/// <param name="geometry">Input geometry 1</param>
2324
/// <param name="other">Input geometry 2</param>
2425
/// <returns>Is contains</returns>
@@ -29,12 +30,14 @@ public static bool STContains(this NTSG geometry, NTSG other)
2930
}
3031

3132
/// <summary>
32-
/// Returns true if no point in other geometry 2 is outside geometry 1
33-
/// https://postgis.net/docs/manual-3.0/ST_Covers.html
33+
/// Returns true if no point in geometry 2 is outside geometry 1
3434
/// </summary>
35+
/// <remarks>
36+
/// See https://postgis.net/docs/manual-3.0/ST_Covers.html
37+
/// </remarks>
3538
/// <param name="geometry">Input geometry 1</param>
3639
/// <param name="other">Input geometry 2</param>
37-
/// <returns>Is intersects</returns>
40+
/// <returns>Is covers</returns>
3841
[Sql.Function("ST_Covers", ServerSideOnly = true)]
3942
public static bool STCovers(this NTSG geometry, NTSG other)
4043
{
@@ -43,8 +46,10 @@ public static bool STCovers(this NTSG geometry, NTSG other)
4346

4447
/// <summary>
4548
/// Tests if two geometries shares any portion of space then they intersect.
46-
/// https://postgis.net/docs/manual-3.0/ST_Intersects.html
4749
/// </summary>
50+
/// <remarks>
51+
/// See https://postgis.net/docs/manual-3.0/ST_Intersects.html
52+
/// </remarks>
4853
/// <param name="geometry">Input geometry 1</param>
4954
/// <param name="other">Input geometry 2</param>
5055
/// <returns>Is intersects</returns>

LinqToDBPostGisNpgsqlTypes/GeometryEditors.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static PostgisGeometry STReverse(this PostgisGeometry geom)
2626
/// http://postgis.refractions.net/documentation/manual-1.5/ST_SetSRID.html
2727
/// </summary>
2828
/// <param name="geom">Input geometry</param>
29-
/// <param name="srid">Spatial reference system ID</param>
29+
/// <param name="srid">Spatial Reference System Identifier</param>
3030
/// <returns></returns>
3131
[Sql.Function("ST_SetSRID", ServerSideOnly = true)]
3232
public static PostgisGeometry STSetSrid(this PostgisGeometry geom, int srid)
@@ -39,7 +39,7 @@ public static PostgisGeometry STSetSrid(this PostgisGeometry geom, int srid)
3939
/// http://postgis.refractions.net/documentation/manual-1.5/ST_Transform.html
4040
/// </summary>
4141
/// <param name="geom">Input geometry</param>
42-
/// <param name="srid">Spatial reference system ID</param>
42+
/// <param name="srid">Spatial Reference System Identifier</param>
4343
/// <returns>Transformed geometry</returns>
4444
[Sql.Function("ST_Transform", ServerSideOnly = true)]
4545
public static PostgisGeometry STTransform(this PostgisGeometry geom, int srid)

0 commit comments

Comments
 (0)