Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdehaan/gulp-geojson
Using gulp to convert multi-geo file format to geojson.
https://github.com/pdehaan/gulp-geojson
Last synced: 15 days ago
JSON representation
Using gulp to convert multi-geo file format to geojson.
- Host: GitHub
- URL: https://github.com/pdehaan/gulp-geojson
- Owner: pdehaan
- Created: 2014-03-04T01:28:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-04T01:31:18.000Z (almost 11 years ago)
- Last Synced: 2024-10-31T13:13:47.677Z (2 months ago)
- Language: JavaScript
- Size: 354 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-geojson
[![Build Status](https://travis-ci.org/DataGarage/gulp-geojson.png?branch=master)](https://travis-ci.org/DataGarage/gulp-geojson)
Converting multipule geo file format to geojson using gulp.
## Install
```
npm install --save-dev gulp-geojson
```## Support
- kml
- csv
- tsv
- topojson
- gpx## Example
```js
var gulp = require('gulp');
var geojson = require('./');
var rename = require('gulp-rename');// kml
gulp.task('kml', function () {
gulp.src('sample/data/*.kml')
.pipe(geojson())
.pipe(rename({extname: '.geojson'}))
.pipe(gulp.dest('./sample/dist'));
});// csv
gulp.task('csv', function () {
gulp.src('sample/data/*.csv')
.pipe(geojson())
.pipe(rename({extname: '.geojson'}))
.pipe(gulp.dest('./sample/dist'));
});// tsv
gulp.task('tsv', function () {
gulp.src('sample/data/*.tsv')
.pipe(geojson())
.pipe(rename({extname: '.geojson'}))
.pipe(gulp.dest('./sample/dist'));
});// gpx
gulp.task('gpx', function () {
gulp.src('sample/data/*.gpx')
.pipe(geojson())
.pipe(rename({extname: '.geojson'}))
.pipe(gulp.dest('./sample/dist'));
});// topojson
gulp.task('topojson', function () {
gulp.src('sample/data/*.topojson')
.pipe(geojson())
.pipe(rename({extname: '.geojson'}))
.pipe(gulp.dest('./sample/dist'));
});gulp.task('default', ['kml','csv','tsv','gpx','topojson']);
```## API
### geojson()
```
geojson()
```## License
MIT [@chilijung](http://github.com/chilijung)