grunt-togeojson

Grunt task for converting KML and GPX files to GeoJSON

npm install grunt-togeojson
4 downloads in the last month

grunt-togeojson

Grunt task for converting KML and GPX files to GeoJSON

Build Status

Getting Started

This plugin requires Grunt ~0.4.1, and toGeoJSON ~0.3.0 and jsdom ~0.8.6 .

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-togeojson --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-togeojson');

The "togeojson" task

Overview

In your project's Gruntfile, add a section named togeojson to the data object passed into grunt.initConfig().

Configure the files list as decribed in the multi task section of Grunt documentation.

grunt.initConfig({
  togeojson: {
    maps: {
      files: {
        // Target-specific file lists and/or options go here.
      }
    }
  }
})

Options

There are no options.

Conversion will use the same basename of the source file for the destination file.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • 2013-09-30 v0.1.0 Initial release
npm loves you