GEOLYTIX / xyz

An open source javascript framework for spatial data and application interfaces.
MIT License
86 stars 25 forks source link

Add query to count number of points within a polygon #1271

Closed simon-leech closed 1 month ago

simon-leech commented 1 month ago

Adds a new template query for counting the number of locations that intersect a geometry.

Example set up here -

"infoj": [
  {
      "title": "Points in the Polygon",
      "inline": true,
      "field": "count",
      "query": "st_count_intersects",
      "queryparams": {
        "id": true,
        "qID": true,
        "table": true,
        "geom": "geom_4326",
        "table_b": "schema.table_name",
        "geom_b": "geom_p_4326"
      },
      "run": true
    }
]

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud