Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis Api - Spatial Join #92

Open
3 tasks
mkeller3 opened this issue Jan 14, 2023 · 0 comments
Open
3 tasks

Analysis Api - Spatial Join #92

mkeller3 opened this issue Jan 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mkeller3
Copy link
Contributor

mkeller3 commented Jan 14, 2023

Description

Allow user to perform spatial join analysis

Example:

WITH join_points AS(
	SELECT points.gid, polygons.name, polygons.state_name, polygons.population
	FROM starbucks AS points
	JOIN counties AS polygons
	ON ST_INTERSECTS(polygons.geom, points.geom)
)
SELECT points.gid, join_points.*
FROM starbucks AS points
LEFT JOIN join_points
ON points.gid = join_points.gid
ORDER BY state_name

Tasks

  • Create spatial_join method in analysis_queries
  • Create endpoint in router for analysis
  • Create Docs
@mkeller3 mkeller3 added the enhancement New feature or request label Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant