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:
│ (10,10) │ Point │
└───────┴───────────────┘
is a simple polygon without holes stored as an array of points: (Point).
Example
Query:
Result:
┌─r─────────────────────────────┬─toTypeName(r)─┐
│ [(0,0),(10,0),(10,10),(0,10)] │ Ring │
Example
This is a polygon with one hole:
Result:
│ [[(20,20),(50,20),(50,50),(20,50)],[(30,30),(50,50),(50,30)]] │ Polygon │
└───────────────────────────────────────────────────────────────┴────────────────┘
MultiPolygon
consists of multiple polygons and is stored as an array of polygons: (Polygon).
Example
Result:
┌─mpg─────────────────────────────────────────────────────────────────────────────────────────────┬─toTypeName(mpg)─┐
└─────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────┘