
    !\i                     V   S r SSKrSSKrSSKJrJrJrJrJrJ	r	J
r
Jr  SSKrSSKrSSKJr  SSKJr  \R$                  " SSSS	9r\R(                  " S
S9\R*                  \" 5       \" SS9\\	\
\\\\R,                  S 5       5       5       5       5       5       5       5       5       5       5       rg)z4Command access to dataset metadata, stats, and more.    N)compact_opt
use_rs_optgeojson_type_collection_optgeojson_type_feature_optprojection_geographic_optprojection_projected_optprecision_opt
indent_opt)optionstransform_geomz--sequence/--no-sequenceTzWrite a LF-delimited sequence of texts containing individual objects or write a single JSON text containing a feature collection object (the default).)defaulthelpz'Print ground control points as GeoJSON.)
short_help)r   c                 $  ^^^ US:X  a$  U(       a  U(       d  [         R                  " S5      eU R                  S      [        R                  " U5       nUR
                  u  n	mTR                  5       n
U
R                  S5      (       a"  U
R                  S5      S   R                  5       OU
n
S nUUU4S jnUS	:X  a  TS
:X  d  TS:  a'  U	 Vs/ s H  o" U" UR                  U
S95      PM     nnO U	 Vs/ s H  o" UR                  U
S9PM     nn[         R                  " [        R                  " SUS.U(       a  SOSUS95        OU	 H  nU(       a  [         R                  " SSS9  TS
:X  d  TS:  a  U" U" UR                  U
S95      nOU" UR                  U
S9n[         R                  " [        R                  " X(       a  SOSUS95        M     SSS5        SSS5        gs  snf s  snf ! , (       d  f       N!= f! , (       d  f       g= f)aF  Print GeoJSON representations of a dataset's control points.

Each ground control point is represented as a GeoJSON feature. The
'properties' member of each feature contains a JSON representation
of the control point with the following items:


    row, col:
        row (or line) and col (or pixel) coordinates.
    x, y, z:
        x, y, and z spatial coordinates.
    crs:
        The coordinate reference system for x, y, and z.
    id:
        A unique (within the dataset) identifier for the control
        point.
    info:
        A brief description of the control point.
featurez?Pretty-printing a sequence of Features requires the --rs optionenvz
+init=epsg=   c                 0    U S   R                   " S0 UD6  U $ )N
properties )update)datakwdss     T/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/rio/gcps.pyupdate_propsgcps.<locals>.update_propsF   s    %%--K    c                 @   > TS:X  a  SOTn[        TXS   TS9nX S'   U $ )N
geographicz	epsg:4326geometry)	precisionr   )featdst_crsgeomcrsr#   
projections      r   	transformgcps.<locals>.transformJ   s4    %/<%?kSG!#wZ0@,57D#Kr   
collectionr!   r   )r'   FeatureCollection)typefeatures),:N)
separatorsindentF)nl)clickBadParameterobjrasterioopengcps	to_string
startswithsplitupper__geo_interface__echojsondumps)ctxinputgeojson_typer(   r#   use_rsr2   compactsrcr:   projr   r)   pr.   r$   r'   s      ``           @r   r:   r:      s   B y VF  MO 	O 
u-HH	c}}-1__\-J-Jtzz#q!'')PT		 <'\)Y!^\`a\`WXIl13F3FD&QR\`aQUVQUAL)<)<$GQUVJJ

0hG-4z$! JJv%0-a$\!2E2E4%PQD'(;(;FD

JJwDQW C .( bV- .-sC   HA;G0 G&/G06G+CG0H&
G00
G>	:H
H)__doc__rA   r5   cligjr   r   r   r   r   r   r	   r
   r8   rasterio.crsrasterio.rior   rasterio.warpr   optionsequence_optcommandfile_in_argpass_contextr:   r   r   r   <module>rU      s    :  9 9 9
     (
 ||
,- CD$'H        (   EHr   