Create Indoor Dataset (Indoors)

Available for an ArcGIS organization licensed with the Indoors extension.

Summary

Creates an indoor dataset containing the necessary feature classes to maintain floor plan data using a streamlined schema that conforms to the ArcGIS Indoors Information Model.

Usage

  • The indoor dataset created by this tool provides foundational support for floor-aware maps and apps and can be used for visualizing, analyzing, and editing indoor data.

    Note:

    If you require support for routing, space planning, and workspace reservations in addition to floor plan mapping, use the Create Indoors Database tool to apply the Indoors model to an existing workspace. The Indoors geodatabase created by the Create Indoors Database tool contains additional feature classes, fields, and tables that are used in Space Planner, Indoor Viewer, and the Indoors mobile apps.

  • The target geodatabase must already exist.

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

  • Use the Coordinate System parameter to set the spatial reference of the output indoor dataset. Both a horizontal and a vertical coordinate system are required.

    Note:

    Consider the following when choosing a coordinate system:

  • The following feature classes will be created in the output indoor dataset:

    • Sites
    • Facilities
    • Levels
    • Units
    • Details

  • The output of this tool is used by the Import BIM To Indoor Dataset tool, which converts BIM data to GIS data, and the Import Floorplans To Indoors Geodatabase tool, which converts CAD data to GIS data.

Parameters

LabelExplanationData Type
Target Geodatabase

The target file or enterprise geodatabase that will contain the output indoor dataset.

Workspace
Indoor Dataset Name

The unique name of the output indoor dataset. The default is Indoor.

String
Coordinate System

The spatial reference of the output indoor dataset.

Spatial Reference

Derived Output

LabelExplanationData Type
Output Dataset

The indoor dataset that is generated in the target geodatabase.

Feature Dataset

arcpy.indoors.CreateIndoorDataset(target_gdb, indoor_dataset_name, spatial_reference)
NameExplanationData Type
target_gdb

The target file or enterprise geodatabase that will contain the output indoor dataset.

Workspace
indoor_dataset_name

The unique name of the output indoor dataset. The default is Indoor.

String
spatial_reference

The spatial reference of the output indoor dataset. You can specify the spatial reference in several ways, including the following:

  • Reference a feature class or feature dataset with the spatial reference you want to apply, such as C:/workspace/myproject.gdb/indoors/details.
  • Define a SpatialReference object. You can define the spatial reference object using either of the following:
    • Factory codes, for example:

      sr = arcpy.SpatialReference(3857, 115700)
    • Names, for example:

      sr = arcpy.SpatialReference("WGS 1984 Web Mercator (auxiliary sphere)", "WGS 1984")
  • Use the well-known text (WKT) string of a spatial reference. One way to determine the WKT for a spatial reference is to export the spatial reference as a string, for example, arcpy.SpatialReference(3857, 115700).exportToString().

Spatial Reference

Derived Output

NameExplanationData Type
output_dataset

The indoor dataset that is generated in the target geodatabase.

Feature Dataset

Code sample

CreateIndoorDataset example 1 (Python window)

The following Python window script demonstrates how to use the CreateIndoorDataset function in immediate mode.

import arcpy
arcpy.indoors.CreateIndoorDataset("C:/Indoors/myproject.gdb", 
                                  "Indoor", 
                                  "C:/workspace/myproject.gdb/featureclass")
CreateIndoorDataset example 2 (stand-alone script)

The following stand-alone script demonstrates how to use the CreateIndoorDataset function.

import arcpy

# Set tool parameters
target_gdb = "C:/Indoors/ExampleCampus.gdb"
indoor_dataset_name = "Indoor"
spatial_reference = arcpy.SpatialReference("WGS 1984 Web Mercator (auxiliary sphere)", "WGS 1984")

# Run the tool
arcpy.indoors.CreateIndoorDataset(target_gdb, indoor_dataset_name, spatial_reference)

Licensing information

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

Related topics