Create Indoors Database (Indoors)

Available for an ArcGIS organization licensed with the Indoors extension.

Summary

Adds the necessary datasets, feature classes, tables, and configurations to a geodatabase to host ArcGIS Indoors data.

Usage

  • The target geodatabase must be an existing geodatabase.

  • When using an enterprise geodatabase, the connection file must connect directly to the database, and the connection must be established as the database owner.

  • The output of this tool can be used by the Import Floorplans To Indoors Geodatabase tool to import CAD floor plans to your Indoors workspace. The output can also be used by the Import BIM To Indoor Dataset tool to load BIM floor plans to your Indoors workspace.

  • The optional Create Indoors Network parameter creates the Network and PrelimNetwork datasets and feature classes to support routing between indoor spaces.

Parameters

LabelExplanationData Type
Target Geodatabase

The geodatabase that will contain the ArcGIS Indoors Information Model to manage indoor GIS information for use with Indoors apps.

Workspace
Create Indoors Network
(Optional)

Specifies whether a network dataset containing the indoor transportation network feature classes—Landmarks, Pathways, and Floor Transitions—will be created in the Indoors database.

  • Checked—A network dataset and feature classes will be created. This is the default.
  • Unchecked—A network dataset and feature classes will not be created.
Boolean

Derived Output

LabelExplanationData Type
Updated Geodatabase

The geodatabase in which the Indoors schema and data results will be generated.

Workspace

arcpy.indoors.CreateIndoorsDatabase(target_gdb, {create_network})
NameExplanationData Type
target_gdb

The geodatabase that will contain the ArcGIS Indoors Information Model to manage indoor GIS information for use with Indoors apps.

Workspace
create_network
(Optional)

Specifies whether a network dataset containing the indoor transportation network feature classes—Landmarks, Pathways, and Floor Transitions—will be created in the Indoors database.

  • CREATE_NETWORK A network dataset and feature classes will be created. This is the default.
  • NO_CREATE_NETWORK A network dataset and feature classes will not be created.
Boolean

Derived Output

NameExplanationData Type
updated_gdb

The geodatabase in which the Indoors schema and data results will be generated.

Workspace

Code sample

CreateIndoorsDatabase example 1 (Python window)

The following Python window script demonstrates how to use the CreateIndoorsDatabase function in immediate mode to create an Indoors geodatabase with a network.

import arcpy
arcpy.indoors.CreateIndoorsDatabase(r"C:\Indoors\ExampleCampus.gdb", "CREATE_NETWORK")
CreateIndoorsDatabase example 2 (stand-alone script)

The following stand-alone script demonstrates how to use the CreateIndoorsDatabase function to create an Indoors geodatabase without a network.

# Name: Indoors_CreateIndoorsDatabase_example2.py
# Description: Creates Indoors model items in an empty file geodatabase.

import arcpy

# Set local variables
out_folder_path = r"C:\Indoors"
out_name = "ExampleCampus.gdb"
indoors_network = "NO_CREATE_NETWORK"

# Execute CreateFileGDB
arcpy.CreateFileGDB_management(out_folder_path, out_name)

# Execute CreateIndoorsDatabase on empty file geodatabase
arcpy.indoors.CreateIndoorsDatabase(r"{0}\{1}".format(out_folder_path, out_name), indoors_network)

Environments

Licensing information

  • Basic: No
  • Standard: Requires Indoors
  • Advanced: Requires Indoors

Related topics