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

Vector Intersection Process #216

Open
ThorodanBrom opened this issue Oct 25, 2024 · 1 comment
Open

Vector Intersection Process #216

ThorodanBrom opened this issue Oct 25, 2024 · 1 comment

Comments

@ThorodanBrom
Copy link
Collaborator

No description provided.

@ThorodanBrom
Copy link
Collaborator Author

  • To get intersection of collections with a boundary, may have to use both ST_Within and ST_Contains or use one and switch around parameters
  • Question - do we get all features of all chosen collections?
    • This is performance-intensive because lot of GeoJSON data will be sent back
    • UI has to be able to organize the collections into different layers
  • Option 1
    • Have an API/process that works very similar to the /items API, only difference is that it does filtering by ST_Within instead of ST_Intersects nowt
    • Use the normal pagination to get all features + have button to Get More...
    • One collection at a time
  • Option 2
  • Option 3
    • Implement filter-crs in the /items API - which is part of the Features Filter extension and don't specify that we are conforming to filter
  • Option 4
    • UI has to be able to find the correct Z,X,Y tile that fully encompasses the boundary
    • If they find that, they can call a process that can potentially generate an MVT tile using ST_AsMVT that can have all collections as different layers as well in that single tile
    • We can supply only those geometries that we want to have for that tile so no features outside the boundary will be present
    • We can also try to calculate the tile in which a bbox surrounding the boundary can fully fit - https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames - the slippy tiles spec specifies how to find a tile given a point and zoom level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant