Description
Use Case ONTO10
Multiply Z coordinates
As a GeoSPARQL data user I would like to shift up or down a given geometry by multiplying its Z coordinates by a certain value. In case of 2D return 3D geometry with a Z coordinates at 0.
Examples: Place one 3D solid above or bellow exactly same one by multiplying its Z coordinates by a certain value.
Function signature:
multiplyZ(geometry: ogc:geomLiteral, amount: xsd:double): ogc:geomLiteral
Actor: GeoSPARQL data user (human or software agent querying RDF dataset with GeoSPARQL)
Preconditions
Features and Geometries with 3D representations are present in a dataset to be queried. The multiplyZ function is discoverable
Postconditions
A SPARQL query can be executed that includes a function to produce a 3D geometry with Z coordinates multiplied by a given value.
The results of the query are known to be true or false in 3D.
Steps
Actor: discovers multiplyZ function implemented by the system
Actor: executes a SPARQL query containing multiplyZ function with 3D geometry argument and a double argument.
System: returns a SPARQL result with 3D geometry different to the provided 2D or 3D geometry in Z coordinates multiplied by a provided value or set to 0 in case of 2D geometries.
Activity