geopackage-ts
    Preparing search index...

    Type Alias Geometry

    Geometry:
        | Point
        | LineString
        | Polygon
        | MultiPoint
        | MultiLineString
        | MultiPolygon
        | GeometryCollection

    Discriminated union of all supported geometry types.

    Use the type property to narrow to a specific geometry interface:

    function describe(geom: Geometry): string {
    switch (geom.type) {
    case 'Point':
    return `Point at (${geom.coordinates[0]}, ${geom.coordinates[1]})`;
    case 'LineString':
    return `LineString with ${geom.coordinates.length / getStride(geom)} vertices`;
    // ... other cases
    }
    }