kml-to-geojson
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

kml-to-geojson

Convert KML content to GeoJSON, preserving style and folder data

Installation

npm install kml-to-geojson

This project was built in Typescript, so typing is supported out of the box

Usage

import { KmlToGeojson } from 'kml-to-geojson';
import * as fs from 'fs';

const kmlToGeojson = new KmlToGeojson();
const kmlContent = fs.readFileSync('./my-file.kml', 'utf-8');


const { folders, geojson } = kmlToGeojson.parse(kmlContent);

Readme

Keywords

none

Package Sidebar

Install

npm i kml-to-geojson

Weekly Downloads

135

Version

1.0.13

License

MIT

Unpacked Size

28.4 kB

Total Files

6

Last publish

Collaborators

  • kylerummens