prorm API Reference
    Preparing search index...

    Class LINESTRING

    LINESTRING - specific geometry type for lines Shorthand for GEOMETRY('LINESTRING', srid)

    // LineString with default SRID (4326)
    route: DataTypes.LINESTRING()

    // LineString with custom SRID
    route: DataTypes.LINESTRING(4326)

    Hierarchy (View Summary)

    Index
    key: "LINESTRING" = ...
    srid?: number

    SRID (Spatial Reference System Identifier) Default is 4326 (WGS 84)

    • Serialize a value for storage based on this DataType

      Parameters

      • value: unknown

        The value to serialize

      Returns unknown

      The serialized value