+
    Tj                         ^ RI t ^ RIHt ^ RIHtHt ^ RIHt  ! R R] P                  4      t	 ! R R] P                  4      t
 ! R	 R
]4      tR# )    N)gdal)BaseCommandCommandError)get_func_argsc                   .   a  ] tR t^t o RtRR ltRtV tR# )LayerOptionActionzm
Custom argparse action for the `ogrinspect` `layer_key` keyword option
which may be an integer or a string.
Nc                     \        W P                  \        V4      4       R #   \         d    \        Y P                  T4        R # i ; iN)setattrdestint
ValueErrorselfparser	namespacevalueoption_strings   &&&&&f/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/management/commands/ogrinspect.py__call__LayerOptionAction.__call__   s6    	1Iyy#e*5 	1Iyy%0	1s   # !AA r
   __name__
__module____qualname____firstlineno____doc__r   __static_attributes____classdictcell____classdict__s   @r   r   r      s     
1 1    r   c                   .   a  ] tR t^t o RtRR ltRtV tR# )ListOptionActionz
Custom argparse action for `ogrinspect` keywords that require
a string list. If the string is 'True'/'true' then the option
value will be a boolean instead.
Nc                    VP                  4       R 8X  d   \        W P                  R4       R# \        W P                  VP                  R4      4       R# )trueT,N)lowerr   r   splitr   s   &&&&&r   r   ListOptionAction.__call__   s5    ;;=F"Iyy$/Iyy%++c*:;r#   r   r
   r   r!   s   @r   r%   r%      s     < <r#   r%   c                   4   a  ] tR t^#t o Rt. tR tR tRtV t	R# )CommandzInspects the given OGR-compatible data source (e.g., a shapefile) and outputs
a GeoDjango model with the given model name. For example:
 ./manage.py ogrinspect zipcode.shp Zipcodec                
   VP                  R RR7       VP                  RRR7       VP                  R\        RRR7       VP                  R	\        RR
R7       VP                  RRRR7       VP                  RR\        ^ RR7       VP                  RRRR7       VP                  RRR7       VP                  RRRRR7       VP                  R\        RRR7       VP                  R R!R7       VP                  R"RR#R7       R$# )%data_sourcezPath to the data source.)help
model_namezName of the model to create.z--blankFzUse a comma separated list of OGR field names to add the `blank=True` option to the field definition. Set to `true` to apply to all applicable fields.)actiondefaultr0   z	--decimalzUse a comma separated list of OGR float fields to generate `DecimalField` instead of the default `FloatField`. Set to `true` to apply to all OGR float fields.z--geom-namegeomzDSpecifies the model name for the Geometry Field (defaults to `geom`))r3   r0   z--layer	layer_keyzThe key for specifying which layer in the OGR data source to use. Defaults to 0 (the first layer). May be an integer or a string identifier for the layer.)r   r2   r3   r0   z--multi-geom
store_truez?Treat the geometry in the data source as a geometry collection.)r2   r0   z--name-fieldz:Specifies a field name to return for the __str__() method.z--no-importsstore_falseimportszDDo not include `from django.contrib.gis.db import models` statement.)r2   r   r0   z--nullzUse a comma separated list of OGR field names to add the `null=True` option to the field definition. Set to `true` to apply to all applicable fields.z--sridzeThe SRID to use for the Geometry Field. If it can be determined, the SRID of the data source is used.z	--mappingz8Generate mapping dictionary for use with `LayerMapping`.N)add_argumentr%   r   )r   r   s   &&r   add_argumentsCommand.add_arguments,   sk   M0JKL/MN#1	 	 	
 	#L	 	 	
 	W 	 	

 	$? 	 	
 	R 	 	

 	M 	 	
 	 W	 	 	
 	#1	 	 	
 	? 	 	

 	K 	 	
r#   c                  a VP                  R 4      VP                  R4      rC \        P                  ! V4      p^ RIHpHp TP                  4        U	U
u/ uF  w  rT	\        T4      9   g   K  T
f   K  YbK!  	  pp	p
T! YT3/ TB  Uu. uF  qNK  	  ppTR,          '       d   RTR,          RTR,          RTR,          /pT! T3/ TB pTP                  4        U	U
u/ uF  w  rYbK	  	  up
p	oTP                  RRR	T,          R
TP                  4       ,          .4       TP                  T3R lYRR,          ,          P                   4       4       TP                  RTR,          : RYR,          ,          : R2R.4       RP                  T4      #   \        P                   d   p\	        T4      hRp?ii ; iu up
p	i u upi u up
p	i )r/   r1   N)_ogrinspectmappingr>   	geom_namer5   
multi_geom z7# Auto-generated `LayerMapping` dictionary for %s modelz%s_mapping = {c              3   H   <"   T F  pR SV,          : RV: R2x  K  	  R# 5i)    '': '',Nr   ).0ogr_fldrev_mappings   & r   	<genexpr>!Command.handle.<locals>.<genexpr>   s%      >G &1%9%97C>s   "rC   rD   rE   }
)popr   
DataSourceGDALExceptionr   #django.contrib.gis.utils.ogrinspectr=   r>   itemsr   extendr)   fieldsjoin)r   argsoptionsr/   r1   dsmsgr=   r>   kvogr_optionssoutputkwargsmapping_dictrH   s   &*,             @r   handleCommand.handleo   s   ")++m"<gkk,>WZ	$-B 	M
  
'M+.. 34 AD' 	 

 )G;GHG!GH9 W[1W[1gl3F
 #200L -9,>,>,@A,@DA14,@AKMMM !$z'7'7'99 MM !+"67>>  MM {++\+:N-O-OQ yy  _ !! 	$s##	$

 I Bs5   F F9.F94F9
F?GF6&F11F6r   N)
r   r   r   r   r0   requires_system_checksr:   r`   r   r    r!   s   @r   r-   r-   #   s(     	6 	  A
F5! 5!r#   r-   )argparsedjango.contrib.gisr   django.core.management.baser   r   django.utils.inspectr   Actionr   r%   r-   r   r#   r   <module>rh      s?     # A .
1 
1<x <A!k A!r#   