Description
Use Case ONTO9
Shift up or down 2D or 3D geometry (add to Z coordinates)
As a GeoSPARQL data user I would like to shift up or down a given geometry by adding a number to its Z coordinates. In case of 2D return 3D geometry with a Z coordinate shifted from 0.
Examples: Given 2D geometry and the amount of meters above sea level create 3D geometry at the sea level, below sea level while taking into account local elevation or not. Stack up one 3D solid on top of exactly same one by adding it's height to Z coordinates or bellow it by adding negative value of the height.
Function signature:
addToZ(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 addToZ function is discoverable
Postconditions
A SPARQL query can be executed that includes a function to produce a 3D geometry with Z coordinates increased or decreased by a given value.
The results of the query are known to be true or false in 3D.
Steps
Actor: discovers addToZ function implemented by the system
Actor: executes a SPARQL query containing addToZ 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 increased by a provided value.
Activity