Nerds Publishing Monstrosities

    parse2-kmz

    1.0.7 • Public • Published

    parse2-kmz

    This version is an update to the parse-kmz package where there was an error in the unzip package causing conflict when parsearing the geoJSON

    Installation

    Simplest way to install parse2-kmz is to use npm, just npm install parse2-kmz which will download parse-kmz and all dependencies.

    Usage

    const parseKMZ = require("parse2-kmz");
    // KMZ To KML From URL
    parseKMZ
      .toKML("http://iblogbox.github.io/js/gpx/sample/Tour_de_France.kmz")
      .then(console.log)
      .catch(console.error);
    
    // KMZ To KML From File
    parseKMZ.toKML("./file/kmx.kmz").then(console.log).catch(console.error);
    
    // KMZ To JSON From URL
    parseKMZ
      .toJson("http://iblogbox.github.io/js/gpx/sample/Tour_de_France.kmz")
      .then(console.log)
      .catch(console.error);
    
    // KMZ To JSON From File
    parseKMZ.toJson("./file/kmx.kmz").then(console.log).catch(console.error);

    But if you know you really found a bug, feel free to open an issue instead.

    Install

    npm i parse2-kmz

    DownloadsWeekly Downloads

    237

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    411 kB

    Total Files

    6

    Last publish

    Collaborators

    • victorlessa