Create Trajectory Dataset (Data Management)

Summary

Creates an empty trajectory dataset in a geodatabase.

Usage

  • A trajectory dataset is a container in a geodatabase that stores the footprint geometries, metadata, and references of the trajectory data files.

Parameters

LabelExplanationData Type
Output Location

The geodatabase where the trajectory dataset will be stored.

Workspace
Trajectory Dataset Name

The name of the trajectory dataset that will be created.

String
Coordinate System

The spatial reference of the trajectory dataset that will be created.

Coordinate System

Derived Output

LabelExplanationData Type
Trajectory Dataset Name

The updated trajectory dataset.

Trajectory Dataset

arcpy.management.CreateTrajectoryDataset(in_workspace, in_dataset_name, coordinate_system)
NameExplanationData Type
in_workspace

The geodatabase where the trajectory dataset will be stored.

Workspace
in_dataset_name

The name of the trajectory dataset that will be created.

String
coordinate_system

The spatial reference of the trajectory dataset that will be created.

Coordinate System

Derived Output

NameExplanationData Type
out_trajectory_dataset

The updated trajectory dataset.

Trajectory Dataset

Code sample

CreateTrajectoryDataset (stand-alone script)

Create an empty trajectory dataset using the CreateTrajectoryDataset function.

# Import system modules
import arcpy
from arcpy.ia import *

# Set local variables
in_workspace = r"C:\temp\trajectory_data.gdb"
in_dataset_name = "trajectory_dataset"
coordinate_system = "GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],
					PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"

# Execute
Trajectory_output = arcpy.CreateTrajectoryDataset_management(in_workspace, in_dataset_name, coordinate_system)

Related topics