Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tchak/geojson2png
A simple server to render geojson as png files
https://github.com/tchak/geojson2png
Last synced: about 1 month ago
JSON representation
A simple server to render geojson as png files
- Host: GitHub
- URL: https://github.com/tchak/geojson2png
- Owner: tchak
- License: mit
- Created: 2023-10-13T16:58:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-13T20:08:12.000Z (about 1 year ago)
- Last Synced: 2024-10-03T12:24:13.084Z (2 months ago)
- Language: TypeScript
- Size: 52.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# geojson2png
To install dependencies:
```bash
bun install
```To run:
```bash
GEOJSON2PNG_SECRET_TOKEN="SECRET" bun start
```To use:
```bash
curl --request POST \
--url http://localhost:8080/v1 \
--header 'Authorization: Bearer SECRET' \
--header 'Content-Type: application/json' \
--data '{
"featureCollection": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
2.47312545776367,
48.72845439491962
],
[
2.4759578704834,
48.72955840196789
],
[
2.4759578704834,
48.72955840196789
],
[
2.47715950012207,
48.72771837675469
],
[
2.47308254241943,
48.7276900681486
],
[
2.47312545776367,
48.72845439491962
]
]
]
}
}
]
},
"size": 500,
"fill": "green"
}'
```