Socket
Socket
Sign inDemoInstall

terraformer-wkt-parser

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

terraformer-wkt-parser


Version published
Maintainers
1
Install size
123 kB
Created

Readme

Source

Terraformer Well-Known Text Parser

This package is part of the Terraformer project.

A bare-bones WKT parser. Given a WKT primitive, it parses and returns a Terraformer Primitive.

Installing

$ npm install terraformer-wkt 

Usage

var wkt = require('terraformer-wkt');

var primitive = wkt.parse('LINESTRING (30 10, 10 30, 40 40)');

var polygon = wkt.convert(
  {
    "type": "Polygon",
    "coordinates": [
      [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ],
      [ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2] ]
    ]
  }
);

Keywords

FAQs

Last updated on 08 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc