Enable Indoor Positioning (Indoor Positioning)

Summary

Creates the tables necessary for storing ArcGIS IPS data in an existing geodatabase.

Usage

  • The Input Workspace parameter value must be an existing geodatabase. This can be a file or enterprise geodatabase.

  • For ArcGIS Indoors, use the Indoors database as the Input Workspace parameter value.

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

Parameters

LabelExplanationData Type
Input Workspace

The geodatabase where ArcGIS IPS tables will be created. This can be a file or enterprise geodatabase.

Workspace

Derived Output

LabelExplanationData Type
Out IPS Recordings Table

The output IPS recordings table that is created.

Table
Out IPS Positioning Table

The output IPS positioning table that is created.

Table
Updated Input Workspace

The file or enterprise geodatabase in which the ArcGIS IPS tables are created.

Workspace

arcpy.indoorpositioning.EnableIndoorPositioning(in_workspace)
NameExplanationData Type
in_workspace

The geodatabase where ArcGIS IPS tables will be created. This can be a file or enterprise geodatabase.

Workspace

Derived Output

NameExplanationData Type
out_ips_recordings

The output IPS recordings table that is created.

Table
out_ips_positioning

The output IPS positioning table that is created.

Table
out_workspace

The file or enterprise geodatabase in which the ArcGIS IPS tables are created.

Workspace

Code sample

EnableIndoorPositioning example 1 (Python window)

The following Python window script demonstrates how to use the EnableIndoorPositioning function to create ArcGIS IPS tables.

# Name: EnableIndoorPositioning_example1.py
# Description: Creates ArcGIS IPS tables in an existing file geodatabase

# Import system modules
import arcpy

# Set local variables
in_workspace = r"C:\IndoorPositioning\ExampleDatabase.gdb"

arcpy.indoorpositioning.EnableIndoorPositioning(in_workspace)
EnableIndoorPositioning example 2 (Python window)

The following Python window script demonstrates how to create an empty file geodatabase and use the EnableIndoorPositioning function to create ArcGIS IPS tables in the geodatabase.

# Name: EnableIndoorPositioning_example2.py
# Description: Creates an empty file geodatabase and creates
# the ArcGIS IPS tables in the file geodatabase.

# Import system modules
import arcpy

# Set local variables
gdb_path = r"C:\IndoorPositioning"
gdb_name = "ExampleDatabase.gdb"

# Call the CreateFileGDB tool to create a new file geodatabase
arcpy.management.CreateFileGDB(gdb_path, gdb_name)  

# Call the EnableIndoorPositioning tool to create the ArcGIS IPS
# tables in the empty file geodatbase
arcpy.indoorpositioning.EnableIndoorPositioning(r"{0}\{1}".format(gdb_path, gdb_name))

Environments

Licensing information

  • Basic: No
  • Standard: Requires ArcGIS IPS
  • Advanced: Requires ArcGIS IPS

Related topics