|
19 | 19 | import shapely # type: ignore |
20 | 20 |
|
21 | 21 | from bigframes import operations as ops |
| 22 | +from bigframes.core import log_adapter |
22 | 23 | import bigframes.geopandas |
23 | 24 | import bigframes.series |
24 | 25 |
|
|
28 | 29 | """ |
29 | 30 |
|
30 | 31 |
|
| 32 | +@log_adapter.method_logger |
31 | 33 | def st_area( |
32 | 34 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
33 | 35 | ) -> bigframes.series.Series: |
@@ -103,6 +105,7 @@ def st_area( |
103 | 105 | return series |
104 | 106 |
|
105 | 107 |
|
| 108 | +@log_adapter.method_logger |
106 | 109 | def st_buffer( |
107 | 110 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
108 | 111 | buffer_radius: float, |
@@ -172,6 +175,7 @@ def st_buffer( |
172 | 175 | return series |
173 | 176 |
|
174 | 177 |
|
| 178 | +@log_adapter.method_logger |
175 | 179 | def st_centroid( |
176 | 180 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
177 | 181 | ) -> bigframes.series.Series: |
@@ -229,6 +233,7 @@ def st_centroid( |
229 | 233 | return series |
230 | 234 |
|
231 | 235 |
|
| 236 | +@log_adapter.method_logger |
232 | 237 | def st_convexhull( |
233 | 238 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
234 | 239 | ) -> bigframes.series.Series: |
@@ -284,6 +289,7 @@ def st_convexhull( |
284 | 289 | return series |
285 | 290 |
|
286 | 291 |
|
| 292 | +@log_adapter.method_logger |
287 | 293 | def st_difference( |
288 | 294 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
289 | 295 | other: Union[ |
@@ -387,6 +393,7 @@ def st_difference( |
387 | 393 | return series._apply_binary_op(other, ops.geo_st_difference_op) |
388 | 394 |
|
389 | 395 |
|
| 396 | +@log_adapter.method_logger |
390 | 397 | def st_distance( |
391 | 398 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
392 | 399 | other: Union[ |
@@ -464,6 +471,7 @@ def st_distance( |
464 | 471 | ) |
465 | 472 |
|
466 | 473 |
|
| 474 | +@log_adapter.method_logger |
467 | 475 | def st_intersection( |
468 | 476 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
469 | 477 | other: Union[ |
@@ -563,6 +571,7 @@ def st_intersection( |
563 | 571 | return series._apply_binary_op(other, ops.geo_st_intersection_op) |
564 | 572 |
|
565 | 573 |
|
| 574 | +@log_adapter.method_logger |
566 | 575 | def st_isclosed( |
567 | 576 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
568 | 577 | ) -> bigframes.series.Series: |
@@ -623,6 +632,7 @@ def st_isclosed( |
623 | 632 | return series |
624 | 633 |
|
625 | 634 |
|
| 635 | +@log_adapter.method_logger |
626 | 636 | def st_length( |
627 | 637 | series: Union[bigframes.series.Series, bigframes.geopandas.GeoSeries], |
628 | 638 | *, |
|
0 commit comments