https://github.com/brycejohnston/geojson-mapnikify-image
Generate a map image from GeoJSON with Mapnik
https://github.com/brycejohnston/geojson-mapnikify-image
geojson mapnik nodejs png
Last synced: 23 days ago
JSON representation
Generate a map image from GeoJSON with Mapnik
- Host: GitHub
- URL: https://github.com/brycejohnston/geojson-mapnikify-image
- Owner: brycejohnston
- License: other
- Created: 2019-06-12T00:11:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T21:53:47.000Z (about 2 years ago)
- Last Synced: 2025-03-11T06:49:41.953Z (about 2 months ago)
- Topics: geojson, mapnik, nodejs, png
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/geojson-mapnikify-image
- Size: 47.9 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# geojson-mapnikify-image
Leverages [geojson-mapnikify](https://github.com/mapbox/geojson-mapnikify) and [node-mapnik](https://github.com/mapnik/node-mapnik)
bindings to take geojson and output a PNG image directly with [mapnik](https://github.com/mapnik/mapnik).## install
As a dependency:
npm install --save geojson-mapnikify-image
As a binary:
npm install -g geojson-mapnikify-image
## Requirements
geojson-mapnikify assumptions for converting to valid mapnik stylesheet XML:
* GeoJSON is valid, and in EPSG:4326
* Styles, if any, are expressed in simplestyle-spec
* Mapnik **3.x** is the rendering engine## binary
If you install `-g`, you can use `geojson-mapnikify-image` as a binary that takes
a single GeoJSON file, image size, output filepath, and filename (without extension) as arguments and generates a PNG image.```bash
geojson-mapnikify-image file.geojson --size 200 --output ./ --filename my_map_name
```