https://github.com/eirslett/sector-file-tools
Utilities for working with SCT, ASR and ESE files.
https://github.com/eirslett/sector-file-tools
Last synced: about 2 months ago
JSON representation
Utilities for working with SCT, ASR and ESE files.
- Host: GitHub
- URL: https://github.com/eirslett/sector-file-tools
- Owner: eirslett
- License: mit
- Created: 2020-05-18T21:49:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T23:04:42.000Z (over 1 year ago)
- Last Synced: 2024-08-09T07:32:13.039Z (9 months ago)
- Language: TypeScript
- Size: 337 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-vatsim - Sector File Tools - Tool to work with ASR, SCT and ESE files that can also handle GeoJSON (Others / VATSIM Connect)
README
# Sector file tools
Utilities for working with SCT, ASR and ESE files.
This library can parse these files, and format them as GeoJSON data.Install:
```
npm install sector-file-tools
```Usage:
```
import { parseSct } from 'sector-file-tools';
import { parseSct, parseEse, parseAsr, toGeoJson } from 'sector-file-tools';const sct = parseSct('.....');
const ese = parseEse('.....');
const asr = parseAsr('.....');
const geojson = toGeoJson(sct, ese, asr);console.log(geojson); // data
```