
    \i@                     *    S r SSKJr  SSKJr  SS jrg)zOProvides functions for finding the pole of inaccessibility for a given polygon.    )	get_point)maximum_inscribed_circlec                 0    [        X5      n[        US5      $ )a  Find pole of inaccessibility for a given polygon.

Based on Vladimir Agafonkin's https://github.com/mapbox/polylabel

Parameters
----------
polygon : shapely.geometry.Polygon
    Polygon for which to find the pole of inaccessibility.
tolerance : int or float, optional
    `tolerance` represents the highest resolution in units of the
    input geometry that will be considered for a solution. (default
    value is 1.0).

Returns
-------
shapely.geometry.Point
    A point representing the pole of inaccessibility for the given input
    polygon.

Raises
------
shapely.errors.TopologicalError
    If the input polygon is not a valid geometry.

Examples
--------
>>> from shapely.ops import polylabel
>>> from shapely import LineString
>>> polygon = LineString([(0, 0), (50, 200), (100, 100), (20, 50),
... (-100, -20), (-150, -200)]).buffer(100)
>>> polylabel(polygon, tolerance=0.001)
<POINT (59.733 111.33)>

r   )r   r   )polygon	tolerancelines      _/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/shapely/algorithms/polylabel.py	polylabelr
      s    F $G7DT1    N)g      ?)__doc__shapely._geometryr   shapely.constructiver   r
    r   r	   <module>r      s    U ' 9$r   