1.1 - 8.10 - PointInPolygon (ML Engine) - Teradata Vantage

Teradata Vantage™ - Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.1
8.10
Release Date
October 2019
Content Type
Programming Reference
Publication ID
B700-4003-079K
Language
English (United States)

The PointInPolygon function takes a list of location points and a list of polygons and returns a list of binary values for every point and polygon combination, which indicates whether the point is contained in the polygon.


How Machine Learning Engine function PointInPolygon works

The PointInPolygon function works only on 2D spatial objects.

The function determines whether a given point in the plane lies inside or outside of a polygon. It has various applications in many fields such as computer graphics, geographical information systems (GIS), and CAD.

In the following example, point A is in the polygon and point B is outside of the polygon.


Points inside and outside a polygon (Machine Learning Engine function PointInPolygon)

A use case for this function is to determine in which drive-time polygon surrounding a store a customer resides. This information helps in mailer targeting.

Another use case is to determine which cell phones are frequently within a polygon surrounding an airport. This information helps in identifying frequent fliers.