
    !\i#                     $    S r SSKr " S S5      rg)zGround control points    Nc                   B    \ rS rSrSr  S	S jrS rS r\S 5       r	Sr
g)
GroundControlPoint   z3A mapping of row, col image coordinates to x, y, z.Nc                     [        S XX44 5       5      (       a  [        S5      eUc  [        [        R                  " 5       5      nX`l        Xpl        Xl        X l        X0l	        X@l
        XPl        g)a  Create a new ground control point

Parameters
----------
row, col : float, required
    The row (or line) and column (or pixel) coordinates that
    map to spatial coordinate values ``y`` and ``x``,
    respectively.
x, y : float, required
    Spatial coordinates of a ground control point.
z : float, optional
    Optional ``z`` coordinate.
id : str, optional
    A unique identifier for the ground control point.
info : str, optional
    A short description for the ground control point.
c              3   (   #    U  H  oS L v   M
     g 7f)N ).0xs     S/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/control.py	<genexpr>.GroundControlPoint.__init__.<locals>.<genexpr>   s     3"2QDy"2s   z+row, col, x, and y are required parameters.N)any
ValueErrorstruuiduuid4idinforowcolr
   yz)selfr   r   r
   r   r   r   r   s           r   __init__GroundControlPoint.__init__	   s^    & 33Q"2333JKK:TZZ\"B	    c                     SR                  S Vs/ s H*  n[        X5      c  M  U S[        [        X5      5       3PM,     sn5      nSU S3$ s  snf )Nz, )r   r   r
   r   r   r   r   =zGroundControlPoint())joingetattrrepr)r   attargss      r   __repr__GroundControlPoint.__repr__(   sd    yy GFC4% 43%qgd0123F
 %TF!,,s
   AAc                     U R                   U R                  U R                  U R                  U R                  U R
                  U R                  S.$ )z A dict representation of the GCPr   r   r   r   r
   r   r   r(   )r   s    r   asdictGroundControlPoint.asdict2   s:    ggtyyxxdff466H 	Hr   c                     U R                   U R                  /nU R                  b  UR                  U R                  5        U R                  SS[        U5      S.U R                  5       S.$ )z#A GeoJSON representation of the GCPFeaturePoint)typecoordinates)r   r.   geometry
properties)r
   r   r   appendr   tupler)   )r   coordss     r   __geo_interface__$GroundControlPoint.__geo_interface__7   sX     &&$&&!66MM$&&!ggy%,U6]K"kkm- 	-r   )r   r   r   r   r
   r   r   )NNNNNNN)__name__
__module____qualname____firstlineno____doc__r   r%   r)   propertyr5   __static_attributes__r   r   r   r   r      s/    ==A#>-H
 - -r   r   )r;   r   r   r   r   r   <module>r>      s     9- 9-r   