Geo Data Types

    Warning

    Currently geo data types are an experimental feature. To work with them you must set .

    See Also
    - Representing simple geographical features.
    - setting.

    Point is represented by its X and Y coordinates, stored as a Tuple(, Float64).

    Example

    Result:

    1. (10,10) Point
    2. └───────┴───────────────┘

    is a simple polygon without holes stored as an array of points: (Point).

    Example

    Query:

    Result:

    1. ┌─r─────────────────────────────┬─toTypeName(r)─┐
    2. [(0,0),(10,0),(10,10),(0,10)] Ring

    Example

    This is a polygon with one hole:

    Result:

    1. [[(20,20),(50,20),(50,50),(20,50)],[(30,30),(50,50),(50,30)]] Polygon
    2. └───────────────────────────────────────────────────────────────┴────────────────┘

    MultiPolygon consists of multiple polygons and is stored as an array of polygons: (Polygon).

    Example

    Result:

    1. ┌─mpg─────────────────────────────────────────────────────────────────────────────────────────────┬─toTypeName(mpg)─┐
    2. └─────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────┘