---
title: "Orduithe Bainistíochta GeodJango"
version: 6.1
locale: ga
source: https://docs.djangoproject.com/ga/6.1/ref/contrib/gis/commands/
canonical: https://djangodocs.dev/ga/6.1/ref/contrib/gis/commands/
---
# Orduithe Bainistíochta GeodJango

## `Inspectdb`

#### `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

## `ogrinspect`

#### `django-admin ogrinspect data_source model_name`

The `ogrinspect` management command will inspect the given OGR-compatible
[`DataSource`](/ga/6.1/ref/contrib/gis/gdal/#django.contrib.gis.gdal.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](/ga/6.1/ref/contrib/gis/tutorial/#ogrinspect-intro).

#### `--blank BLANK`

Use a comma separated list of OGR field names to add the `blank=True`
keyword option to the field definition. Set with `true` to apply
to all applicable fields.

#### `--decimal DECIMAL`

Ú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_NAME`

Sonraíonn ainm tréith an tsamhail atá le húsáid don réimse geoiméadrach. Réamhshocraithe go `'geom'`.

#### `--layer LAYER_KEY`

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.

#### `--mapping`

Ginigh foclóir mapála go huathoibríoch le húsáid le:class: ~django.contrib.gis.utils.layermapping.

#### `--multi-geom`

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_FIELD`

Gineann sé modh \_\_str\_\_ () ar an tsamhail a thugann ainm an réimse tugtha ar ais.

#### `--no-imports`

Cuireann sé cosc ar an ráiteas allmhairithe ó django.contrib.gis.db samhlacha allmhairiúcháin.

#### `--null NULL`

Use a comma separated list of OGR field names to add the `null=True`
keyword option to the field definition. Set with `true` to apply to
all applicable fields.

#### `--srid SRID`

The SRID to use for the geometry field. If not set, `ogrinspect` attempts
to automatically determine the SRID of the data source.
