
    9i
                     >    S r SSKrSSKrSSKrSSKJr  S rS rS r	g)zBProvides multi-point element-wise operations such as ``contains``.    N)PreparedGeometryc                    [         R                  " U 5      [         R                  " U5      pU R                  UR                  :w  a  [        S5      eU R                  [         R
                  :w  a  U R                  [         R
                  5      n UR                  [         R
                  :w  a  UR                  [         R
                  5      n[        R                  " X5      $ )Nz"X and Y shapes must be equivalent.)	np
asanyarrayshape
ValueErrordtypefloat64astypeshapelypoints)xys     [/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/shapely/vectorized/__init__.py_construct_pointsr      s    ==R]]1-qww!''=>>ww"**HHRZZ ww"**HHRZZ >>!    c                     [         R                  " S[        SS9  [        U [        5      (       a  U R
                  n [        R                  " U 5        [        R                  " XU5      $ )a(  Check whether multiple points are contained by a single geometry.

Vectorized (element-wise) version of `contains`.

Parameters
----------
geometry : PreparedGeometry or subclass of BaseGeometry
    The geometry which is to be checked to see whether each point is
    contained within. The geometry will be "prepared" if it is not already
    a PreparedGeometry instance.
x : array
    The x coordinates of the points to check.
y : array
    The y coordinates of the points to check.

Returns
-------
Mask of points contained by the given `geometry`.

zThe 'shapely.vectorized.contains' function is deprecated and will be removed a future version. Use 'shapely.contains_xy' instead (available since shapely 2.0.0).   
stacklevel)	warningswarnDeprecationWarning
isinstancer   contextr   preparecontains_xy)geometryr   r   s      r   containsr      sW    * MM	  	 (,--##OOHxA..r   c                     [         R                  " S[        SS9  [        U [        5      (       a  U R
                  n U R                  n[        R                  " U5        [        R                  " X1U5      $ )a;  Check whether multiple points touch the exterior of a single geometry.

Vectorized (element-wise) version of `touches`.

Parameters
----------
geometry : PreparedGeometry or subclass of BaseGeometry
    The geometry which is to be checked to see whether each point is
    contained within. The geometry will be "prepared" if it is not already
    a PreparedGeometry instance.
x : array
    The x coordinates of the points to check.
y : array
    The y coordinates of the points to check.

Returns
-------
Mask of points which touch the exterior of the given `geometry`.

zThe 'shapely.vectorized.touches' function is deprecated and will be removed a future version. Use 'shapely.intersects_xy(geometry.boundary, x, y)' instead (available since shapely 2.0.0).r   r   )
r   r   r   r   r   r   boundaryr   r   intersects_xy)r   r   r   r!   s       r   touchesr#   :   sb    * MM	4 	 (,--##  HOOH  a00r   )
__doc__r   numpyr   r   shapely.preparedr   r   r   r#    r   r   <module>r(      s$    H    -
 /D!1r   