
    h                    L   d dl mZ d dlZd dlZd dlmZ d dlZd dlZd dlm	Z	 d dl
mZ d dlZd dlmZ d dlmZ d dlZd dlmZmZ d d	lmZ d d
lmZ ddlmZ ddlmZ ddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z' ejP                  r
d dl)Z)d dl*m+Z+ 	 d	 ddZ,d Z-ddZ. G d dee	      Z/y)    )annotationsN)Any)Series)SingleBlockManager)GeometryCollection)BaseGeometry)GeoPandasBase_delegate_property_explore_geoseriesplot_series   )_compat)doc)GeometryDtypefrom_shapelyfrom_wkbfrom_wktpoints_from_xyto_wkbto_wkt)is_geometry_type)Callablec                \    	 t        d| ||d|S # t        $ r t        d| |d|cY S w xY w)zA flexible constructor for GeoSeries._constructor, which needs to be able
    to fall back to a Series (if a certain operation does not produce
    geometries).
    )dataindexcrs)r   r    )	GeoSeries	TypeErrorr   )r   r   r   kwargss       F/var/www/html/immo/lib/python3.12/site-packages/geopandas/geoseries.py$_geoseries_constructor_with_fallbackr$   '   sB    8Cd%SCFCC 874u7778s    ++c                    ddl m} | j                  dk(  j                         dkD  rV| j                  d   dk(  r| j
                  d   }nd}|t        | |         s ||       } d| _        | S | j                  |      } | S )zLShared logic for _constructor_expanddim and _constructor_from_mgr_expanddim.r   GeoDataFramegeometryr   N)		geopandasr'   dtypessumshapecolumnsr   _geometry_column_nameset_geometry)dfr'   geo_col_names      r#   _expanddim_logicr2   4   s    &
		Z$$&*88A;!::a=LL'7<8H'Ib!B'+B$ I .BI    c                J    t        j                  | g|i |}t        |      S N)pd	DataFramer2   )r   argsr"   r0   s       r#   _geoseries_expanddimr9   G   s'     
d	,T	,V	,BBr3   c                  b    e Zd ZdZd+d, fdZej                  j                  d        Zed-d       Z	ed.d       Z
ed.d       Zed.d       Zed.d       Zed/d	       Ze	 d0	 	 	 d1d
       Ze	 d0	 	 	 d1d       Zed+d-d       Ze	 	 	 d0	 	 	 	 	 	 	 d2d       Zed-d       Zed3d       Z	 	 d4	 	 	 	 	 d5dZed        Zd Zed        Zd Z fdZd Z eej>                        d        Z  eej>                        d        Z! eej>                        d6d7 fd       Z"d. fdZ#d.dZ$d. fdZ%d.dZ&d8d9 fdZ'd:dZ( ee)      d         Z* ee+      d!        Z,d;d-d"Z-e.j^                  	 	 	 	 d<	 	 	 	 	 	 	 d=d#       Z0d4d>d$Z1d?d@d%Z2	 	 	 dA	 	 	 	 	 	 	 dBd&Z3dCdDd'Z4d.d(Z5dEd)Z6d;dFd*Z7 xZ8S )Gr    uV  
    A Series object designed to store shapely geometry objects.

    Parameters
    ----------
    data : array-like, dict, scalar value
        The geometries to store in the GeoSeries.
    index : array-like or Index
        The index for the GeoSeries.
    crs : value (optional)
        Coordinate Reference System of the geometry objects. Can be anything accepted by
        :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
        such as an authority string (eg "EPSG:4326") or a WKT string.

    kwargs
        Additional arguments passed to the Series constructor,
         e.g. ``name``.

    Examples
    --------
    >>> from shapely.geometry import Point
    >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
    >>> s
    0    POINT (1 1)
    1    POINT (2 2)
    2    POINT (3 3)
    dtype: geometry

    >>> s = geopandas.GeoSeries(
    ...     [Point(1, 1), Point(2, 2), Point(3, 3)], crs="EPSG:3857"
    ... )
    >>> s.crs  # doctest: +SKIP
    <Projected CRS: EPSG:3857>
    Name: WGS 84 / Pseudo-Mercator
    Axis Info [cartesian]:
    - X[east]: Easting (metre)
    - Y[north]: Northing (metre)
    Area of Use:
    - name: World - 85°S to 85°N
    - bounds: (-180.0, -85.06, 180.0, 85.06)
    Coordinate Operation:
    - name: Popular Visualisation Pseudo-Mercator
    - method: Popular Visualisation Pseudo Mercator
    Datum: World Geodetic System 1984
    - Ellipsoid: WGS 84
    - Prime Meridian: Greenwich

    >>> s = geopandas.GeoSeries(
    ...    [Point(1, 1), Point(2, 2), Point(3, 3)], index=["a", "b", "c"], crs=4326
    ... )
    >>> s
    a    POINT (1 1)
    b    POINT (2 2)
    c    POINT (3 3)
    dtype: geometry

    >>> s.crs
    <Geographic 2D CRS: EPSG:4326>
    Name: WGS 84
    Axis Info [ellipsoidal]:
    - Lat[north]: Geodetic latitude (degree)
    - Lon[east]: Geodetic longitude (degree)
    Area of Use:
    - name: World.
    - bounds: (-180.0, -90.0, 180.0, 90.0)
    Datum: World Geodetic System 1984 ensemble
    - Ellipsoid: WGS 84
    - Prime Meridian: Greenwich

    See Also
    --------
    GeoDataFrame
    pandas.Series

    c                   t        |d      s0t        |t        j                        rit        |j                  d      rS|rQt        |d      r|j
                  n|j                  j
                  }|s|j                         }n||k(  st        d      t        |t              rMt        |j                  d   j                  t              s&t        d|j                  d   j                   d      t        |t              r|t        |      nd}|g|z  }|j                  dd       }t!        |      s&|j                  dd        t#        j$                         5  d	}t#        j&                  d
|t(               t#        j&                  d
|t*               t        j                  |f||d|}	d d d        	j                  t,        k7  rL|	j.                  r|	j                  dk(  s||	j1                  t,              }	nt        d|	j                   d      |	j3                         }	 d|j4                  _        	 t9        ||      }|	j:                  }|	j<                  }t?        
|   |f||d| | j
                  s|| _        y y # 1 sw Y   xY w# t        $ r Y dw xY w# t        $ r t        d|	j                   d      w xY w)Nr   zCRS mismatch between CRS of the passed geometries and 'crs'. Use 'GeoSeries.set_crs(crs, allow_override=True)' to overwrite CRS or 'GeoSeries.to_crs(crs)' to reproject geometries. r   zKNon geometry data passed to GeoSeries constructor, received data of dtype ''r   namedtypez"The default dtype for empty Seriesignorer   r=   float64T)!hasattr
isinstancer6   r   arrayr   copy
ValueErrorr   blocksr>   r   r!   r   lenpopr   warningscatch_warningsfilterwarningsDeprecationWarningFutureWarningobjectemptyastypeto_numpyflags	writeabler   r   r=   super__init__)selfr   r   r   r"   data_crsnr=   	empty_msgs	__class__s             r#   rV   zGeoSeries.__init__   s   D% 4+

E0J#*4#7txxTZZ^^Hyy{3$L  d./dkk!n22MB//3{{1~/C/C.DAG 
 dL) $/E
QA6A:Dzz&$'% JJw%((* F A	'')=OP'')]KIIdE%dEfEF ww& GG9 4(A#33477)1>  ::<D'+

$#D#. GGE66D@U@@xxDH KF F.  
  //0wwiq: s+   AI?!J 3J ?J	JJ#J=c                    | j                   t        j                  ddt               || j                  j
                  _         y )NzOverriding the CRS of a GeoSeries that already has CRS. This unsafe behavior will be deprecated in future versions. Use GeoSeries.set_crs method instead.   )
stacklevelcategory)r   rJ   warnrM   r(   values)rW   values     r#   r   zGeoSeries.crs   s9    88MM8 + $) r3   c                    | S r5   r   rW   s    r#   r(   zGeoSeries.geometry   s    r3   c                    t        d|       S )a  Return the x location of point geometries in a GeoSeries.

        Returns
        -------
        pandas.Series

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
        >>> s.x
        0    1.0
        1    2.0
        2    3.0
        dtype: float64

        See Also
        --------
        GeoSeries.y
        GeoSeries.z

        xr
   re   s    r#   rg   zGeoSeries.x   s    0 "#t,,r3   c                    t        d|       S )a  Return the y location of point geometries in a GeoSeries.

        Returns
        -------
        pandas.Series

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
        >>> s.y
        0    1.0
        1    2.0
        2    3.0
        dtype: float64

        See Also
        --------
        GeoSeries.x
        GeoSeries.z
        GeoSeries.m

        yrh   re   s    r#   rj   zGeoSeries.y      2 "#t,,r3   c                    t        d|       S )a  Return the z location of point geometries in a GeoSeries.

        Returns
        -------
        pandas.Series

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1, 1), Point(2, 2, 2), Point(3, 3, 3)])
        >>> s.z
        0    1.0
        1    2.0
        2    3.0
        dtype: float64

        See Also
        --------
        GeoSeries.x
        GeoSeries.y
        GeoSeries.m

        zrh   re   s    r#   rm   zGeoSeries.z/  rk   r3   c                    t        d|       S )a  Return the m coordinate of point geometries in a GeoSeries.

        Requires Shapely >= 2.1.

        .. versionadded:: 1.1.0

        Returns
        -------
        pandas.Series

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries.from_wkt(
        ...     [
        ...         "POINT M (2 3 5)",
        ...         "POINT M (1 2 3)",
        ...     ]
        ... )
        >>> s
        0    POINT M (2 3 5)
        1    POINT M (1 2 3)
        dtype: geometry

        >>> s.m
        0    5.0
        1    3.0
        dtype: float64

        See Also
        --------
        GeoSeries.x
        GeoSeries.y
        GeoSeries.z

        mrh   re   s    r#   ro   zGeoSeries.mJ  s    L "#t,,r3   c                v    ddl m}  |j                  |fi |}t        |j                  |j
                        S )a  Alternate constructor to create a ``GeoSeries`` from a file.

        Can load a ``GeoSeries`` from a file from any format recognized by
        `pyogrio`. See http://pyogrio.readthedocs.io/ for details.
        From a file with attributes loads only geometry column. Note that to do
        that, GeoPandas first loads the whole GeoDataFrame.

        Parameters
        ----------
        filename : str
            File path or file handle to read from. Depending on which kwargs
            are included, the content of filename may vary. See
            :func:`pyogrio.read_dataframe` for usage details.
        kwargs : key-word arguments
            These arguments are passed to :func:`pyogrio.read_dataframe`, and can be
            used to access multi-layer data, data stored within archives (zip files),
            etc.

        Examples
        --------
        >>> import geodatasets
        >>> path = geodatasets.get_path('nybb')
        >>> s = geopandas.GeoSeries.from_file(path)
        >>> s
        0    MULTIPOLYGON (((970217.022 145643.332, 970227....
        1    MULTIPOLYGON (((1029606.077 156073.814, 102957...
        2    MULTIPOLYGON (((1021176.479 151374.797, 102100...
        3    MULTIPOLYGON (((981219.056 188655.316, 980940....
        4    MULTIPOLYGON (((1012821.806 229228.265, 101278...
        Name: geometry, dtype: geometry

        See Also
        --------
        read_file : read file to GeoDataFrame
        r   r&   r   )r)   r'   	from_filer    r(   r   )clsfilenamer"   r'   r0   s        r#   rr   zGeoSeries.from_filer  s4    J 	+#\##H77"&&11r3   c                :     | j                   t        |f|||d|S )a#  Alternate constructor to create a ``GeoSeries``
        from a list or array of WKB objects.

        Parameters
        ----------
        data : array-like or Series
            Series, list or array of WKB objects
        index : array-like or Index
            The index for the GeoSeries.
        crs : value, optional
            Coordinate Reference System of the geometry objects. Can be anything
            accepted by
            :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
            such as an authority string (eg "EPSG:4326") or a WKT string.
        on_invalid: {"raise", "warn", "ignore"}, default "raise"
            - raise: an exception will be raised if a WKB input geometry is invalid.
            - warn: a warning will be raised and invalid WKB geometries will be returned
              as None.
            - ignore: invalid WKB geometries will be returned as None without a warning.
            - fix: an effort is made to fix invalid input geometries (e.g. close
              unclosed rings). If this is not possible, they are returned as ``None``
              without a warning. Requires GEOS >= 3.11 and shapely >= 2.1.

        kwargs
            Additional arguments passed to the Series constructor,
            e.g. ``name``.

        Returns
        -------
        GeoSeries

        See Also
        --------
        GeoSeries.from_wkt

        Examples
        --------
        >>> wkbs = [
        ... (
        ...     b"\x01\x01\x00\x00\x00\x00\x00\x00\x00"
        ...     b"\x00\x00\xf0?\x00\x00\x00\x00\x00\x00\xf0?"
        ... ),
        ... (
        ...     b"\x01\x01\x00\x00\x00\x00\x00\x00\x00"
        ...     b"\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00@"
        ... ),
        ... (
        ...    b"\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00"
        ...    b"\x00\x08@\x00\x00\x00\x00\x00\x00\x08@"
        ... ),
        ... ]
        >>> s = geopandas.GeoSeries.from_wkb(wkbs)
        >>> s
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: geometry
        r   r   
on_invalid)_from_wkb_or_wktr   rs   r   r   r   rw   r"   s         r#   r   zGeoSeries.from_wkb  s3    | $s##d
"'SZ
KQ
 	
r3   c                :     | j                   t        |f|||d|S )a  Alternate constructor to create a ``GeoSeries``
        from a list or array of WKT objects.

        Parameters
        ----------
        data : array-like, Series
            Series, list, or array of WKT objects
        index : array-like or Index
            The index for the GeoSeries.
        crs : value, optional
            Coordinate Reference System of the geometry objects. Can be anything
            accepted by
            :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
            such as an authority string (eg "EPSG:4326") or a WKT string.
        on_invalid : {"raise", "warn", "ignore"}, default "raise"
            - raise: an exception will be raised if a WKT input geometry is invalid.
            - warn: a warning will be raised and invalid WKT geometries will be
              returned as ``None``.
            - ignore: invalid WKT geometries will be returned as ``None`` without a
              warning.
            - fix: an effort is made to fix invalid input geometries (e.g. close
              unclosed rings). If this is not possible, they are returned as ``None``
              without a warning. Requires GEOS >= 3.11 and shapely >= 2.1.

        kwargs
            Additional arguments passed to the Series constructor,
            e.g. ``name``.

        Returns
        -------
        GeoSeries

        See Also
        --------
        GeoSeries.from_wkb

        Examples
        --------
        >>> wkts = [
        ... 'POINT (1 1)',
        ... 'POINT (2 2)',
        ... 'POINT (3 3)',
        ... ]
        >>> s = geopandas.GeoSeries.from_wkt(wkts)
        >>> s
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: geometry
        rv   )rx   r   ry   s         r#   r   zGeoSeries.from_wkt  s3    l $s##d
"'SZ
KQ
 	
r3   c                H   |t        |t              rxt        |t              rh|j                  j                  |j                        rC|5t        |t              r1|j                  j                  |j                        r|j                  } | t	        ||||      f||d|S )aR  Alternate constructor to create a :class:`~geopandas.GeoSeries` of Point
        geometries from lists or arrays of x, y(, z) coordinates.

        In case of geographic coordinates, it is assumed that longitude is captured
        by ``x`` coordinates and latitude by ``y``.

        Parameters
        ----------
        x, y, z : iterable
        index : array-like or Index, optional
            The index for the GeoSeries. If not given and all coordinate inputs
            are Series with an equal index, that index is used.
        crs : value, optional
            Coordinate Reference System of the geometry objects. Can be anything
            accepted by
            :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
            such as an authority string (eg "EPSG:4326") or a WKT string.
        **kwargs
            Additional arguments passed to the Series constructor,
            e.g. ``name``.

        Returns
        -------
        GeoSeries

        See Also
        --------
        GeoSeries.from_wkt
        points_from_xy

        Examples
        --------
        >>> x = [2.5, 5, -3.0]
        >>> y = [0.5, 1, 1.5]
        >>> s = geopandas.GeoSeries.from_xy(x, y, crs="EPSG:4326")
        >>> s
        0    POINT (2.5 0.5)
        1    POINT (5 1)
        2    POINT (-3 1.5)
        dtype: geometry
        rq   r   r   )rC   r   r   equalsr   )rs   rg   rj   rm   r   r   r"   s          r#   from_xyzGeoSeries.from_xy  s~    V =1f%q&)GGNN177+Y:a#8QWW^^AGG=T>!Qs3T5cTVTTr3   c                    t        |t              r,||j                  |      }n|j                  }|j                  } |  ||||      fd|i|S )z1Create a GeoSeries from either WKT or WKB values.)r   rw   r   )rC   r   reindexr   rb   )rs   from_wkb_or_wkt_functionr   r   r   rw   r"   s          r#   rx   zGeoSeries._from_wkb_or_wktN  s_     dF# ||E*

;;D$TszJ

 
 	
r3   c                ,    ddl m}  |  ||      fi |S )a  
        Construct a GeoSeries from a Arrow array object with a GeoArrow
        extension type.

        See https://geoarrow.org/ for details on the GeoArrow specification.

        This functions accepts any Arrow array object implementing
        the `Arrow PyCapsule Protocol`_ (i.e. having an ``__arrow_c_array__``
        method).

        .. _Arrow PyCapsule Protocol: https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html

        .. versionadded:: 1.0

        Parameters
        ----------
        arr : pyarrow.Array, Arrow array
            Any array object implementing the Arrow PyCapsule Protocol
            (i.e. has an ``__arrow_c_array__`` or ``__arrow_c_stream__``
            method). The type of the array should be one of the
            geoarrow geometry types.
        **kwargs
            Other parameters passed to the GeoSeries constructor.

        Returns
        -------
        GeoSeries

        r   )arrow_to_geometry_array)geopandas.io._geoarrowr   )rs   arrr"   r   s       r#   
from_arrowzGeoSeries.from_arrowe  s    > 	C*3/:6::r3   c                6    ddl m}  |d| i      j                  S )a  Returns a ``GeoSeries`` as a python feature collection.

        Implements the `geo_interface`. The returned python data structure
        represents the ``GeoSeries`` as a GeoJSON-like ``FeatureCollection``.
        Note that the features will have an empty ``properties`` dict as they
        don't have associated attributes (geometry only).

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
        >>> s.__geo_interface__
        {'type': 'FeatureCollection', 'features': [{'id': '0', 'type': 'Feature', 'properties': {}, 'geometry': {'type': 'Point', 'coordinates': (1.0, 1.0)}, 'bbox': (1.0, 1.0, 1.0, 1.0)}, {'id': '1', 'type': 'Feature', 'properties': {}, 'geometry': {'type': 'Point', 'coordinates': (2.0, 2.0)}, 'bbox': (2.0, 2.0, 2.0, 2.0)}, {'id': '2', 'type': 'Feature', 'properties': {}, 'geometry': {'type': 'Point', 'coordinates': (3.0, 3.0)}, 'bbox': (3.0, 3.0, 3.0, 3.0)}], 'bbox': (1.0, 1.0, 3.0, 3.0)}
        r   r&   r(   )r)   r'   __geo_interface__)rW   r'   s     r#   r   zGeoSeries.__geo_interface__  s    , 	+Z./AAAr3   c                h    ddl m}  |d| i| j                        } |j                  ||fd|i| y)a  Write the ``GeoSeries`` to a file.

        By default, an ESRI shapefile is written, but any OGR data source
        supported by Pyogrio or Fiona can be written.

        Parameters
        ----------
        filename : string
            File path or file handle to write to. The path may specify a
            GDAL VSI scheme.
        driver : string, default None
            The OGR format driver used to write the vector file.
            If not specified, it attempts to infer it from the file extension.
            If no extension is specified, it saves ESRI Shapefile to a folder.
        index : bool, default None
            If True, write index into one or more columns (for MultiIndex).
            Default None writes the index into one or more columns only if
            the index is named, is a MultiIndex, or has a non-integer data
            type. If False, no index is written.

            .. versionadded:: 0.7
                Previously the index was not written.
        mode : string, default 'w'
            The write mode, 'w' to overwrite the existing file and 'a' to append.
            Not all drivers support appending. The drivers that support appending
            are listed in fiona.supported_drivers or
            https://github.com/Toblerity/Fiona/blob/master/fiona/drvsupport.py
        crs : pyproj.CRS, default None
            If specified, the CRS is passed to Fiona to
            better control how the file is written. If None, GeoPandas
            will determine the crs based on crs df attribute.
            The value can be anything accepted
            by :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
            such as an authority string (eg "EPSG:4326") or a WKT string. The keyword
            is not supported for the "pyogrio" engine.
        engine : str, "pyogrio" or "fiona"
            The underlying library that is used to write the file. Currently, the
            supported options are "pyogrio" and "fiona". Defaults to "pyogrio" if
            installed, otherwise tries "fiona".
        **kwargs :
            Keyword args to be passed to the engine, and can be used to write
            to multi-layer data, store data within archives (zip files), etc.
            In case of the "pyogrio" engine, the keyword arguments are passed to
            `pyogrio.write_dataframe`. In case of the "fiona" engine, the keyword
            arguments are passed to fiona.open`. For more information on possible
            keywords, type: ``import pyogrio; help(pyogrio.write_dataframe)``.

        See Also
        --------
        GeoDataFrame.to_file : write GeoDataFrame to file
        read_file : read file to GeoDataFrame

        Examples
        --------
        >>> s.to_file('series.shp')  # doctest: +SKIP

        >>> s.to_file('series.gpkg', driver='GPKG', layer='name1')  # doctest: +SKIP

        >>> s.to_file('series.geojson', driver='GeoJSON')  # doctest: +SKIP
        r   r&   r(   r   r   N)r)   r'   r   to_file)rW   rt   driverr   r"   r'   r   s          r#   r   zGeoSeries.to_file  s7    F 	+Z.djjAXv=U=f=r3   c                    t         S r5   )r$   re   s    r#   _constructorzGeoSeries._constructor  s    33r3   c                    t        |t              sJ t        |j                  d   j                  t              st        j                  ||      S t        j                  ||      S )Nr   )rC   r   rG   r>   r   r   	_from_mgrr    )rW   mgraxess      r#   _constructor_from_mgrzGeoSeries._constructor_from_mgr  sQ    #1222#**Q---}=##C..""3--r3   c                    t         S r5   )r9   re   s    r#   _constructor_expanddimz GeoSeries._constructor_expanddim  s    ##r3   c                X    t         j                  j                  ||      }t        |      S r5   )r6   r7   r   r2   )rW   r   r   r0   s       r#   _constructor_expanddim_from_mgrz)GeoSeries._constructor_expanddim_from_mgr  s#    \\##C.##r3   c                     t        t               |      |i |}t        |      t        u rt        |_        | j                  |_        |S )z>Wrap a generic pandas method to ensure it returns a GeoSeries.)getattrrU   typer   r    r\   r   )rW   mtdr8   r"   valr\   s        r#   _wrapped_pandas_methodz GeoSeries._wrapped_pandas_method  s@    #gegs#T4V49%CMhhCG
r3   c                &    | j                  d|      S )N__getitem__r   )rW   keys     r#   r   zGeoSeries.__getitem__
  s    **=#>>r3   c                .     | j                   dg|i |S )N
sort_indexr   rW   r8   r"   s      r#   r   zGeoSeries.sort_index  s    *t**<I$I&IIr3   c                .     | j                   dg|i |S )Ntaker   r   s      r#   r   zGeoSeries.take  s    *t**6CDCFCCr3   c                    |||d<   nt         j                  sd|d<   t        |   |fd|i|}t	        |t
              r)| j                  |j                  | j                  d       |S )Nconvert_dtypeTr8   )inplace)compatPANDAS_GE_21rU   applyrC   r    r   set_crs)rW   funcr   r8   r"   resultr\   s         r#   r   zGeoSeries.apply  so    $&3F?# &&*.' t9$9&9fi(xx#txx6r3   c                     t         |          S )ai  
        Detect missing values.

        Historically, NA values in a GeoSeries could be represented by
        empty geometric objects, in addition to standard representations
        such as None and np.nan. This behaviour is changed in version 0.6.0,
        and now only actual missing values return True. To detect empty
        geometries, use ``GeoSeries.is_empty`` instead.

        Returns
        -------
        A boolean pandas Series of the same size as the GeoSeries,
        True where a value is NA.

        Examples
        --------
        >>> from shapely.geometry import Polygon
        >>> s = geopandas.GeoSeries(
        ...     [Polygon([(0, 0), (1, 1), (0, 1)]), None, Polygon([])]
        ... )
        >>> s
        0    POLYGON ((0 0, 1 1, 0 1, 0 0))
        1                              None
        2                     POLYGON EMPTY
        dtype: geometry

        >>> s.isna()
        0    False
        1     True
        2    False
        dtype: bool

        See Also
        --------
        GeoSeries.notna : inverse of isna
        GeoSeries.is_empty : detect empty geometries
        )rU   isnarW   r\   s    r#   r   zGeoSeries.isna&  s    L w|~r3   c                "    | j                         S )z4Alias for `isna` method. See `isna` for more detail.)r   re   s    r#   isnullzGeoSeries.isnullN  s    yy{r3   c                    | j                   j                         rt        j                  dt        d       t
        |          S )aq  
        Detect non-missing values.

        Historically, NA values in a GeoSeries could be represented by
        empty geometric objects, in addition to standard representations
        such as None and np.nan. This behaviour is changed in version 0.6.0,
        and now only actual missing values return False. To detect empty
        geometries, use ``~GeoSeries.is_empty`` instead.

        Returns
        -------
        A boolean pandas Series of the same size as the GeoSeries,
        False where a value is NA.

        Examples
        --------
        >>> from shapely.geometry import Polygon
        >>> s = geopandas.GeoSeries(
        ...     [Polygon([(0, 0), (1, 1), (0, 1)]), None, Polygon([])]
        ... )
        >>> s
        0    POLYGON ((0 0, 1 1, 0 1, 0 0))
        1                              None
        2                     POLYGON EMPTY
        dtype: geometry

        >>> s.notna()
        0     True
        1    False
        2     True
        dtype: bool

        See Also
        --------
        GeoSeries.isna : inverse of notna
        GeoSeries.is_empty : detect empty geometries
        a  GeoSeries.notna() previously returned False for both missing (None) and empty geometries. Now, it only returns False for missing values. Since the calling GeoSeries contains empty geometries, the result has changed compared to previous versions of GeoPandas.
Given a GeoSeries 's', you can use '~s.is_empty & s.notna()' to get back the old behaviour.

To further ignore this warning, you can do: 
import warnings; warnings.filterwarnings('ignore', 'GeoSeries.notna', UserWarning)r^   )r_   )is_emptyanyrJ   ra   UserWarningrU   notnar   s    r#   r   zGeoSeries.notnaR  s=    L ==MM2  w}r3   c                "    | j                         S )z6Alias for `notna` method. See `notna` for more detail.)r   re   s    r#   notnullzGeoSeries.notnull  s    zz|r3   c                B    |
t               }t        |   d|||d|S )aD	  
        Fill NA values with geometry (or geometries).

        Parameters
        ----------
        value : shapely geometry or GeoSeries, default None
            If None is passed, NA values will be filled with GEOMETRYCOLLECTION EMPTY.
            If a shapely geometry object is passed, it will be
            used to fill all missing values. If a ``GeoSeries`` or ``GeometryArray``
            are passed, missing values will be filled based on the corresponding index
            locations. If pd.NA or np.nan are passed, values will be filled with
            ``None`` (not GEOMETRYCOLLECTION EMPTY).
        limit : int, default None
            This is the maximum number of entries along the entire axis
            where NaNs will be filled. Must be greater than 0 if not None.

        Returns
        -------
        GeoSeries

        Examples
        --------
        >>> from shapely.geometry import Polygon
        >>> s = geopandas.GeoSeries(
        ...     [
        ...         Polygon([(0, 0), (1, 1), (0, 1)]),
        ...         None,
        ...         Polygon([(0, 0), (-1, 1), (0, -1)]),
        ...     ]
        ... )
        >>> s
        0      POLYGON ((0 0, 1 1, 0 1, 0 0))
        1                                None
        2    POLYGON ((0 0, -1 1, 0 -1, 0 0))
        dtype: geometry

        Filled with an empty polygon.

        >>> s.fillna()
        0      POLYGON ((0 0, 1 1, 0 1, 0 0))
        1            GEOMETRYCOLLECTION EMPTY
        2    POLYGON ((0 0, -1 1, 0 -1, 0 0))
        dtype: geometry

        Filled with a specific polygon.

        >>> s.fillna(Polygon([(0, 1), (2, 1), (1, 2)]))
        0      POLYGON ((0 0, 1 1, 0 1, 0 0))
        1      POLYGON ((0 1, 2 1, 1 2, 0 1))
        2    POLYGON ((0 0, -1 1, 0 -1, 0 0))
        dtype: geometry

        Filled with another GeoSeries.

        >>> from shapely.geometry import Point
        >>> s_fill = geopandas.GeoSeries(
        ...     [
        ...         Point(0, 0),
        ...         Point(1, 1),
        ...         Point(2, 2),
        ...     ]
        ... )
        >>> s.fillna(s_fill)
        0      POLYGON ((0 0, 1 1, 0 1, 0 0))
        1                         POINT (1 1)
        2    POLYGON ((0 0, -1 1, 0 -1, 0 0))
        dtype: geometry

        See Also
        --------
        GeoSeries.isna : detect missing values
        )rc   limitr   r   )r   rU   fillna)rW   rc   r   r   r"   r\   s        r#   r   zGeoSeries.fillna  s.    R =&(Ew~RER6RRr3   c                l    t        |t              r$t        j                  | j	                  |            S y)zAllow tests of the form "geom in s".

        Tests whether a GeoSeries contains a geometry.

        Note: This is not the same as the geometric method "contains".
        F)rC   r   npr   geom_equals)rW   others     r#   __contains__zGeoSeries.__contains__  s+     e\*66$**5122r3   c                     t        | g|i |S r5   r   r   s      r#   plotzGeoSeries.plot  s    41$1&11r3   c                     t        | g|i |S )z;Explore with an interactive map based on folium/leaflet.js.r   r   s      r#   explorezGeoSeries.explore  s     "$8888r3   c                    ddl m} t        j                  | j                  j
                  d      \  }} || j                  |||      }t        ||| j                        j                  |       S )uK  
        Explode multi-part geometries into multiple single geometries.

        Single rows can become multiple rows.
        This is analogous to PostGIS's ST_Dump(). The 'path' index is the
        second level of the returned MultiIndex

        Parameters
        ----------
        ignore_index : bool, default False
            If True, the resulting index will be labelled 0, 1, …, n - 1,
            ignoring `index_parts`.
        index_parts : boolean, default False
            If True, the resulting index will be a multi-index (original
            index with an additional level indicating the multiple
            geometries: a new zero-based index for each single part geometry
            per multi-part geometry).

        Returns
        -------
        A GeoSeries with a MultiIndex. The levels of the MultiIndex are the
        original index and a zero-based integer index that counts the
        number of single geometries within a multi-part geometry.

        Examples
        --------
        >>> from shapely.geometry import MultiPoint
        >>> s = geopandas.GeoSeries(
        ...     [MultiPoint([(0, 0), (1, 1)]), MultiPoint([(2, 2), (3, 3), (4, 4)])]
        ... )
        >>> s
        0           MULTIPOINT ((0 0), (1 1))
        1    MULTIPOINT ((2 2), (3 3), (4 4))
        dtype: geometry

        >>> s.explode(index_parts=True)
        0  0    POINT (0 0)
           1    POINT (1 1)
        1  0    POINT (2 2)
           1    POINT (3 3)
           2    POINT (4 4)
        dtype: geometry

        See Also
        --------
        GeoDataFrame.explode

        r   )_get_index_for_partsT)return_index)ignore_indexindex_partsr|   )
baser   shapely	get_partsrb   _datar   r    r   __finalize__)rW   r   r   r   
geometries	outer_idxr   s          r#   explodezGeoSeries.explode  sd    b 	/ ' 1 1$++2C2CRV W
I$JJ%#	
 5dhh?LLTRRr3   c                    ddl m} ||j                  |      }n||j                  |      }|s&| j                  | j                  |k(  st        d      |s| j                         }n| }||j                  _        |S )uV	  
        Set the Coordinate Reference System (CRS) of a ``GeoSeries``.

        Pass ``None`` to remove CRS from the ``GeoSeries``.

        Notes
        -----
        The underlying geometries are not transformed to this CRS. To
        transform the geometries to a new CRS, use the ``to_crs`` method.

        Parameters
        ----------
        crs : pyproj.CRS | None, optional
            The value can be anything accepted
            by :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
            such as an authority string (eg "EPSG:4326") or a WKT string.
        epsg : int, optional if `crs` is specified
            EPSG code specifying the projection.
        inplace : bool, default False
            If True, the CRS of the GeoSeries will be changed in place
            (while still returning the result) instead of making a copy of
            the GeoSeries.
        allow_override : bool, default False
            If the the GeoSeries already has a CRS, allow to replace the
            existing CRS, even when both are not equal.

        Returns
        -------
        GeoSeries

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
        >>> s
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: geometry

        Setting CRS to a GeoSeries without one:

        >>> s.crs is None
        True

        >>> s = s.set_crs('epsg:3857')
        >>> s.crs  # doctest: +SKIP
        <Projected CRS: EPSG:3857>
        Name: WGS 84 / Pseudo-Mercator
        Axis Info [cartesian]:
        - X[east]: Easting (metre)
        - Y[north]: Northing (metre)
        Area of Use:
        - name: World - 85°S to 85°N
        - bounds: (-180.0, -85.06, 180.0, 85.06)
        Coordinate Operation:
        - name: Popular Visualisation Pseudo-Mercator
        - method: Popular Visualisation Pseudo Mercator
        Datum: World Geodetic System 1984
        - Ellipsoid: WGS 84
        - Prime Meridian: Greenwich

        Overriding existing CRS:

        >>> s = s.set_crs(4326, allow_override=True)

        Without ``allow_override=True``, ``set_crs`` returns an error if you try to
        override CRS.

        See Also
        --------
        GeoSeries.to_crs : re-project to another CRS

        r   )CRSzThe GeoSeries already has a CRS which is not equal to the passed CRS. Specify 'allow_override=True' to allow replacing the existing CRS without doing any transformation. If you actually want to transform the geometries, use 'GeoSeries.to_crs' instead.)pyprojr   from_user_input	from_epsgr   rF   rE   rD   )rW   r   epsgr   allow_overrider   r   s          r#   r   zGeoSeries.set_crs/  s    d 	?%%c*C--%C$(("6txx3L  YY[FFr3   c                |    t        | j                  j                  ||      | j                  | j                        S )ut
  Return a ``GeoSeries`` with all geometries transformed to a new
        coordinate reference system.

        Transform all geometries in a GeoSeries to a different coordinate
        reference system.  The ``crs`` attribute on the current GeoSeries must
        be set.  Either ``crs`` or ``epsg`` may be specified for output.

        This method will transform all points in all objects.  It has no notion
        of projecting entire geometries.  All segments joining points are
        assumed to be lines in the current projection, not geodesics.  Objects
        crossing the dateline (or other projection boundary) will have
        undesirable behavior.

        Parameters
        ----------
        crs : pyproj.CRS, optional if `epsg` is specified
            The value can be anything accepted
            by :meth:`pyproj.CRS.from_user_input() <pyproj.crs.CRS.from_user_input>`,
            such as an authority string (eg "EPSG:4326") or a WKT string.
        epsg : int, optional if `crs` is specified
            EPSG code specifying output projection.

        Returns
        -------
        GeoSeries

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)], crs=4326)
        >>> s
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: geometry
        >>> s.crs  # doctest: +SKIP
        <Geographic 2D CRS: EPSG:4326>
        Name: WGS 84
        Axis Info [ellipsoidal]:
        - Lat[north]: Geodetic latitude (degree)
        - Lon[east]: Geodetic longitude (degree)
        Area of Use:
        - name: World
        - bounds: (-180.0, -90.0, 180.0, 90.0)
        Datum: World Geodetic System 1984
        - Ellipsoid: WGS 84
        - Prime Meridian: Greenwich

        >>> s = s.to_crs(3857)
        >>> s
        0    POINT (111319.491 111325.143)
        1    POINT (222638.982 222684.209)
        2    POINT (333958.472 334111.171)
        dtype: geometry
        >>> s.crs  # doctest: +SKIP
        <Projected CRS: EPSG:3857>
        Name: WGS 84 / Pseudo-Mercator
        Axis Info [cartesian]:
        - X[east]: Easting (metre)
        - Y[north]: Northing (metre)
        Area of Use:
        - name: World - 85°S to 85°N
        - bounds: (-180.0, -85.06, 180.0, 85.06)
        Coordinate Operation:
        - name: Popular Visualisation Pseudo-Mercator
        - method: Popular Visualisation Pseudo Mercator
        Datum: World Geodetic System 1984
        - Ellipsoid: WGS 84
        - Prime Meridian: Greenwich

        See Also
        --------
        GeoSeries.set_crs : assign CRS

        )r   r   r@   )r    rb   to_crsr   r=   )rW   r   r   s      r#   r   zGeoSeries.to_crs  s5    X KK3T2$**499
 	
r3   c                8    | j                   j                  |      S )uH  Return the estimated UTM CRS based on the bounds of the dataset.

        .. versionadded:: 0.9

        Parameters
        ----------
        datum_name : str, optional
            The name of the datum to use in the query. Default is WGS 84.

        Returns
        -------
        pyproj.CRS

        Examples
        --------
        >>> import geodatasets
        >>> df = geopandas.read_file(
        ...     geodatasets.get_path("geoda.chicago_health")
        ... )
        >>> df.geometry.estimate_utm_crs()  # doctest: +SKIP
        <Derived Projected CRS: EPSG:32616>
        Name: WGS 84 / UTM zone 16N
        Axis Info [cartesian]:
        - E[east]: Easting (metre)
        - N[north]: Northing (metre)
        Area of Use:
        - name: Between 90°W and 84°W, northern hemisphere between equator and 84°N, ...
        - bounds: (-90.0, 0.0, -84.0, 84.0)
        Coordinate Operation:
        - name: UTM zone 16N
        - method: Transverse Mercator
        Datum: World Geodetic System 1984 ensemble
        - Ellipsoid: WGS 84
        - Prime Meridian: Greenwich
        )rb   estimate_utm_crs)rW   
datum_names     r#   r   zGeoSeries.estimate_utm_crs  s    H {{++J77r3   c                N     | j                  d      j                  dd|||d|S )a  Return a GeoJSON string representation of the GeoSeries.

        Parameters
        ----------
        show_bbox : bool, optional, default: True
            Include bbox (bounds) in the geojson
        drop_id : bool, default: False
            Whether to retain the index of the GeoSeries as the id property
            in the generated GeoJSON. Default is False, but may want True
            if the index is just arbitrary row numbers.
        to_wgs84: bool, optional, default: False
            If the CRS is set on the active geometry column it is exported as
            WGS84 (EPSG:4326) to meet the `2016 GeoJSON specification
            <https://tools.ietf.org/html/rfc7946>`_.
            Set to True to force re-projection and set to False to ignore CRS. False by
            default.

        *kwargs* that will be passed to json.dumps().

        Returns
        -------
        JSON string

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
        >>> s
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: geometry

        >>> s.to_json()
        '{"type": "FeatureCollection", "features": [{"id": "0", "type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [1.0, 1.0]}, "bbox": [1.0, 1.0, 1.0, 1.0]}, {"id": "1", "type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [2.0, 2.0]}, "bbox": [2.0, 2.0, 2.0, 2.0]}, {"id": "2", "type": "Feature", "properties": {}, "geometry": {"type": "Point", "coordinates": [3.0, 3.0]}, "bbox": [3.0, 3.0, 3.0, 3.0]}], "bbox": [1.0, 1.0, 3.0, 3.0]}'

        See Also
        --------
        GeoSeries.to_file : write GeoSeries to file
        r(   null)na	show_bboxdrop_idto_wgs84r   )to_frameto_json)rW   r   r   r   r"   s        r#   r   zGeoSeries.to_json  s9    h 1t}}Z(00 
Gh
RX
 	
r3   c                \    t        t        | j                  fd|i|| j                        S )a  Convert GeoSeries geometries to WKB.

        Parameters
        ----------
        hex : bool
            If true, export the WKB as a hexadecimal string.
            The default is to return a binary bytes object.
        kwargs
            Additional keyword args will be passed to
            :func:`shapely.to_wkb`.

        Returns
        -------
        Series
            WKB representations of the geometries

        See Also
        --------
        GeoSeries.to_wkt
        hexr   )r   r   rD   r   )rW   r   r"   s      r#   r   zGeoSeries.to_wkbD  s(    * fTZZ;S;F;4::NNr3   c                X    t        t        | j                  fi || j                        S )a  Convert GeoSeries geometries to WKT.

        Parameters
        ----------
        kwargs
            Keyword args will be passed to :func:`shapely.to_wkt`.

        Returns
        -------
        Series
            WKT representations of the geometries

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> s = geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)])
        >>> s
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: geometry

        >>> s.to_wkt()
        0    POINT (1 1)
        1    POINT (2 2)
        2    POINT (3 3)
        dtype: object

        See Also
        --------
        GeoSeries.to_wkb
        r   )r   r   rD   r   )rW   r"   s     r#   r   zGeoSeries.to_wkt[  s$    B fTZZ262$**EEr3   c                   ddl m}m}m} | j                  | j                  nd}|j                         dk(  r8 |t        j                  | j                        ||| j                  |      \  }}	nW|j                         dk(  r6 |t        j                  | j                        || j                        \  }}	nt        d|        |||	      S )	a
  Encode a GeoSeries to GeoArrow format.

        See https://geoarrow.org/ for details on the GeoArrow specification.

        This functions returns a generic Arrow array object implementing
        the `Arrow PyCapsule Protocol`_ (i.e. having an ``__arrow_c_array__``
        method). This object can then be consumed by your Arrow implementation
        of choice that supports this protocol.

        .. _Arrow PyCapsule Protocol: https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html

        .. versionadded:: 1.0

        Parameters
        ----------
        geometry_encoding : {'WKB', 'geoarrow' }, default 'WKB'
            The GeoArrow encoding to use for the data conversion.
        interleaved : bool, default True
            Only relevant for 'geoarrow' encoding. If True, the geometries'
            coordinates are interleaved in a single fixed size list array.
            If False, the coordinates are stored as separate arrays in a
            struct type.
        include_z : bool, default None
            Only relevant for 'geoarrow' encoding (for WKB, the dimensionality
            of the individial geometries is preserved).
            If False, return 2D geometries. If True, include the third dimension
            in the output (if a geometry has no third dimension, the z-coordinates
            will be NaN). By default, will infer the dimensionality from the
            input geometries. Note that this inference can be unreliable with
            empty geometries (for a guaranteed result, it is recommended to
            specify the keyword).

        Returns
        -------
        GeoArrowArray
            A generic Arrow array object with geometry data encoded to GeoArrow.

        Examples
        --------
        >>> from shapely.geometry import Point
        >>> gser = geopandas.GeoSeries([Point(1, 2), Point(2, 1)])
        >>> gser
        0    POINT (1 2)
        1    POINT (2 1)
        dtype: geometry

        >>> arrow_array = gser.to_arrow()
        >>> arrow_array
        <geopandas.io._geoarrow.GeoArrowArray object at ...>

        The returned array object needs to be consumed by a library implementing
        the Arrow PyCapsule Protocol. For example, wrapping the data as a
        pyarrow.Array (requires pyarrow >= 14.0):

        >>> import pyarrow as pa
        >>> array = pa.array(arrow_array)
        >>> array
        <pyarrow.lib.BinaryArray object at ...>
        [
          0101000000000000000000F03F0000000000000040,
          01010000000000000000000040000000000000F03F
        ]

        r   )GeoArrowArrayconstruct_geometry_arrayconstruct_wkb_array geoarrow)	include_z
field_namer   interleavedwkb)r   r   z3Expected geometry encoding 'WKB' or 'geoarrow' got )r   r   r   r   r=   lowerr   rD   r   asarrayrF   )
rW   geometry_encodingr   r   r   r   r   r   fieldgeom_arrs
             r#   to_arrowzGeoSeries.to_arrow~  s    B	
 	
 #'))"7TYYR
""$
26$#%HH'OE8 $$&%/1

4::&:488OE8 ()+ 
 UH--r3   c                4    t        j                  | |||      S )a  Clip points, lines, or polygon geometries to the mask extent.

        Both layers must be in the same Coordinate Reference System (CRS).
        The GeoSeries will be clipped to the full extent of the `mask` object.

        If there are multiple polygons in mask, data from the GeoSeries will be
        clipped to the total boundary of all polygons in mask.

        Parameters
        ----------
        mask : GeoDataFrame, GeoSeries, (Multi)Polygon, list-like
            Polygon vector layer used to clip `gdf`.
            The mask's geometry is dissolved into one geometric feature
            and intersected with GeoSeries.
            If the mask is list-like with four elements ``(minx, miny, maxx, maxy)``,
            ``clip`` will use a faster rectangle clipping
            (:meth:`~GeoSeries.clip_by_rect`), possibly leading to slightly different
            results.
        keep_geom_type : boolean, default False
            If True, return only geometries of original type in case of intersection
            resulting in multiple geometry types or GeometryCollections.
            If False, return all resulting geometries (potentially mixed-types).
        sort : boolean, default False
            If True, the order of rows in the clipped GeoSeries will be preserved
            at small performance cost.
            If False the order of rows in the clipped GeoSeries will be random.

        Returns
        -------
        GeoSeries
            Vector data (points, lines, polygons) from `gdf` clipped to
            polygon boundary from mask.

        See Also
        --------
        clip : top-level function for clip

        Examples
        --------
        Clip points (grocery stores) with polygons (the Near West Side community):

        >>> import geodatasets
        >>> chicago = geopandas.read_file(
        ...     geodatasets.get_path("geoda.chicago_health")
        ... )
        >>> near_west_side = chicago[chicago["community"] == "NEAR WEST SIDE"]
        >>> groceries = geopandas.read_file(
        ...     geodatasets.get_path("geoda.groceries")
        ... ).to_crs(chicago.crs)
        >>> groceries.shape
        (148, 8)

        >>> nws_groceries = groceries.geometry.clip(near_west_side)
        >>> nws_groceries.shape
        (7,)
        )maskkeep_geom_typesort)r)   clip)rW   r   r   r   s       r#   r   zGeoSeries.clip  s    r ~~dnSWXXr3   NNNr   
Any | None)returnr    )r  r   )rt   os.PathLike | typing.IOr  r    )NNraise)r   r  r  r    )r   r   r   r  rw   strr  r    )r  dict)NN)rt   r  r   z
str | Noner   bool | None)Nr   )r   r	  )NFN)r   bool)r  r
  )FF)NNFF)r   r  r   
int | Noner   r
  r   r
  )r   r  r   r  r  r    )zWGS 84)r   r  )TFF)r   r
  r   r
  r   r
  r  r  )F)r   r
  r  r   )WKBTN)r   r
  r  r    )9__name__
__module____qualname____doc__rV   r	   r   setterpropertyr(   rg   rj   rm   ro   classmethodrr   r   r   r~   rx   r   r   r   r   r   r   r   r   r   r   r6   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   requires_pyprojr   r   r   r   r   r   r   r   __classcell__)r\   s   @r#   r    r    N   sZ   JXM^ 	) 	)   - -2 - -4 - -4 %- %-N (2 (2T BI?
$.?
	?
 ?
B BI7
$.7
	7
 7
r 2U 2Uh 
 !
"*

 
 
 

 
,  ;  ;D B B8 "!	F>)F> F> 	F>X 4 4. $ $$? 	^J J 	^D D 	^  &P4lKSZ
 	2 2 		9 9<SB  $dd d 	d
 d dLN
`$8P 	6
6
 6
 	6
 
6
pO.!FF[.z9Y 9Yr3   r    r  r  r5   )0
__future__r   typingrJ   r   numpyr   pandasr6   r   pandas.core.internalsr   r   shapely.geometryr   shapely.geometry.baser   r)   geopandas.baser	   r
   geopandas.explorer   geopandas.plottingr   r   r   r   
_decoratorr   rD   r   r   r   r   r   r   r   r   r   TYPE_CHECKINGoscollections.abcr   r$   r2   r9   r    r   r3   r#   <module>r$     s    "       4  / .  < 0 *     #	( .2
8 *
8& FYv FYr3   