prorm API Reference
    Preparing search index...

    Class POLYGON

    POLYGON - specific geometry type for polygons Shorthand for GEOMETRY('POLYGON', srid)

    // Polygon with default SRID (4326)
    boundary: DataTypes.POLYGON()

    // Polygon with custom SRID
    boundary: DataTypes.POLYGON(4326)

    Hierarchy (View Summary)

    Index
    key: "POLYGON" = ...
    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