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

Annotate queries that mention spatial literals. #51

Closed
Aklakan opened this issue Mar 9, 2024 · 0 comments
Closed

Annotate queries that mention spatial literals. #51

Aklakan opened this issue Mar 9, 2024 · 0 comments

Comments

@Aklakan
Copy link
Member

Aklakan commented Mar 9, 2024

LSQ should annotate queries that contain spatial literals with at least a bounding box of the union of those literals.
This would allow browsing queries on a map and seeing which areas they affect.

SELECT  (count(*)  AS ?c)
WHERE
  { GRAPH <http://www.example.org/graph/1>
      { BIND("POLYGON((-78.75 -90, -78.75 -78.75, -67.5 -78.75, -67.5 -90, -78.75 -90))"^^geo:wktLiteral AS ?queryGeom)
        ?feature  spatial:intersectBoxGeom  ( ?queryGeom ) ;
                  geo:hasGeometry       ?featureGeom .
        ?featureGeom  geo:asWKT         ?featureGeomWkt
        FILTER geof:sfIntersects(?featureGeomWkt, ?queryGeom)
      }
  }
Aklakan added a commit that referenced this issue Mar 11, 2024
@Aklakan Aklakan closed this as completed Mar 11, 2024
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