Orduithe Bainistíochta GeodJangoLink to this heading
InspectdbLink to this heading
- django-admin inspectdb
Nuair a bhíonn: MOD: django.contrib.gis i do: setting: INSTALLED_APPS, athsholáthraítear an t-ordú bainistíochta: djadmin: inspectdb le ceann ó GeodJango. Tá an t-ordú athsháraithe ar an eolas spásúil, agus cuireann sé réimsí geoiméadachta sa sainmhíniú samhail uathoibríoch a ghintear, nuair
ogrinspectLink to this heading
- django-admin ogrinspect data_source model_nameLink to this definition
The ogrinspect management command will inspect the given OGR-compatible
DataSource (e.g., a shapefile) and will
output a GeoDjango model with the given model name. There's a detailed example
of using ogrinspect in the tutorial.
- --blank BLANKLink to this definition
Use a comma separated list of OGR field names to add the
blank=Truekeyword option to the field definition. Set withtrueto apply to all applicable fields.
- --decimal DECIMALLink to this definition
Úsáid liosta scartha camóg de réimsí snámhphointe OGR chun a ghiniúint:class: ~django.db.models.decimalfield in ionad an réamhshocraithe:class: ~django.db.models.floatfield. Socraigh go ``fíor` chun feidhm a chur i bhfeidhm ar gach réimse snámhphointe OGR.
- --geom-name GEOM_NAMELink to this definition
Sonraíonn ainm tréith an tsamhail atá le húsáid don réimse geoiméadrach. Réamhshocraithe go
'geom'.
- --layer LAYER_KEYLink to this definition
An eochair chun a shonrú cén ciseal san OGR: Class: ~django.contrib.gis.gdal.datasource foinse atá le húsáid. Réamhshocraithe go 0 (an chéad chiseal). D'fhéadfadh sé a bheith ina shláimhir nó ina aitheantóir teaghrán don :class: ~django.contrib.gis.gdal.layer. Agus bunachair sonraí á iniúchadh agat, is iondúil gurb é `sraith ``an t-ainm tábla a theastaíonn uait a iniúchadh.
- --mappingLink to this definition
Ginigh foclóir mapála go huathoibríoch le húsáid le:class: ~django.contrib.gis.utils.layermapping.
- --multi-geomLink to this definition
Agus an réimse geoiméadrachta á ghiniúint agat, déileáil leis mar bhailiúchán Mar shampla, má tá an socrú seo cumasaithe ansin cuirfear a:class: ~django.contrib.gis.db.models.multipolygonfield sa tsamhail ghintear seachas: :class: ~django.contrib.gis.db.models.polygonfield.
- --name-field NAME_FIELDLink to this definition
Gineann sé modh ``__str__ () ``ar an tsamhail a thugann ainm an réimse tugtha ar ais.
- --no-importsLink to this definition
Cuireann sé cosc ar an ráiteas allmhairithe ``ó django.contrib.gis.db samhlacha allmhairiúcháin.
- --null NULLLink to this definition
Use a comma separated list of OGR field names to add the
null=Truekeyword option to the field definition. Set withtrueto apply to all applicable fields.
- --srid SRIDLink to this definition
The SRID to use for the geometry field. If not set,
ogrinspectattempts to automatically determine the SRID of the data source.