https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/contrib/gis/management/commands/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/gis/management/commands/ogrinspect.pyc
�
r�\c@sbddlmZddlmZddlmZmZd�Zd�Zdefd��YZ	dS(	i����(tmake_option(tgdal(tLabelCommandtCommandErrorcCsDyt|�}Wntk
r)|}nXt|j|j|�dS(s}
    Callback for `make_option` for the `ogrinspect` `layer_key`
    keyword option which may be an integer or a string.
    N(tintt
ValueErrortsetattrtvaluestdest(toptiontopttvaluetparserR((sS/tmp/pip-install-XxeQeY/django/django/contrib/gis/management/commands/ogrinspect.pytlayer_options


cCsW|j�dkrt}n"g|jd�D]}|^q+}t|j|j|�dS(s�
    Callback for `make_option` for `ogrinspect` keywords that require
    a string list.  If the string is 'True'/'true' then the option
    value will be a boolean instead.
    ttruet,N(tlowertTruetsplitRRR(R	R
RRRts((sS/tmp/pip-install-XxeQeY/django/django/contrib/gis/management/commands/ogrinspect.pytlist_options	"tCommandcBs�eZdZdZejedddddddded	ed
d�eddd
ddddded	ed
d�edddddd	dd
d�edddddddde	d	dd
d�edddddd	ed
d�edddd
d�eddddd d	e
d
d!�ed"dd#ddddded	ed
d$�ed%dd&d
d'�ed(dddd)d
d*�f
ZeZd+�ZRS(,s�Inspects 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 Zipcodes[data_source] [model_name]s--blankRtblankttypetstringtactiontcallbacktdefaultthelps�Use a comma separated list of OGR field names to add the `blank=True` option to the field definition.  Set with`true` to apply to all applicable fields.s	--decimaltdecimals�Use 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.s--geom-namet	geom_nametgeomsDSpecifies the model name for the Geometry Field (defaults to `geom`)s--layert	layer_keyis�The 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.s--multi-geomt
store_truet
multi_geoms?Treat the geometry in the data source as a geometry collection.s--name-fieldt
name_fieldsJSpecifies a field name to return for the `__unicode__`/`__str__` function.s--no-importststore_falsetimportssDDo not include `from django.contrib.gis.db import models` statement.s--nulltnulls�Use a comma separated list of OGR field names to add the `null=True` option to the field definition.  Set with`true` to apply to all applicable fields.s--sridtsridsfThe SRID to use for the Geometry Field.  If it can be determined, the SRID of the data source is used.s	--mappingtmappings8Generate mapping dictionary for use with `LayerMapping`.cOs<y|\}}Wn$tk
r6td|j��nXtjsOtd��ntg|j�D]$\}}|dk	r_||f^q_�}ytj|�}Wn"tj	k
r�}t|��nX|j
dt�}	|j
dt�}
|j
dt�}ddlm
}m}
g||||�D]}|^q#}|	r+i|dd6|d	d	6|d
d
6}|
||�}tg|j�D]\}}||f^q��}|jdd|d
|j�g�|jg||d	jD]}d|||f^q��|jd|d||dfdg�ndj|�dS(Ns#Invalid arguments, must provide: %ss4GDAL is required to inspect geospatial data sources.R(t	verbositytsettingsi����(t_ogrinspectR(RR R"ts7# Auto-generated `LayerMapping` dictionary for %s models%s_mapping = {s    '%s' : '%s',t}s
(RRtargsRtHAS_GDALtdicttitemstNonet
DataSourcetOGRExceptiontpoptFalset#django.contrib.gis.utils.ogrinspectR+R(textendRtfieldstjoin(tselfR.toptionstdata_sourcet
model_nametktvtdstmsgtshow_mappingR)R*R+R(Rtoutputtkwargstmapping_dicttrev_mappingtogr_fld((sS/tmp/pip-install-XxeQeY/django/django/contrib/gis/management/commands/ogrinspect.pythandleJs6
	=%19,(
t__name__t
__module__RR.Rtoption_listRRR6R
Rtrequires_model_validationRI(((sS/tmp/pip-install-XxeQeY/django/django/contrib/gis/management/commands/ogrinspect.pyRs:
N(
toptparseRtdjango.contrib.gisRtdjango.core.management.baseRRR
RR(((sS/tmp/pip-install-XxeQeY/django/django/contrib/gis/management/commands/ogrinspect.pyt<module>s
		

https://t.me/AnonymousX5 - 2025