The geom module

The geom module provides a provides constructors for point, line, polygon and multi-part geometries.

>> var geom = require("geoscript/geom");

Module Data

The following constants are used in the Geometry.buffer() method to specify the buffer cap style.

geom.BUFFER_CAP_BUTT

Used to calculate butt caps for buffer operations.

geom.BUFFER_CAP_ROUND

Used to calculate round caps for buffer operations.

geom.BUFFER_CAP_SQUARE

Used to calculate square caps for buffer operations.