|
15 | 15 | # specific language governing permissions and limitations |
16 | 16 | # under the License. |
17 | 17 |
|
| 18 | +import os |
| 19 | +import typing |
18 | 20 | from typing import Any, Union |
19 | 21 |
|
20 | 22 | import geopandas as gpd |
@@ -616,6 +618,127 @@ def sjoin( |
616 | 618 | **kwargs, |
617 | 619 | ) |
618 | 620 |
|
| 621 | + @property |
| 622 | + def geometry(self) -> "GeoSeries": |
| 623 | + return self |
| 624 | + |
| 625 | + @property |
| 626 | + def x(self) -> pspd.Series: |
| 627 | + raise NotImplementedError("GeoSeries.x() is not implemented yet.") |
| 628 | + |
| 629 | + @property |
| 630 | + def y(self) -> pspd.Series: |
| 631 | + raise NotImplementedError("GeoSeries.y() is not implemented yet.") |
| 632 | + |
| 633 | + @property |
| 634 | + def z(self) -> pspd.Series: |
| 635 | + raise NotImplementedError("GeoSeries.z() is not implemented yet.") |
| 636 | + |
| 637 | + @property |
| 638 | + def m(self) -> pspd.Series: |
| 639 | + raise NotImplementedError("GeoSeries.m() is not implemented yet.") |
| 640 | + |
| 641 | + @classmethod |
| 642 | + def from_file( |
| 643 | + cls, filename: Union[os.PathLike, typing.IO], **kwargs |
| 644 | + ) -> "GeoSeries": |
| 645 | + raise NotImplementedError("GeoSeries.from_file() is not implemented yet.") |
| 646 | + |
| 647 | + @classmethod |
| 648 | + def from_wkb( |
| 649 | + cls, |
| 650 | + data, |
| 651 | + index=None, |
| 652 | + crs: Union[Any, None] = None, |
| 653 | + on_invalid="raise", |
| 654 | + **kwargs, |
| 655 | + ) -> "GeoSeries": |
| 656 | + raise NotImplementedError("GeoSeries.from_wkb() is not implemented yet.") |
| 657 | + |
| 658 | + @classmethod |
| 659 | + def from_wkt( |
| 660 | + cls, |
| 661 | + data, |
| 662 | + index=None, |
| 663 | + crs: Union[Any, None] = None, |
| 664 | + on_invalid="raise", |
| 665 | + **kwargs, |
| 666 | + ) -> "GeoSeries": |
| 667 | + raise NotImplementedError("GeoSeries.from_wkt() is not implemented yet.") |
| 668 | + |
| 669 | + @classmethod |
| 670 | + def from_xy(cls, x, y, z=None, index=None, crs=None, **kwargs) -> "GeoSeries": |
| 671 | + raise NotImplementedError("GeoSeries.from_xy() is not implemented yet.") |
| 672 | + |
| 673 | + @classmethod |
| 674 | + def from_shapely( |
| 675 | + cls, data, index=None, crs: Union[Any, None] = None, **kwargs |
| 676 | + ) -> "GeoSeries": |
| 677 | + raise NotImplementedError("GeoSeries.from_shapely() is not implemented yet.") |
| 678 | + |
| 679 | + @classmethod |
| 680 | + def from_arrow(cls, arr, **kwargs) -> "GeoSeries": |
| 681 | + raise NotImplementedError("GeoSeries.from_arrow() is not implemented yet.") |
| 682 | + |
| 683 | + def to_file( |
| 684 | + self, |
| 685 | + filename: Union[os.PathLike, typing.IO], |
| 686 | + driver: Union[str, None] = None, |
| 687 | + index: Union[bool, None] = None, |
| 688 | + **kwargs, |
| 689 | + ): |
| 690 | + raise NotImplementedError("GeoSeries.to_file() is not implemented yet.") |
| 691 | + |
| 692 | + def isna(self) -> pspd.Series: |
| 693 | + raise NotImplementedError("GeoSeries.isna() is not implemented yet.") |
| 694 | + |
| 695 | + def isnull(self) -> pspd.Series: |
| 696 | + raise NotImplementedError("GeoSeries.isnull() is not implemented yet.") |
| 697 | + |
| 698 | + def notna(self) -> pspd.Series: |
| 699 | + raise NotImplementedError("GeoSeries.notna() is not implemented yet.") |
| 700 | + |
| 701 | + def notnull(self) -> pspd.Series: |
| 702 | + """Alias for `notna` method. See `notna` for more detail.""" |
| 703 | + return self.notna() |
| 704 | + |
| 705 | + def fillna(self, value: Any) -> "GeoSeries": |
| 706 | + raise NotImplementedError("GeoSeries.fillna() is not implemented yet.") |
| 707 | + |
| 708 | + def explode(self, ignore_index=False, index_parts=False) -> "GeoSeries": |
| 709 | + raise NotImplementedError("GeoSeries.explode() is not implemented yet.") |
| 710 | + |
| 711 | + def to_crs( |
| 712 | + self, crs: Union[Any, None] = None, epsg: Union[int, None] = None |
| 713 | + ) -> "GeoSeries": |
| 714 | + raise NotImplementedError("GeoSeries.to_crs() is not implemented yet.") |
| 715 | + |
| 716 | + def estimate_utm_crs(self, datum_name: str = "WGS 84"): |
| 717 | + raise NotImplementedError( |
| 718 | + "GeoSeries.estimate_utm_crs() is not implemented yet." |
| 719 | + ) |
| 720 | + |
| 721 | + def to_json( |
| 722 | + self, |
| 723 | + show_bbox: bool = True, |
| 724 | + drop_id: bool = False, |
| 725 | + to_wgs84: bool = False, |
| 726 | + **kwargs, |
| 727 | + ) -> str: |
| 728 | + raise NotImplementedError("GeoSeries.to_json() is not implemented yet.") |
| 729 | + |
| 730 | + def to_wkb(self, hex: bool = False, **kwargs) -> pspd.Series: |
| 731 | + raise NotImplementedError("GeoSeries.to_wkb() is not implemented yet.") |
| 732 | + |
| 733 | + def to_wkt(self, **kwargs) -> pspd.Series: |
| 734 | + raise NotImplementedError("GeoSeries.to_wkt() is not implemented yet.") |
| 735 | + |
| 736 | + def to_arrow(self, geometry_encoding="WKB", interleaved=True, include_z=None): |
| 737 | + raise NotImplementedError("GeoSeries.to_arrow() is not implemented yet.") |
| 738 | + |
| 739 | + def clip(self, mask, keep_geom_type: bool = False, sort=False) -> "GeoSeries": |
| 740 | + raise NotImplementedError("GeoSeries.clip() is not implemented yet.") |
| 741 | + |
619 | 742 | # ----------------------------------------------------------------------------- |
620 | 743 | # # Utils |
621 | 744 | # ----------------------------------------------------------------------------- |
|
0 commit comments