geojson-mapnikify-image

1.0.3 • Public • Published

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_name

Readme

Keywords

Package Sidebar

Install

npm i geojson-mapnikify-image

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

4.43 kB

Total Files

5

Last publish

Collaborators

  • beaorn