Skip to content

jjrv/cgeo-cpak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgeo-cpak

npm version

Adds cpak export support to cgeo.

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

Additionally, the static method Geometry.fromCpak takes a string and returns the appropriate geometry object.

Usage

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

const geom = Geometry.fromCpak('');

console.log(geom.toWKT());

License

The MIT License

Copyright (c) 2017 BusFaster Ltd

About

cpak export for cgeo types

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published