Qlik Community

Qlik GeoAnalytics Discussions

Discussion Board for collaboration regarding Qlik GeoAnalytics.

Highlighted
Partner
Partner

is a point inside the geometry?

Hello,

I have to determinate if a point (x,y) is inside a geometry (polygon, multi-polygon).

Is there a script and/or char function?

 

Thank you

Riccardo

Riccardo Schillaci
BI Technical Analyst
Datawarehouse & Business Intelligence
Labels (4)
1 Reply
Employee
Employee

Re: is a point inside the geometry?

Yes, that is the QGA connector operation "Within". Ref manual here:

https://help.qlik.com/en-US/geoanalytics/Subsystems/GeoConnector/Content/connector/connector-geoanal...

Within

There is a relation between enclosed and enclosing if enclosed is completely inside the enclosing area. Returns a table which maps between the key in enclosed and the key in enclosing for all found relations. The field names in the returned table will be the same as for the key field in enclosed and enclosing datasets respectively.

Use within typically for finding which areas the data is in. For example to test GPS-position for which administrative area they are in. This is a kind of reverse geocoding.

Parameter Type Use Description
Dataset to test withing on Dataset   A dataset with geometries to test for which areas they are enclosed by.
Area dataset Dataset   A dataset with area geometries to test for which geometries they enclose.

 

Example here:

https://community.qlik.com/t5/Qlik-GeoAnalytics-Documents/Connector-Examples-Qlik-GeoAnalytics/ta-p/...