geom.Point()

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

Create a new point.

Example Use

Sample code to create a new point:

>> var Point = require("geoscript/geom").Point;
>> var point = Point([-180, 90]);
>> point.x;
-180
>> point.y;
90

Properties

In addition to the properties common to all geom.Geometry() subclasses, point geometries have the properties documented below.

Point.x

Number The first coordinate value.

Point.y

Number The second coordinate value.

Point.z

Number The third coordinate value (or NaN if none).

Methods

Point geometries have the methods common to all geom.Geometry() subclasses.