
    Mi                        S r SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKr\R                  " \
5      r\R                  " \5        \R                  " 5       \R                  " S\R                  " SS9S9\R                  " S\R                  " 5       S9\R                   " SS	\S
S9\R                   " SS\SS9\R&                  " 5       S 5       5       5       5       5       5       r\
S:X  a  \R*                  " \" 5       5        gg)zConsole script for alphashape.    NsourceT)exists)typetargetz--alphaz-azAlpha parameter)r   helpz--epsgz-ez"EPSG code to create alpha shape inc           	         [         R                  " U 5      n[         R                  " U5      n[        R                  SU5         [        R
                  " U5      n[        US    Vs/ s H'  n[        U[        R                  R                  5      PM)     sn5      (       d  [        R                  S5        gU(       a.  [        R                  SU5         UR                  SS	U-  05      nOUn[        R                  S5         [        R                  " X5      n	U(       a1  [        R                  S5         U	R                  UR                  5      n	[        R                  SU5         [        R                   R#                  U5      S   R%                  5       S:X  a  U	R'                  USS9  gU	R'                  U5         g!   [        R                  S5         g= fs  snf !   [        R                  S
5         g= f!   [        R                  S5         g= f!   [        R                  S5         g= f!   [        R                  S5         g= f)a=  
Example console appication using the alphashape toolbox.

Given an input shapefile or GeoJSON INPUT with point geometry, write out a
new OUTPUT that contains the geometries resulting from execting the alpha
shape toolbox.

The alpha parameter is optional.  If provided it will return the alpha
shape for the given value, if one is not provided, the tightest fitting
alpha shape that contains all input points will be solved for.

The EPSG code of a coordinate system can also be given to conduct the alpha
shape analysis in.  If one is not given the coordinate system of the input
data will be used.

The output file will always have the same coordinate system as the
source file.

The output file format will be determined by the extension of the provided
target filename and can be written out in shapefile format or GeoJSON.
zReading source file: %szCould not read source file
   geometryz0Source file does not contain multipiont features   z!Projecting source data to EPSG=%sinitzepsg:%szCould not project source data   zCreateing alpha shapezCould not generate alpha shape(   z0Projecting alpha shape data to source projectionzCould not project alpha shape2   zWriting target file: %s   z.geojsonGeoJSON)driverzCould not write target file<   r   )clickformat_filenameLOGGERinfo	geopandas	read_fileerrorany
isinstanceshapelyr
   Pointto_crs
alphashapecrsospathsplitextlowerto_file)
r   r   alphaepsgsource_filenametarget_filenamegdfp	gdf_inputalpha_shapes
             h/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/alphashape/cli.pymainr0      s   < ++F3O++F3O
KK)?;!!/2 03JA0?1 w%%'0?A B BGH 7>	

FI,<#=>I
 	 KK'( ++I= FG	%,,SWW5K KK)?;77F#A&,,.*<y9 	 ' a12A	LL8956	LL8923sI   G  &.GG! G= 6H (AH5 -H5  G!G:=HH25I__main__)__doc__r"   sysr   	click_logloggingr   r   r    	getLogger__name__r   basic_configcommandargumentPathoptionfloatintsimple_verbosity_optionr0   exit     r/   <module>rC      s    % 	 
       
		8	$ 	  v  uzz67uzz|,iE0ABh379
""$L %9 C - 8 L^ zHHTV rB   