CreateSQLiteDatabase (arcpy)

サマリ

Creates a new SQLite database.

構文

CreateSQLiteDatabase (sqlite_database_path, {spatial_type})
パラメータ説明データ タイプ
sqlite_database_path

Location of the SQLite database to be created and the name of the SQLite database in the file name. You must include the .sqlite extension.

String
spatial_type

The geometry type to install with the new SQLite database. You can only use one geometry type in SQLite databases.

  • ST_GEOMETRYEsri's spatial storage type. This is the default.
  • SPATIALITESpatiaLite spatial storage type.
String
戻り値
データ タイプ説明
File

An SQLite database (.sqlite extension) with either ST_Geometry or SpatiaLite geometry type installed.

コードのサンプル

CreateSQLiteDatabase example

Create an SQLite database.

import arcpy

# Set local variables
sqlite_database_path = 'C:/Data/Counties.sqlite'

# Execute CreateSQLiteDatabase
arcpy.gp.CreateSQLiteDatabase(sqlite_database_path, "ST_GEOMETRY")
4/26/2014