Have ideas to improve npm?Join in the discussion! »

    geojson2wkt

    1.0.0 • Public • Published

    Geojson2Wkt

    Node module to convert GeoJSON geometry objects or string representations into WKT format.

    Usage

    Import the module:

    var Geojson2wkt = require('Geojson2Wkt'); 
    

    Parse a GeoJSON object

    Geojson2wkt.convert({"type": "Point", "coordinates": [102.0, 0.5]}); // -- 'POINT(102 0.5)'
    

    Or parse a string representation of a GeoJson object. The method automatically parses the string into an object.

    Geojson2wkt.convert('{"type": "Point", "coordinates": [102.0, 0.5]}'); // -- 'POINT(102 0.5)'
    

    Roadmap

    • documentation
    • Extend convert method to support
      • GeometryCollection
      • Polygons with holes

    Keywords

    Install

    npm i geojson2wkt

    DownloadsWeekly Downloads

    26

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar