GitXplorerGitXplorer
j

cgeo-cpak

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
71f5e0a7ca783c33b076a047dd0597046e578d47

API redesign.

jjjrv committed 7 years ago
Unverified
b841e2fa1d7f3c451b46533325689c069327c62b

Initial commit.

jjjrv committed 7 years ago

README

The README file for this repository.

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