An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        


GitHub Repo Source
GitHub
[![vscode.dev](https://img.shields.io/badge/VSCode-.dev-blue)][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)