Create Indoor Network Dataset (Indoors)

Available with the ArcGIS Indoors Pro or ArcGIS Indoors Maps extension.

Summary

Creates an indoor network dataset containing the necessary feature classes to maintain indoor network data using a streamlined schema that conforms to the ArcGIS Indoors Information Model. The indoor network dataset can be used to support indoor routable networks.

Usage

  • 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 network 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 preliminary indoor network dataset:

    • PrelimPathways
    • PrelimTransitions

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

    • Landmarks
    • Pathways
    • Transitions

Parameters

LabelExplanationData Type
Target Geodatabase

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

Workspace
Indoor Network Dataset Name

The unique name of the output indoor network dataset. This name is also used for the preliminary indoor network dataset. The default name for the indoor network dataset is IndoorNetwork. The default name for the preliminary indoor network dataset is PrelimIndoorNetwork.

String
Coordinate System

The spatial reference of the output indoor network dataset.

Spatial Reference

Derived Output

LabelExplanationData Type
Output Dataset

The indoor network dataset and preliminary indoor network dataset that are generated in the target geodatabase.

Feature Dataset

arcpy.indoors.CreateIndoorNetworkDataset(target_gdb, indoor_network_dataset_name, spatial_reference)
NameExplanationData Type
target_gdb

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

Workspace
indoor_network_dataset_name

The unique name of the output indoor network dataset. This name is also used for the preliminary indoor network dataset. The default name for the indoor network dataset is IndoorNetwork. The default name for the preliminary indoor network dataset is PrelimIndoorNetwork.

String
spatial_reference

The spatial reference of the output indoor network 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 network dataset and preliminary indoor network dataset that are generated in the target geodatabase.

Feature Dataset

Code sample

CreateIndoorNetworkDataset example 1 (Python window)

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

import arcpy
arcpy.indoors.CreateIndoorNetworkDataset("C:/workspace/myproject.gdb", 
                                  "IndoorNetwork", 
                                  "C:/workspace/myproject.gdb/indoor/details")
CreateIndoorNetworkDataset example 2 (Python window)

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

import arcpy

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

# Run the tool
arcpy.indoors.CreateIndoorNetworkDataset(target_gdb, indoor_network_dataset_name, spatial_reference)

Licensing information

  • Basic: Requires ArcGIS Indoors Pro or ArcGIS Indoors Maps
  • Standard: Requires ArcGIS Indoors Pro or ArcGIS Indoors Maps
  • Advanced: Requires ArcGIS Indoors Pro or ArcGIS Indoors Maps

Related topics