
    (&h                     &    d Z ddlZddgZd Zd ZdS )z(Validate geometries and make them valid.    Nexplain_validity
make_validc                 *    t          j        |           S )a  Explain the validity of the input geometry, if it is invalid.

    This will describe why the geometry is invalid, and might
    include a location if there is a self-intersection or a
    ring self-intersection.

    Parameters
    ----------
    ob: Geometry
        A shapely geometry object

    Returns
    -------
    str
        A string describing the reason the geometry is invalid.

    )shapelyis_valid_reasonobs    M/var/www/html/reinick/venv/lib/python3.11/site-packages/shapely/validation.pyr   r   	   s    $ "2&&&    c                 <    | j         r| S t          j        |           S )a  Make the input geometry valid according to the GEOS MakeValid algorithm.

    If the input geometry is already valid, then it will be returned.

    If the geometry must be split into multiple parts of the same type to be
    made valid, then a multi-part geometry will be returned.

    If the geometry must be split into multiple parts of different types to be
    made valid, then a GeometryCollection will be returned.

    Parameters
    ----------
    ob : Geometry
        A shapely geometry object which should be made valid. If the object is
        already valid, it will be returned as-is.

    Returns
    -------
    Geometry
        The input geometry, made valid according to the GEOS MakeValid algorithm.

    )is_validr   r   r   s    r
   r   r      s$    . 
{ 	b!!!r   )__doc__r   __all__r   r    r   r
   <module>r      sH    . . |
,' ' '*" " " " "r   