geopackage-ts
    Preparing search index...

    Interface Point

    Represents a single point geometry in 2D, 3D, or 4D space.

    Coordinates are stored in a single flat array whose length depends on the dimensionality flags:

    hasZ hasM Layout
    false false [x, y]
    true false [x, y, z]
    false true [x, y, m]
    true true [x, y, z, m]
    const point: Point = {
    type: 'Point',
    hasZ: false,
    hasM: false,
    coordinates: [1.0, 2.0],
    };
    interface Point {
        coordinates: number[];
        hasM: boolean;
        hasZ: boolean;
        type: "Point";
    }
    Index

    Properties

    coordinates: number[]

    The coordinate values of the point as a flat array.

    Array layout: [x, y], [x, y, z], [x, y, m], or [x, y, z, m] depending on the hasZ and hasM flags.

    hasM: boolean

    Whether the geometry includes M (measure) values.

    hasZ: boolean

    Whether the geometry includes Z (elevation/altitude) values.

    type: "Point"

    Discriminant literal identifying this geometry as a Point.