Skip to content
chelm edited this page Apr 3, 2013 · 2 revisions

Currently Shapely.js supports:

  • Point

  • Line

  • Polygon

  • Multi* geometry will come eventually

Point

    var point = Shapely.point( [ 0, 0 ] );

Line

    var line = Shapely.line( [ [ 0, 0 ], [ 1, 1 ], [ 2, 2 ], [ 3, 3 ] ] );

Polygon

    var polygon = Shapely.polygon( [ [ 0, 0 ], [ 1, 1 ], [ 2, 2 ], [ 3, 3 ], [ 0, 0 ] ]);

Clone this wiki locally