CreateSQLiteDatabase (arcpy)
摘要
创建新的 SQLite 数据库。
语法
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.
| String |
数据类型 | 说明 |
File |
安装 ST_Geometry 或 SpatiaLite 几何类型的 SQLite 数据库(扩展名为 .sqlite)。 |
代码实例
CreateSQLiteDatabase 示例
创建 SQLite 数据库。
import arcpy
# Set local variables
sqlite_database_path = 'C:/Data/Counties.sqlite'
# Execute CreateSQLiteDatabase
arcpy.gp.CreateSQLiteDatabase(sqlite_database_path, "ST_GEOMETRY")
5/10/2014