https://github.com/roblabs/geojson-primer
A primer on GeoJSON tools you can use with Visual Studio Code
https://github.com/roblabs/geojson-primer
cli geojson visualstudiocode
Last synced: 25 days ago
JSON representation
A primer on GeoJSON tools you can use with Visual Studio Code
- Host: GitHub
- URL: https://github.com/roblabs/geojson-primer
- Owner: roblabs
- License: mit
- Created: 2024-07-01T20:38:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-31T21:44:25.000Z (9 months ago)
- Last Synced: 2025-03-28T21:37:45.415Z (about 1 month ago)
- Topics: cli, geojson, visualstudiocode
- Language: TypeScript
- Homepage: https://RobLabs.com/geojson-primer
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![]()
![]()
![]()
[][vscode.dev]# ๐ ๏ธ GeoJSON Primer
A primer[1](#about) on GeoJSON tools you can use with Visual Studio Code.
## ๐จVisual Studio Code Extensions
[GeoJSON.IO for VSCode] : "Create, Edit and Preview GeoJSON Data In VSCode"
[Rainbow CSV] : "Highlight CSV and TSV files"
* Plus other useful VS Code extensions
* Markdown editing (PDF, paste image, GitHub style preview)
* Git Graph---
## GeoJSON Data
### ๐ง Creating GeoJSON
[geojson-random] : "Generate random GeoJSON features"
Generate three random GeoJSON features
```bash
geojson-random 3 > 3.geojson
```---
### ๐๏ธ Prettier
[prettier] : "Prettier is an opinionated code formatter"
Make a GeoJSON file 'prettier' or easier to read
```bash
prettier --write 3.geojson
```---
### ๐ช Converting GeoJSON
[geojson2csv] : "converting a geojson file to a csv file"
Convert GeoJSON to CSV
```bash
geojson2csv data/parks.geojson
```---
### ๐๏ธ Precision for GeoJSON
[geojson-precision-ts] : "Remove meaningless precision from GeoJSON"
---
### โ๏ธ Validate GeoJSON
[@mapbox/geojsonhint] : "complete, fast, standards-based validation for geojson"
Use `@mapbox/geojson` to look for hints on your GeoJSON
```bash
geojsonhint 3.geojson
```or, use `@placemarkio/check-geojson` to look to check your GeoJSON
```bash
geojson-check 3.geojson
```---
### ๐ฌ Visualizing GeoJSON
From the command line, you can push your GeoJSON to a browser that can help you visualize your GeoJSON.
[geojsonio-cli] : "Use the command line to open GeoJSON"
#### Visualize at GeoJSON.io
* You can visualize your GeoJSON at
```bash
# from a command line, open GeoJSON on disk
geojsonio data/parks.geojson
```---
#### Visualize with NPS Park Tiles
* You can visualize your GeoJSON at or inspect the [source for a GeoJSON visualizer](https://github.com/roblabs/geojson) to host on your own site.
```bash
# Pass in the domain of where to open your GeoJSON
geojsonio data/parks.geojson --domain=https://roblabs.com/geojson
```---
[vscode.dev]: "A lightweight version of VS Code running fully in the browser"### About
Created in summer 2024 as a way to teach others how to use GeoJSON, Node, and Visual Studio Code. Use the random tools to generate GeoJSON. Use 'prettier' to format GeoJSON. Methods to convert GeoJSON properties to CSV for further inspection.
หprimษr, noun "an elementary textbook that serves as an introduction to a subject of study or is used for teaching children to read"[๐](#geojson-data)