BR
brycejohnston/geojson-mapnikify-image
Generate a map image from GeoJSON with Mapnik
geojson-mapnikify-image
Leverages geojson-mapnikify and node-mapnik
bindings to take geojson and output a PNG image directly with 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.
geojson-mapnikify-image file.geojson --size 200 --output ./ --filename my_map_nameOn this page
Languages
JavaScript100.0%
Contributors
Latest Release
v1.0.2July 30, 2019Other
Created June 12, 2019
Updated February 3, 2023