After reading the reference I'ver found out that the Polygon
function expects it's parameters to be of type LineString
. The correct example is:
SELECT
Contains
(
Polygon
(
LineString
(
Point(55.538322,37.332026),
Point(55.566347,37.875850),
Point(55.898002,37.873103),
Point(55.896459,37.381465),
Point(55.538322,37.332026)
)
),
Point(55.737177,37.623164)
)