geom.MultiPoint()

class geom.MultiPoint(coords)
Arguments
  • coords (Array) – Coordinates array.

Create a new multi-point geometry. The items in the coords array may be point coordinates or geom.Point() objects.

Example Use

Sample code to new multi-point:

>> var {Point, MultiPoint} = require("geoscript/geom");
>> var p1 = Point([-180, 90]);
>> var p2 = Point([-45, 45]);
>> var mp = MultiPoint([p1, p2]);

Alternate method to create the same geometry as above:

>> var mp = MultiPoint([
..   [-180, 90], [-45, 45]
.. ]);

Properties

Multi-polygon geometries have the properties common to all geom.GeometryCollection() subclasses.

Methods

Multi-polygon geometries have the methods common to all geom.GeometryCollection() subclasses.