
    nj
                         S SK r S SKJr  \ R                  4S jr\S:X  a#  \ R                  " \" \ R                  5      5        gg)    N)gdalc                     [        U 5      S:  a  [        S5        gU S   n[        R                  " U5      nUc  [        SU-  5        gUR	                  5       nUb  U(       d  [        SU-   5        g[        R
                  " U5      nUc  [        S5        g[        US   5        [        US   5        [        US   5        [        US   5        [        US	   S
US   -  -   S
US   -  -   5        [        US   S
US   -  -   S
US   -  -   5        g )N   zUsage: gcps2wld.py source_file   zUnable to open %szNo GCPs found on file z!Unable to extract a geotransform.      r   g      ?   )lenprintr   OpenGetGCPsGCPsToGeoTransform)argvfilenamedatasetgcpsgeotransforms        X/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/osgeo_utils/samples/gcps2wld.pymainr   '   s   
4y1}./AwHii!G!H,-??D|4&12**40L12	,q/	,q/	,q/	,q/	,q/C,q/1
1C,q/4I
IJ	,q/C,q/1
1C,q/4I
IJ    __main__)sysosgeor   r   r   __name__exit r   r   <module>r      s@   D   hh K> zHHT#((^ r   