UNPKG
tokml
Version:
latest (0.4.0)
0.4.0
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
0.0.0
convert geojson to kml
github.com/mapbox/tokml
mapbox/tokml
tokml
/
scripts
/
regenerate.js
8 lines
(6 loc)
•
232 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
tokml =
require
(
'../'
), fs =
require
(
'fs'
), glob =
require
(
'glob'
); glob.
sync
(
'test/data/*.geojson'
).
forEach
(
function
(
g
) { fs.
writeFileSync
(g.
replace
(
'.geojson'
,
'.kml'
),
tokml
(
JSON
.
parse
(fs.
readFileSync
(g)))); });