@@ -111,7 +111,7 @@ def as_ewkb(self) -> ir.BinaryValue:
111
111
"""
112
112
return ops .GeoAsEWKB (self ).to_expr ()
113
113
114
- def contains (self , right : GeoSpatialValue ) -> ir .BooleanValue :
114
+ def contains (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
115
115
"""Check if the geometry contains the `right`.
116
116
117
117
Parameters
@@ -153,7 +153,7 @@ def contains(self, right: GeoSpatialValue) -> ir.BooleanValue:
153
153
"""
154
154
return ops .GeoContains (self , right ).to_expr ()
155
155
156
- def contains_properly (self , right : GeoSpatialValue ) -> ir .BooleanValue :
156
+ def contains_properly (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
157
157
"""Check if the first geometry contains the second one.
158
158
159
159
Excludes common border points.
@@ -170,7 +170,7 @@ def contains_properly(self, right: GeoSpatialValue) -> ir.BooleanValue:
170
170
"""
171
171
return ops .GeoContainsProperly (self , right ).to_expr ()
172
172
173
- def covers (self , right : GeoSpatialValue ) -> ir .BooleanValue :
173
+ def covers (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
174
174
"""Check if the first geometry covers the second one.
175
175
176
176
Parameters
@@ -215,7 +215,7 @@ def covers(self, right: GeoSpatialValue) -> ir.BooleanValue:
215
215
"""
216
216
return ops .GeoCovers (self , right ).to_expr ()
217
217
218
- def covered_by (self , right : GeoSpatialValue ) -> ir .BooleanValue :
218
+ def covered_by (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
219
219
"""Check if the first geometry is covered by the second one.
220
220
221
221
Parameters
@@ -280,7 +280,7 @@ def covered_by(self, right: GeoSpatialValue) -> ir.BooleanValue:
280
280
"""
281
281
return ops .GeoCoveredBy (self , right ).to_expr ()
282
282
283
- def crosses (self , right : GeoSpatialValue ) -> ir .BooleanValue :
283
+ def crosses (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
284
284
"""Check if the geometries have at least one, but not all, interior points in common.
285
285
286
286
Parameters
@@ -345,6 +345,8 @@ def crosses(self, right: GeoSpatialValue) -> ir.BooleanValue:
345
345
def d_fully_within (
346
346
self ,
347
347
right : GeoSpatialValue ,
348
+ / ,
349
+ * ,
348
350
distance : ir .FloatingValue ,
349
351
) -> ir .BooleanValue :
350
352
"""Check if `self` is entirely within `distance` from `right`.
@@ -363,7 +365,7 @@ def d_fully_within(
363
365
"""
364
366
return ops .GeoDFullyWithin (self , right , distance ).to_expr ()
365
367
366
- def disjoint (self , right : GeoSpatialValue ) -> ir .BooleanValue :
368
+ def disjoint (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
367
369
"""Check if the geometries have no points in common.
368
370
369
371
Parameters
@@ -468,7 +470,7 @@ def d_within(
468
470
"""
469
471
return ops .GeoDWithin (self , right , distance ).to_expr ()
470
472
471
- def geo_equals (self , right : GeoSpatialValue ) -> ir .BooleanValue :
473
+ def geo_equals (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
472
474
"""Check if the geometries are equal.
473
475
474
476
Parameters
@@ -507,7 +509,7 @@ def geo_equals(self, right: GeoSpatialValue) -> ir.BooleanValue:
507
509
"""
508
510
return ops .GeoEquals (self , right ).to_expr ()
509
511
510
- def geometry_n (self , n : int | ir .IntegerValue ) -> GeoSpatialValue :
512
+ def geometry_n (self , n : int | ir .IntegerValue , / ) -> GeoSpatialValue :
511
513
"""Get the 1-based Nth geometry of a multi geometry.
512
514
513
515
Parameters
@@ -556,7 +558,7 @@ def geometry_type(self) -> ir.StringValue:
556
558
"""
557
559
return ops .GeoGeometryType (self ).to_expr ()
558
560
559
- def intersects (self , right : GeoSpatialValue ) -> ir .BooleanValue :
561
+ def intersects (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
560
562
"""Check if the geometries share any points.
561
563
562
564
Parameters
@@ -632,7 +634,7 @@ def is_valid(self) -> ir.BooleanValue:
632
634
"""
633
635
return ops .GeoIsValid (self ).to_expr ()
634
636
635
- def ordering_equals (self , right : GeoSpatialValue ) -> ir .BooleanValue :
637
+ def ordering_equals (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
636
638
"""Check if two geometries are equal and have the same point ordering.
637
639
638
640
Returns true if the two geometries are equal and the coordinates
@@ -650,7 +652,7 @@ def ordering_equals(self, right: GeoSpatialValue) -> ir.BooleanValue:
650
652
"""
651
653
return ops .GeoOrderingEquals (self , right ).to_expr ()
652
654
653
- def overlaps (self , right : GeoSpatialValue ) -> ir .BooleanValue :
655
+ def overlaps (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
654
656
"""Check if the geometries share space, have the same dimension, and are not completely contained by each other.
655
657
656
658
Parameters
@@ -695,7 +697,7 @@ def overlaps(self, right: GeoSpatialValue) -> ir.BooleanValue:
695
697
"""
696
698
return ops .GeoOverlaps (self , right ).to_expr ()
697
699
698
- def touches (self , right : GeoSpatialValue ) -> ir .BooleanValue :
700
+ def touches (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
699
701
"""Check if the geometries have at least one point in common, but do not intersect.
700
702
701
703
Parameters
@@ -740,7 +742,7 @@ def touches(self, right: GeoSpatialValue) -> ir.BooleanValue:
740
742
"""
741
743
return ops .GeoTouches (self , right ).to_expr ()
742
744
743
- def distance (self , right : GeoSpatialValue ) -> ir .FloatingValue :
745
+ def distance (self , right : GeoSpatialValue , / ) -> ir .FloatingValue :
744
746
"""Compute the distance between two geospatial expressions.
745
747
746
748
Parameters
@@ -840,7 +842,7 @@ def perimeter(self) -> ir.FloatingValue:
840
842
"""
841
843
return ops .GeoPerimeter (self ).to_expr ()
842
844
843
- def max_distance (self , right : GeoSpatialValue ) -> ir .FloatingValue :
845
+ def max_distance (self , right : GeoSpatialValue , / ) -> ir .FloatingValue :
844
846
"""Returns the 2-dimensional max distance between two geometries in projected units.
845
847
846
848
If `self` and `right` are the same geometry the function will return
@@ -859,7 +861,7 @@ def max_distance(self, right: GeoSpatialValue) -> ir.FloatingValue:
859
861
"""
860
862
return ops .GeoMaxDistance (self , right ).to_expr ()
861
863
862
- def union (self , right : GeoSpatialValue ) -> GeoSpatialValue :
864
+ def union (self , right : GeoSpatialValue , / ) -> GeoSpatialValue :
863
865
"""Merge two geometries into a union geometry.
864
866
865
867
Returns the pointwise union of the two geometries.
@@ -1070,7 +1072,7 @@ def end_point(self) -> PointValue:
1070
1072
"""
1071
1073
return ops .GeoEndPoint (self ).to_expr ()
1072
1074
1073
- def point_n (self , n : ir .IntegerValue ) -> PointValue :
1075
+ def point_n (self , n : ir .IntegerValue , / ) -> PointValue :
1074
1076
"""Return the Nth point in a single linestring in the geometry.
1075
1077
1076
1078
Negative values are counted backwards from the end of the LineString,
@@ -1145,7 +1147,7 @@ def srid(self) -> ir.IntegerValue:
1145
1147
"""
1146
1148
return ops .GeoSRID (self ).to_expr ()
1147
1149
1148
- def set_srid (self , srid : ir .IntegerValue ) -> GeoSpatialValue :
1150
+ def set_srid (self , srid : ir .IntegerValue , / ) -> GeoSpatialValue :
1149
1151
"""Set the spatial reference identifier for the `ST_Geometry`.
1150
1152
1151
1153
Parameters
@@ -1160,7 +1162,7 @@ def set_srid(self, srid: ir.IntegerValue) -> GeoSpatialValue:
1160
1162
"""
1161
1163
return ops .GeoSetSRID (self , srid = srid ).to_expr ()
1162
1164
1163
- def buffer (self , radius : float | ir .FloatingValue ) -> GeoSpatialValue :
1165
+ def buffer (self , radius : float | ir .FloatingValue , / ) -> GeoSpatialValue :
1164
1166
"""Return all points whose distance from this geometry is less than or equal to `radius`.
1165
1167
1166
1168
Calculations are in the Spatial Reference System of this Geometry.
@@ -1290,7 +1292,7 @@ def envelope(self) -> ir.PolygonValue:
1290
1292
"""
1291
1293
return ops .GeoEnvelope (self ).to_expr ()
1292
1294
1293
- def within (self , right : GeoSpatialValue ) -> ir .BooleanValue :
1295
+ def within (self , right : GeoSpatialValue , / ) -> ir .BooleanValue :
1294
1296
"""Check if the first geometry is completely inside of the second.
1295
1297
1296
1298
Parameters
@@ -1326,7 +1328,7 @@ def within(self, right: GeoSpatialValue) -> ir.BooleanValue:
1326
1328
"""
1327
1329
return ops .GeoWithin (self , right ).to_expr ()
1328
1330
1329
- def azimuth (self , right : GeoSpatialValue ) -> ir .FloatingValue :
1331
+ def azimuth (self , right : GeoSpatialValue , / ) -> ir .FloatingValue :
1330
1332
"""Return the angle in radians from the horizontal of the vector defined by the inputs.
1331
1333
1332
1334
Angle is computed clockwise from down-to-up on the clock: 12=0; 3=PI/2; 6=PI; 9=3PI/2.
@@ -1343,7 +1345,7 @@ def azimuth(self, right: GeoSpatialValue) -> ir.FloatingValue:
1343
1345
"""
1344
1346
return ops .GeoAzimuth (self , right ).to_expr ()
1345
1347
1346
- def intersection (self , right : GeoSpatialValue ) -> GeoSpatialValue :
1348
+ def intersection (self , right : GeoSpatialValue , / ) -> GeoSpatialValue :
1347
1349
"""Return the intersection of two geometries.
1348
1350
1349
1351
Parameters
@@ -1382,7 +1384,7 @@ def intersection(self, right: GeoSpatialValue) -> GeoSpatialValue:
1382
1384
"""
1383
1385
return ops .GeoIntersection (self , right ).to_expr ()
1384
1386
1385
- def difference (self , right : GeoSpatialValue ) -> GeoSpatialValue :
1387
+ def difference (self , right : GeoSpatialValue , / ) -> GeoSpatialValue :
1386
1388
"""Return the difference of two geometries.
1387
1389
1388
1390
Parameters
@@ -1433,6 +1435,7 @@ def difference(self, right: GeoSpatialValue) -> GeoSpatialValue:
1433
1435
1434
1436
def simplify (
1435
1437
self ,
1438
+ * ,
1436
1439
tolerance : ir .FloatingValue ,
1437
1440
preserve_collapsed : ir .BooleanValue ,
1438
1441
) -> GeoSpatialValue :
@@ -1452,7 +1455,7 @@ def simplify(
1452
1455
"""
1453
1456
return ops .GeoSimplify (self , tolerance , preserve_collapsed ).to_expr ()
1454
1457
1455
- def transform (self , srid : ir .IntegerValue ) -> GeoSpatialValue :
1458
+ def transform (self , srid : ir .IntegerValue , / ) -> GeoSpatialValue :
1456
1459
"""Transform a geometry into a new SRID.
1457
1460
1458
1461
Parameters
@@ -1529,7 +1532,7 @@ def convert(
1529
1532
"""
1530
1533
return ops .GeoConvert (self , source , target ).to_expr ()
1531
1534
1532
- def line_locate_point (self , right : PointValue ) -> ir .FloatingValue :
1535
+ def line_locate_point (self , right : PointValue , / ) -> ir .FloatingValue :
1533
1536
"""Locate the distance a point falls along the length of a line.
1534
1537
1535
1538
Returns a float between zero and one representing the location of the
@@ -1631,7 +1634,7 @@ class GeoSpatialScalar(NumericScalar, GeoSpatialValue):
1631
1634
@public
1632
1635
class GeoSpatialColumn (NumericColumn , GeoSpatialValue ):
1633
1636
def unary_union (
1634
- self , where : bool | ir .BooleanValue | None = None
1637
+ self , * , where : bool | ir .BooleanValue | None = None
1635
1638
) -> ir .GeoSpatialScalar :
1636
1639
"""Aggregate a set of geometries into a union.
1637
1640
0 commit comments