These functions are used to handle geospatial data in map visualizations. Qlik Sense follows GeoJSON specifications for geospatial data and supports the following:
For more information on GeoJSON specifications, see:
There are two categories of geospatial functions: aggregation and non-aggregation.
Aggregation functions take a geometry set (points or areas) as input, and return a single geometry. For example, multiple areas can be merged together, and a single boundary for the aggregation can be drawn on the map.
Non-aggregation function take a sinlge geometry and return one geometry. For example, for the function
The following are aggregation functions:
GeoAggrGeometry() is used to aggregate a number of areas into a larger area, for example aggregating a number of sub-regions to a region.
GeoBoundingBox() is used to aggregate a geometry into an area and calculate the smallest bounding box that contains all coordinates.
GeoCountVertex() is used to find the number of vertices a polygon geometry contains.
GeoInvProjectGeometry() is used to aggregate a geometry into an area and apply the inverse of a projection.
GeoProjectGeometry() is used to aggregate a geometry into an area and apply a projection.
GeoReduceGeometry() is used to reduce the number of vertices of a geometry, and to aggregate a number of areas into one area, but still displaying the boundary lines from the individual areas.
The following are non-aggregation functions:
GeoGetBoundingBox() is used in scripts and chart expressions to calculate the smallest geospatial bounding box that contains all coordinates of a geometry.
GeoGetPolygonCenter() is used in scripts and chart expressions to calculate and return the center point of a geometry.
GeoMakePoint() is used in scripts and chart expressions to create and tag a point with latitude and longitude.
GeoProject() is used in scripts and chart expressions to apply a projection to a geometry.