MakeGeoPolygon Script and chart function
MakeGeoPolygon() is used to validate geographic data in JSON and set the appropriate tags on the field. MakeGeoPolygon() confirms the data is an array with lines.
Syntax:
MakeGeoPolygon(geo_data)
Return data type: string
Arguments:
| Argument | Description |
|---|---|
| geo_data |
The source of geographic data. This can be constructed with other geospatial functions, string literals, JSON functions, KML data, or other sources. geo_data is validated and only returns valid data of that type. Any invalid data returns a NULL value instead. |
Tip noteDo not use the Group by clause in the data load editor with this and other non-aggregating geospatial functions, because this will cause an error on load.