TDS RW5 Syntax Highlighter
A Visual Studio Code extension that provides syntax highlighting and tooltips for Tripod Data Systems (TDS) RW5 raw survey data files.
Features
Syntax Highlighting
- Color-coded record types - Each record type is highlighted with a unique color based on its category:
- General records (JB, MO) - Job and mode setup
- Conventional records (OC, BK, SS, TR, etc.) - Total station survey data
- GPS records (EP, BP, GS, etc.) - GPS survey data
- Legacy records (AA, BB, HC, etc.) - Deprecated record types
- Comments (--) - User notes and comments
Hover over any line to see:
- Record name - Full name of the record type
- Category - Whether it's General, Conventional, GPS, or Legacy
- Description - What the record type is used for
- Common fields - List of typical fields in the record
Supported Record Types
General Records
JB - Job Record
MO - Mode Setup Record
-- - Comment/Note
Conventional Records (Total Station)
OC - Occupy Point Record
BK - Backsight Record
SS - Sideshot Record
TR - Traverse Record
SP - Store Point Record
LS - Line of Sight Record
- And many more...
GPS Records
EP - Geodetic Position
BP - Base Position
GS - GPS Store Point
CS - Coordinate System
ES - Ellipsoid Record
DT - Datum Record
- And many more...
Installation
From Source
- Clone or download this repository
- Open the folder in Visual Studio Code
- Run
npm install to install dependencies
- Run
npm run compile to compile TypeScript
- Press F5 to launch Extension Development Host
- Open any
.rw5 file to test the extension
Package and Install
- Install vsce:
npm install -g @vscode/vsce
- Package the extension:
vsce package
- Install the
.vsix file: code --install-extension tds-rw5-syntax-1.0.0.vsix
Usage
- Open any file with
.rw5 extension
- The file will automatically be recognized and syntax highlighting will be applied
- Hover over any line to see information about that record type
Example File Structure
JB,NM231121_2004148007_TO_MWM,DT11-21-2023,TM07:49:03
MO,AD0,UN2,SF1.0,EC1,EO0.0,AU0
--Converted from v2022.10.19 to v2023.00.12
OC,OPJMT104,N 652259.548,E 1241021.767,EL370.888,--TRAV
BK,OPJMT104,BPJMT107,BS116.19324,BC0.00000
LS,HI5.2200,HR5.0500
SS,OPJMT104,FPJMT107,AR0.00000,ZE89.43371,SD132.862,--TRAV
RW5 files are comma-delimited ASCII text files where:
- Each line starts with a 2-letter record type code
- Fields are separated by commas
- Lines beginning with
-- are comments
- Field headers follow the format:
XX,FIELD1value,FIELD2value,...
Requirements
- Visual Studio Code version 1.75.0 or higher
Release Notes
1.0.0
- Initial release
- Syntax highlighting for all TDS RW5 record types
- Hover tooltips with record descriptions
- Support for General, Conventional, GPS, and Legacy records
- Comment highlighting
Contributing
If you find issues or have suggestions:
- Check existing issues on the repository
- Submit a new issue with details about the problem or enhancement
- Pull requests are welcome!
License
[Specify your license here]
References
- Based on TDS Raw Data Record Specification, Survey Pro™ Version 3.6 (October 2, 2002)
- Tripod Data Systems, Inc.
Credits
Developed for surveying professionals working with TDS data collectors and Survey Pro software.
| |