@@ -59,7 +59,155 @@ public static NTSG STGeomFromText(string wkt, int srid)
59
59
throw new InvalidOperationException ( ) ;
60
60
}
61
61
62
- // TODO: Implement 8.8.2. Well-Known Binary (WKB)
62
+ #region 8.8.2. Well-Known Binary (WKB)
63
+
64
+ // TODO: geography ST_GeogFromWKB(bytea wkb);
65
+
66
+ /// <summary>
67
+ /// Constructs geometry from Extended Well-Known Binary (EWKB) representation.
68
+ /// </summary>
69
+ /// <remarks>
70
+ /// See https://postgis.net/docs/manual-3.0/ST_GeomFromEWKB.html
71
+ /// </remarks>
72
+ /// <param name="ewkb">Extended Well-Known Binary (EWKB)</param>
73
+ /// <returns>Geometry</returns>
74
+ [ Sql . Function ( "ST_GeomFromEWKB" , ServerSideOnly = true ) ]
75
+ public static NTSG STGeomFromEWKB ( byte [ ] ewkb )
76
+ {
77
+ throw new InvalidOperationException ( ) ;
78
+ }
79
+
80
+ /// <summary>
81
+ /// Constructs geometry from Well-Known Binary (WKB) representation.
82
+ /// </summary>
83
+ /// <remarks>
84
+ /// See https://postgis.net/docs/manual-3.0/ST_GeomFromWKB.html
85
+ /// </remarks>
86
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
87
+ /// <returns>Geometry</returns>
88
+ [ Sql . Function ( "ST_GeomFromWKB" , ServerSideOnly = true ) ]
89
+ public static NTSG STGeomFromWKB ( byte [ ] wkb )
90
+ {
91
+ throw new InvalidOperationException ( ) ;
92
+ }
93
+
94
+ /// <summary>
95
+ /// Constructs geometry from Well-Known Binary (WKB) representation with given SRID.
96
+ /// </summary>
97
+ /// <remarks>
98
+ /// See https://postgis.net/docs/manual-3.0/ST_GeomFromWKB.html
99
+ /// </remarks>
100
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
101
+ /// <param name="srid">Spatial Reference System Identifier for geometry</param>
102
+ /// <returns>Geometry</returns>
103
+ [ Sql . Function ( "ST_GeomFromWKB" , ServerSideOnly = true ) ]
104
+ public static NTSG STGeomFromWKB ( byte [ ] wkb , int srid )
105
+ {
106
+ throw new InvalidOperationException ( ) ;
107
+ }
108
+
109
+ /// <summary>
110
+ /// Constructs geometry (LINESTRING) from Well-Known Binary (WKB) representation.
111
+ /// </summary>
112
+ /// <remarks>
113
+ /// See https://postgis.net/docs/manual-3.0/ST_LineFromWKB.html
114
+ /// </remarks>
115
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
116
+ /// <returns>Geometry (LINESTRING)</returns>
117
+ [ Sql . Function ( "ST_LineFromWKB" , ServerSideOnly = true ) ]
118
+ public static NTSG STLineFromWKB ( byte [ ] wkb )
119
+ {
120
+ throw new InvalidOperationException ( ) ;
121
+ }
122
+
123
+ /// <summary>
124
+ /// Constructs geometry (LINESTRING) from Well-Known Binary (WKB) representation with given SRID.
125
+ /// </summary>
126
+ /// <remarks>
127
+ /// See https://postgis.net/docs/manual-3.0/ST_LineFromWKB.html
128
+ /// </remarks>
129
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
130
+ /// <param name="srid">Spatial Reference System Identifier for geometry</param>
131
+ /// <returns>Geometry (LINESTRING)</returns>
132
+ [ Sql . Function ( "ST_LineFromWKB" , ServerSideOnly = true ) ]
133
+ public static NTSG STLineFromWKB ( byte [ ] wkb , int srid )
134
+ {
135
+ throw new InvalidOperationException ( ) ;
136
+ }
137
+
138
+ /// <summary>
139
+ /// Constructs geometry (LINESTRING) from Well-Known Binary (WKB) representation.
140
+ /// </summary>
141
+ /// <remarks>
142
+ /// See https://postgis.net/docs/manual-3.0/ST_LinestringFromWKB.html
143
+ /// </remarks>
144
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
145
+ /// <returns>Geometry (LINESTRING)</returns>
146
+ [ Sql . Function ( "ST_LinestringFromWKB" , ServerSideOnly = true ) ]
147
+ public static NTSG STLinestringFromWKB ( byte [ ] wkbd )
148
+ {
149
+ throw new InvalidOperationException ( ) ;
150
+ }
151
+
152
+ /// <summary>
153
+ /// Constructs geometry (LINESTRING) from Well-Known Binary (WKB) representation with given SRID.
154
+ /// </summary>
155
+ /// <remarks>
156
+ /// See https://postgis.net/docs/manual-3.0/ST_LinestringFromWKB.html
157
+ /// </remarks>
158
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
159
+ /// <param name="srid">Spatial Reference System Identifier for geometry</param>
160
+ /// <returns>Geometry (LINESTRING)</returns>
161
+ [ Sql . Function ( "ST_LinestringFromWKB" , ServerSideOnly = true ) ]
162
+ public static NTSG STLinestringFromWKB ( byte [ ] wkb , int srid )
163
+ {
164
+ throw new InvalidOperationException ( ) ;
165
+ }
166
+
167
+ /// <summary>
168
+ /// Constructs geometry (POINT) from Well-Known Binary (WKB) representation.
169
+ /// </summary>
170
+ /// <remarks>
171
+ /// See https://postgis.net/docs/manual-3.0/ST_PointFromWKB.html
172
+ /// </remarks>
173
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
174
+ /// <returns>Geometry (POINT)</returns>
175
+ [ Sql . Function ( "ST_PointFromWKB" , ServerSideOnly = true ) ]
176
+ public static NTSG STPointFromWKB ( byte [ ] wkb )
177
+ {
178
+ throw new InvalidOperationException ( ) ;
179
+ }
180
+
181
+ /// <summary>
182
+ /// Constructs geometry (POINT) from Well-Known Binary (WKB) representation with given SRID.
183
+ /// </summary>
184
+ /// <remarks>
185
+ /// See https://postgis.net/docs/manual-3.0/ST_PointFromWKB.html
186
+ /// </remarks>
187
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
188
+ /// <param name="srid">Spatial Reference System Identifier for geometry</param>
189
+ /// <returns>Geometry (POINT)</returns>
190
+ [ Sql . Function ( "ST_PointFromWKB" , ServerSideOnly = true ) ]
191
+ public static NTSG STPointFromWKB ( byte [ ] wkb , int srid )
192
+ {
193
+ throw new InvalidOperationException ( ) ;
194
+ }
195
+
196
+ /// <summary>
197
+ /// Constructs geometry from Well-Known Binary (WKB) representation.
198
+ /// </summary>
199
+ /// <remarks>
200
+ /// See https://postgis.net/docs/manual-3.0/ST_WKBToSQL.html
201
+ /// </remarks>
202
+ /// <param name="wkb">Well-Known Binary (WKB)</param>
203
+ /// <returns>Geometry</returns>
204
+ [ Sql . Function ( "ST_WKBToSQL" , ServerSideOnly = true ) ]
205
+ public static NTSG STWKBToSQL ( byte [ ] wkb )
206
+ {
207
+ throw new InvalidOperationException ( ) ;
208
+ }
209
+
210
+ #endregion
63
211
64
212
#region 8.8.3. Other Formats
65
213
@@ -159,7 +307,7 @@ public static NTSG STGeomFromKML(string kml)
159
307
/// <remarks>
160
308
/// See https://postgis.net/docs/manual-3.0/ST_GeomFromTWKB.html
161
309
/// </remarks>
162
- /// <param name="twkb ">Tiny Well-Known Binary (TWKB)</param>
310
+ /// <param name="ewkb ">Tiny Well-Known Binary (TWKB)</param>
163
311
/// <returns>Geometry</returns>
164
312
[ Sql . Function ( "ST_GeomFromTWKB" , ServerSideOnly = true ) ]
165
313
public static NTSG STGeomFromTWKB ( byte [ ] twkb )
0 commit comments