ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Track Intervals To Line

  • Résumé
  • Illustration
  • Utilisation
  • Syntaxe
  • Exemple de code
  • Environnements
  • Informations de licence

Résumé

Calculates values that are computed from the difference between successively ordered features in a track. A new line feature class is created to represent the track intervals and store the calculated values (distance, duration, speed, and course).

Illustration

Track Intervals To Line illustration

Utilisation

  • For this tool to work, the input feature class or layer must have date and time information contained in a single time field of data type text, short, long, float, double, or date. If the time field data type is date, the tool will automatically detect the format. If the time field data type is anything other than date, a time field format (and possibly other information for a time field data type of text) is required to parse the data values correctly.

  • If the time field selected is text, short, long, float, or double, the time field format can be selected from a list of supported time field formats, or you can define a custom time field format to interpret custom date and/or time values in a text field. For more information about custom formats for text fields, refer to converting string time values into date format.

  • This tool automatically generates the output field names that store the calculated values in the output feature class, and the autogenerated name includes an abbreviation of the units used.

Syntaxe

arcpy.ta.TrackIntervalsToLine(in_features, out_feature_class, time_field, {track_id_field}, {time_field_format}, {locale_id}, {am_designator}, {pm_designator}, {distance_field_units}, {distance_field_name}, {duration_field_units}, {duration_field_name}, {speed_field_units}, {speed_field_name}, {course_field_units}, {course_field_name})
ParamètreExplicationType de données
in_features

The input feature class or layer.

Feature Layer
out_feature_class

The output line feature class that will be created.

Feature Class
time_field

The field in the input feature class or layer that contains date and time information. This tool requires date and time information to be contained in the same field, and the data type of the field must be short, long, float, double, text, or date.

Field
track_id_field
(Facultatif)

The field that contains data values that are used to group the input features into tracks. The data type of the field can be short, long, float, double, text, or OID.

Field
time_field_format
(Facultatif)

If the data type of the time field is anything other than date, this parameter determines the format that is used to interpret data values in the time field. Some examples of formats are as follows:

  • "yyyyMMdd" (standard format valid for text or numeric time fields)
  • "yyyy/MM/dd HH:mm:ss" (standard format valid only for text time fields)
  • "MM-dd-yyyy hh:mm:ss tt" (custom format valid only for text time fields)

If the data type of the time field is text, either a standard Esri text time format can be used, or a custom format can be specified. However, custom formats cannot be used if you specified KEEP_ON_DISK for the storage policy. If the data type of the time field is numeric (short, long, float, or double), only standard Esri numeric time formats can be used. If the data type of the time field is date, this parameter is not needed.

String
locale_id
(Facultatif)

If the data type of the time field is text, this parameter determines which locale is used to interpret data values in the time field. For all time field data types other than text, this parameter is not needed. If no locale is entered, the current locale of the operating system is used. For a list of available locales supported by your system, open the tool dialog box and expand this drop-down list. When entering the locale as a parameter, it is recommended that you use only the locale ID (LCID) assigned by Microsoft, which can be entered as a long integer such as 1033. You can also enter the full string representation of the locale as a parameter, such as "01033-English_(United_States)", but you must replace spaces with underscore characters.

Long
am_designator
(Facultatif)

If the time field data type is text and the time format is a 12-hour clock representation including a time marker (t or tt), this parameter determines the character (t) or characters (tt) that designate AM in the time field data values. If nothing is entered, the default AM designator for the selected locale is used. For all time field data types other than text, this parameter is not needed.

String
pm_designator
(Facultatif)

If the time field data type is text and the time format is a 12-hour clock representation including a time marker (t or tt), this parameter determines the character (t) or characters (tt) that designate PM in the time field data values. If nothing is entered, the default PM designator for the selected locale is used. For all time field data types other than text, this parameter is not needed.

String
distance_field_units
(Facultatif)

Specifies the distance units that will be used in the output distance field.

  • INCHES —Inches
  • FEET —Feet
  • YARDS —Yards
  • MILES —Miles
  • NAUTICAL_MILES —Nautical miles
  • MILLIMETERS —Millimeters
  • CENTIMETERS —Centimeters
  • METERS —Meters
  • KILOMETERS —Kilometers
  • DECIMETERS —Decimeters
  • DECIMAL_DEGREES —Decimal degrees
  • UNKNOWN_UNITS —Units are not known
  • SKIP —Skips this parameter
String
distance_field_name
(Facultatif)

Specifies the name of the distance field that will be added to the input feature class or layer. If no field name is specified, a name is automatically chosen.

String
duration_field_units
(Facultatif)

Specifies the time units that will be used in the output duration field.

  • MILLISECONDS —Milliseconds
  • SECONDS —Seconds
  • MINUTES —Minutes
  • HOURS —Hours
  • DAYS —Days
  • WEEKS —Weeks
  • MONTHS —Months
  • YEARS —Years
  • SKIP —Skips this parameter
String
duration_field_name
(Facultatif)

Specifies the name of the duration field that will be added to the input feature class or layer. If no field name is specified, a name is automatically chosen.

String
speed_field_units
(Facultatif)

Specifies the speed units that will be used in the output speed field.

  • MILES_PER_HOUR —Miles per hour
  • FEET_PER_HOUR —Feet per hour
  • KILOMETERS_PER_HOUR —Kilometers per hour
  • MILES_PER_SECOND —Miles per second
  • FEET_PER_SECOND —Feet per second
  • METERS_PER_SECOND —Meters per second
  • KNOTS —Knots
  • SKIP —Skips this parameter
String
speed_field_name
(Facultatif)

Specifies the name of the speed field that will be added to the input feature class or layer. If no field name is specified, a name is automatically chosen.

String
course_field_units
(Facultatif)

Specifies the course units that will be used in the output course field.

  • DEGREES —Degrees
  • RADIANS —Radians
  • SKIP —Skips this parameter
String
course_field_name
(Facultatif)

Specifies the name of the course field that will be added to the input feature class or layer. If no field name is specified, a name is automatically chosen.

String

Exemple de code

TrackIntervalsToLine example using date field and default units and output field names

This sample shows how to run the tool on a feature class with a date field using the default units and output field names.

import arcpy
arcpy.CheckOutExtension("tracking")
in_features = "C:\Data\Vehicles.gdb\Planes"
out_feature_class = "C:\Data\Vehicles.gdb\Plane_Intervals"
time_field = "DATE_TIME"
track_id_field = "ACID"
arcpy.TrackIntervalsToLine_ta(in_features, out_feature_class, time_field, track_id_field)
TrackIntervalsToLine example using text date field, custom units, and custom field names

This sample shows how to run the tool on a feature class with a date field of data type text, specifying custom units and field names.

import arcpy
arcpy.CheckOutExtension("tracking")
in_features = "C:\Data\Vehicles.gdb\Planes"
out_feature_class = "C:\Data\Vehicles.gdb\Plane_Intervals_2"
time_field = "DATE_TEXT"
track_id_field = "ACID"
time_field_format = "MM/dd/yyyy HH:mm:ss"
distance_field_units = "MILES"
distance_field_name = "DISTANCE"
duration_field_units = "SECONDS"
duration_field_name = "DURATION"
speed_field_units = "KILOMETERS_PER_HOUR"
speed_field_name = "SPEED"
course_field_units = "DEGREES"
course_field_name = "HEADING"
arcpy.TrackIntervalsToLine_ta(in_features, out_feature_class, time_field, track_id_field, time_field_format, "", "", "", distance_field_units, distance_field_name, duration_field_units, duration_field_name, speed_field_units, speed_field_name, course_field_units, course_field_name)

Environnements

Cet outil n'utilise pas d’environnement de géotraitement.

Informations de licence

  • Basic: Requiert Tracking Analyst
  • Standard: Requiert Tracking Analyst
  • Advanced: Requiert Tracking Analyst

Rubriques connexes

  • An overview of the Tracking Analyst toolbox
  • Formats de champ pris en charge

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal