Ë
    xìqjÏ  ã                   ó  — d Z ddlZddlZddlmZmZmZ ddlmZ ddl	m
Z
mZ ddlmZmZmZ  ej                   de› de› d	�¬
«      Zej%                  dddd¬«       ej'                  d¬«      Zej+                  dd¬«      Zej%                  dd¬«       ej%                  ddddgd¬«       ej%                  dd¬«       ej%                  dd ¬«       ej%                  d!d"¬«       ej%                  d#d$d¬«       ej%                  d%d&d¬«       ej%                  d'd(d¬«       ej%                  d)d*d¬«       ej%                  d+d,d¬«       ej%                  d-d.¬«       ej%                  ddd/d¬«       d0„ Zd1„ Zed2k(  r e«        yy)3zE
This is the main entry point for pyproj CLI

e.g. python -m pyproj

é    N)Ú__proj_version__Ú__version__Ú_show_versions)ÚBBox)Úget_data_dirÚget_user_data_dir)Ú_download_resource_fileÚget_proj_endpointÚget_transform_grid_listzpyproj version: z [PROJ version: ú])Údescriptionz-vz	--verbosez+Show verbose debugging version information.Ú
store_true)ÚhelpÚactionÚcommands)ÚtitleÚsynczBTool for synchronizing PROJ datum and transformation support data.)Únamer   z--bboxa³  Specify an area of interest to restrict the resources to download. The area of interest is specified as a bounding box with geographic coordinates, expressed in degrees in an unspecified geographic CRS. `west_long` and `east_long` should be in the [-180,180] range, and `south_lat` and `north_lat` in the [-90,90]. `west_long` is generally lower than `east_long`, except in the case where the area of interest crosses the antimeridian.)r   z--spatial-testa`  Specify how the extent of the resource files are compared to the area of use specified explicitly with `--bbox`. By default, any resource files whose extent intersects the value specified by `--bbox` will be selected. If using the ``contains`` strategy, only resource files whose extent is contained in the value specified by `--bbox` will be selected.Ú
intersectsÚcontains)r   ÚchoicesÚdefaultz--source-idz�Restrict resource files to be downloaded to those whose source_id property contains the ID value. Default is all possible values.z--area-of-usezŒRestrict resource files to be downloaded to those whose area_of_use property contains the AREA_OF_USE value. Default is all possible values.z--filez‹Restrict resource files to be downloaded to those whose name property  (file name) contains the FILE value. Default is all possible values.z--exclude-world-coveragez(Exclude files which have world coverage.z--include-already-downloadedz*Include grids that are already downloaded.z--list-filesz#List the files without downloading.z--allz%Download all missing transform grids.z--system-directoryzfIf enabled, it will sync grids to the main PROJ data directory instead of the user writable directory.z--target-directoryzFThe directory to sync grids to instead of the user writable directory.zPrint download information.c           
      ó  — t        | j                  | j                  | j                  | j                  | j
                  | j                  f«      st        j                  «        y| j                  rMt        | j                  | j                  | j                  | j
                  | j                  f«      rt        d«      ‚d}| j                  �S| j                  j                  d«      \  }}}}t        t        |«      t        |«      t        |«      t        |«      ¬«      }| j                  r| j                  rt        d«      ‚| j                  }| j                  r5t        «       j                  t         j"                  j$                  «      d   }n|st'        d«      }t)        | j                  | j
                  | j                  || j*                  | j,                   | j.                  |¬«      }| j                  rt1        d	«       t1        d
«       n
t3        «       }|D ]i  }	| j                  r.t1        |	d   d   |	d   d   |	d   j5                  d«      d¬«       Œ=|	d   d   }
t7        › d|
› �|
|| j8                  |	d   d   ¬«       Œk y)z'
    Handle sync command arguments
    Nz]Cannot use '--all' with '--list-files', '--source-id','--area-of-use', '--bbox', or '--file'.ú,)ÚwestÚsouthÚeastÚnorthz:Cannot set both --target-directory and --system-directory.r   T)Ú	source_idÚarea_of_useÚfilenameÚbboxÚspatial_testÚinclude_world_coverageÚinclude_already_downloadedÚtarget_directoryz"filename | source_id | area_of_usez"----------------------------------Ú
propertiesr   r   r    z | )Úsepú/Ú	sha256sum)Úfile_urlÚ
short_nameÚ	directoryÚverboseÚsha256)Úanyr"   Ú
list_filesÚallr   r    ÚfileÚsync_parserÚ
print_helpÚRuntimeErrorÚsplitr   Úfloatr&   Úsystem_directoryr   ÚosÚpathr(   r   r   r#   Úexclude_world_coverager%   Úprintr
   Úgetr	   r.   )Úargsr"   r   r   r   r   r&   ÚgridsÚendpointÚgridr!   s              úK/var/www/html/truck-me/venv/lib/python3.12/site-packages/pyproj/__main__.pyÚ_parse_sync_commandrD   r   sE  € ô à�I‰IØ�O‰OØ�H‰HØ�N‰NØ×ÑØ�I‰Ið	
ô	ô 	×ÑÔ Øà‡x‚x”Cà�I‰IØ�O‰OØ�N‰NØ×ÑØ�I‰Ið	
ôô ð6ó
ð 	
ð
 €DØ‡y�yÐØ#'§9¡9§?¡?°3Ó#7Ñ ˆˆe�T˜5ÜÜ�t“Ü˜“,Ü�t“Ü˜“,ô	
ˆð ×Ò ×!6Ò!6ÜÐWÓXÐXØ×,Ñ,ÐØ×ÒÜ'›>×/Ñ/´·±·±Ó<¸QÑ?ÑÙÜ,¨TÓ2ÐÜ#Ø—.‘.Ø×$Ñ$Ø—‘ØØ×&Ñ&Ø#'×#>Ñ#>Ð>Ø#'×#BÑ#BØ)ô	€Eð ‡‚ÜÐ2Ô3ÜÐ2Õ3ä$Ó&ˆØò ˆØ�?Š?ÜØ�\Ñ" 6Ñ*Ø�\Ñ" ;Ñ/Ø�\Ñ"×&Ñ& }Ó5Øö	ð ˜LÑ)¨&Ñ1ˆHÜ#Ø$˜: Q x jÐ1Ø#Ø*ØŸ™Ø˜LÑ)¨+Ñ6öñó    c                  óÆ   — t         j                  «       } t        | d«      rt        | «       y| j                  rt        j                  «        yt         j                  «        y)z:
    Main entrypoint into the command line interface.
    r"   N)ÚparserÚ
parse_argsÚhasattrrD   r.   r   Úshow_versionsr5   )r?   s    rC   ÚmainrK   Ã   sC   € ô ×ÑÓ€DÜˆt�VÔÜ˜DÕ!Ø	�ŠÜ×$Ñ$Õ&ä×ÑÕrE   Ú__main__)Ú__doc__Úargparser:   Úpyprojr   r   r   Ú
pyproj.aoir   Úpyproj.datadirr   r   Úpyproj.syncr	   r
   r   ÚArgumentParserrG   Úadd_argumentÚadd_subparsersÚ
subparsersÚ
add_parserr4   rD   rK   Ú__name__© rE   rC   ú<module>rZ      s6  ðñó Û 	ç @Ñ @Ý ß :÷ñ ð 
!ˆ×	 Ñ	 Ø" ; -Ð/?Ð@PÐ?QÐQRÐSô
€ð × Ñ ØØØ	6Øð	 ô ð ×"Ñ"¨Ð"Ó4€
Ø×#Ñ#Ø	ØTð $ó €ð × Ñ Øð	$ð ô ð × Ñ Øð	%ð ˜:Ð&Øð ô ð × Ñ Øð	Að ô ð × Ñ Øð	Jð ô ð × Ñ Øð	Pð ô ð × Ñ ØØ	3Øð ô ð
 × Ñ Ø"Ø	5Øð ô ð
 × Ñ ØÐ>À|ð ô ð × Ñ ØÐ9À,ð ô ð × Ñ Øð	2ð ð ô ð × Ñ ØØ	Qð ô ð × Ñ Øˆ+Ð9À,ð ô ò
Nòb
ð ˆzÒÙ…Fð rE   