Skip to content

jjrv/cgeo-wkt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgeo-wkt

npm version

Adds WKT export support to cgeo.

This augments all geometry types (in a TypeScript-friendly way) with a toWKT method returning a string.

Usage

import * as cgeo from 'cgeo';
import 'cgeo-wkt';

const point = new cgeo.Point(12, 34);

console.log(point.toWKT());

License

The MIT License

Copyright (c) 2017 BusFaster Ltd