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

Use Case ONTO24: Translate By Vector #602

Open
ar-chad opened this issue Nov 13, 2024 · 0 comments
Open

Use Case ONTO24: Translate By Vector #602

ar-chad opened this issue Nov 13, 2024 · 0 comments

Comments

@ar-chad
Copy link
Collaborator

ar-chad commented Nov 13, 2024

Use Case ONTO24

Translate By Vector

As a GeoSPARQL data user I would like to translate a geometry coordinates by a vector (x, y, z).

For the POLYGON((0 0 0, 3 0 0, 3 5 0, 0 5 0, 0 0 0)) and the vector (2, 1, 0) the value is POLYGON((2 1 0, 5 1 0, 5 6 0, 2 6 0, 2 1 0)).

Function signature:

vectorTranslate(geometry: ogc:geomLiteral, xsd:double, xsd:double, xsd:double): geometry: ogc:geomLiteral

Actor: GeoSPARQL data user (human or software agent querying RDF dataset with GeoSPARQL)

Preconditions

Features and Geometries with 2D and 3D representations are present in a dataset to be queried. The translate by vector function is discoverable.

Postconditions

A SPARQL query can be executed that includes a function to return geometry with coordinates translated by a vector from a given geometry coordinates. The results of the query are known to be true or false in 2D and 3D.

Steps

Actor: discovers translate by vector function implemented by the system
Actor: executes a SPARQL query containing translate by vector function with a geometry and three double values corresponding to (x y z) translation vector as arguments.
System: returns a SPARQL result with a geometry coordinates translated by a vector from the input geometry.

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

No branches or pull requests

1 participant