a
    1$e$                     @   s~  d Z ddlZddlmZ ddlZddlmZ dZejdk rDede	 ej
d	d
ejdddddZej
d	d
ejdddddZej
dd
eddZejdddddZejdddddZejddddddd Zejd!edd"d#Zejd$d%d&d Zejd'ed
d(d#Zejd)d*d+dd,d-Zejd.d*d/d0d1Zejd2d*d3d4d1Zejd5d%d6d7d8 d9Zejd:d;d%d<d ZdCd=d>ZdDd?d@ZdEdAdBZdS )FzVcligj

A package of arguments, options, and parsers for the Python GeoJSON
ecosystem.
    N)warn   )normalize_feature_inputsz0.7.2)      z&cligj 1.0.0 will require Python >= 3.6filesT)resolve_pathz	INPUTS...)nargstyperequiredmetavarzINPUTS... OUTPUTfeatureszFEATURES...)r
   callbackr   z	--verbosez-vzIncrease verbosity.)counthelpz--quietz-qzDecrease verbosity.z-fz--formatz--driverZdriverZGTiffzOutput format driver)defaultr   z--indentz!Indentation level for JSON output)r   r   r   z--compact/--not-compactFz"Use compact separators (',', ':').z--precisionz!Decimal precision of coordinates.z--geographicZ
projectionZ
geographicz/Output in geographic coordinates (the default).
flag_valuer   r   z--projectedZ	projectedz/Output in dataset's own, projected coordinates.)r   r   z
--mercatorZmercatorz#Output in Web Mercator coordinates.z--sequence/--no-sequencezWrite a LF-delimited sequence of texts containing individual objects or write a single JSON text containing a feature collection object (the default).c                 C   s   t dtp|S )NzSSequences of Features, not FeatureCollections, will be the default in version 1.0.0)r   FutureWarning)ctxparamvalue r   J/var/www/html/django/DPS/env/lib/python3.9/site-packages/cligj/__init__.py<lambda>o   s   r   )r   r   r   z--rs/--no-rsZuse_rszUse RS (0x1E) as a prefix for individual texts in a sequence as per http://tools.ietf.org/html/draft-ietf-json-text-sequence-13 (default is False).c                 C   s   t jddd| ddS )z%GeoJSON FeatureCollection output modez--collectiongeojson_type
collectionz(Output as GeoJSON feature collection(s).r   clickoptionr   r   r   r   geojson_type_collection_opt   s    r"   c                 C   s   t jddd| ddS )z/GeoJSON Feature or Feature sequence output modez	--featurer   featurezOutput as GeoJSON feature(s).r   r   r!   r   r   r   geojson_type_feature_opt   s    r$   c                 C   s   t jddd| ddS )zGeoJSON bbox output modez--bboxr   Zbboxz(Output as GeoJSON bounding box array(s).r   r   r!   r   r   r   geojson_type_bbox_opt   s    r%   )F)F)F)__doc__syswarningsr   r   r   r   __version__version_infor   argumentPathZfiles_in_argZfiles_inout_argZfeatures_in_argr    Zverbose_optZ	quiet_optZ
format_optintZ
indent_optZcompact_optZprecision_optZprojection_geographic_optZprojection_projected_optZprojection_mercator_optZsequence_optZ
use_rs_optr"   r$   r%   r   r   r   r   <module>   s   


	
	



