0.7.2 • Published 9 years ago
geojson-mapnikify v0.7.2
geojson-mapnikify
Transform GeoJSON objects into Mapnik XML stylesheets with embedded GeoJSON data and simplestyle-spec-derived styles.
install
As a dependency:
npm install --save geojson-mapnikifyAs a binary:
npm install -g geojson-mapnikifyapi
Assumptions:
- 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 as a binary that takes
a single GeoJSON file as an argument and writes a Mapnik XML stylesheet
to stdout.
$ geojson-mapnikify test/data/point-retina.geojson > stylesheet.xml
$ geojson-mapnikify test/data/point-retina.geojson retina > stylesheet-retina.xmlmapnikify(geojson, retina, callback)
Transform GeoJSON into Mapnik XML.
geojsonis a GeoJSON object.retinais true or false for whether the style should be optimized for 2x rendering.callbackcalled with(err, xml)where xml is a string
0.7.2
9 years ago
0.7.1
10 years ago
0.7.0
10 years ago
0.6.1
10 years ago
0.6.0
10 years ago
0.5.1
10 years ago
0.5.0
10 years ago
0.4.3
11 years ago
0.4.2
11 years ago
0.4.1
11 years ago
0.4.0
11 years ago
0.3.1
11 years ago
0.3.0
11 years ago
0.2.0
11 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago
0.0.6
12 years ago
0.0.5
12 years ago
0.0.4
12 years ago
0.0.3
12 years ago
0.0.2
12 years ago
0.0.1
12 years ago
0.0.0
12 years ago
