... るモデル定義に適切なジオメトリフィールドを配置します。 ogrinspect django-admin ogrinspect data_source model_name ogrinspect 管理コマンドは指定されたOGR互換の DataSource (たとえば、シェイプ ... ファイル) を検査し、指定されたモデル名でGeoDjangoモデルを出力します。 ogrinspect の使用例については、 チュートリアルで 詳しく説明されています。 --blank BLANK フィールド定義に blank=True キーワードオプショ ... e と設定すると、該当するすべてのフィールドに適用されます。 --srid SRID The SRID to use for the geometry field. If not set, ogrinspect attempts to automatically determine the SRID of the data source. ... ... ... トし、 run ルーチンを呼び出して、 LayerMapping が作業を行う様子を見てください: >>> from world import load >>> load . run () ogrinspect を試す Now that you've seen how to define geographic models and import data with the LayerMapping データインポートユーティ ... リティ , it's possible to further automate this process with use of the ogrinspect management command. The ogrinspect command introspects a GDAL-supported vector data source (e.g., a shapefile) and generat ... l definition and LayerMapping dictionary automatically. コマンドの一般的な使用法は以下の通りです: / $ python manage.py ogrinspect [ options ] <data_source> <model_name> [ options ] ...\> py manage.py ogrinspect [options] < data_source > <model_name > [ ... ... s コマンドラインオプション --app loaddata コマンドラインオプション --backwards sqlmigrate コマンドラインオプション --blank ogrinspect コマンドラインオプション --buffer test コマンドラインオプション --check makemigrations コマンドラインオプション migrate コ ... et コマンドラインオプション --debug-mode test コマンドラインオプション --debug-sql test コマンドラインオプション --decimal ogrinspect コマンドラインオプション --default diffsettings コマンドラインオプション --deploy check コマンドラインオプション --domain ... ce-color コマンドラインオプション --format dumpdata コマンドラインオプション loaddata コマンドラインオプション --geom-name ogrinspect コマンドラインオプション --ignore collectstatic コマンドラインオプション compilemessages コマンドラインオプション makemess ... ... ューティング OGR のインスペクション ogrinspect mapping GeoJSON シリアライザ ... ... LayerMapping データインポートユーティリティ OGR のインスペクション GeoJSON シリアライザ GeoDjangoの管理コマンド inspectdb ogrinspect GeoDjango の admin サイト GISModelAdmin 地理情報フィード カスタマイズ例 API リファレンス 地理情報サイトマップ カスタマイズ ... ... tilities. django.contrib.gis.utils.layermapping Spatial data import utility for GeoDjango models. django.contrib.gis.utils.ogrinspect Utilities for inspecting OGR data sources. django.contrib.humanize A set of Django template filters useful for adding a "h ... ... にインストールされたアプリのものを含む、古くなったコンテンツタイプを削除します。デフォルトは False です。 django.contrib.gis ogrinspect このコマンドは、 GeoDjango ( django.contrib.gis ) がインストールされている場合のみ使用できます。 GeoDjango のドキュメントの ... 2026年10月08日