Dear Wiki user, You have subscribed to a wiki page or wiki category on "Marmotta Wiki" for change notification.
The "MARMOTTA-584/UserDocumentation" page has been changed by Francisco Sumba: https://wiki.apache.org/marmotta/MARMOTTA-584/UserDocumentation?action=diff&rev1=10&rev2=11 PREFIX geof: <http://www.opengis.net/def/function/geosparql/> PREFIX units: <http://www.opengis.net/def/uom/OGC/1.0/> - SELECT DISTINCT ?provinceA ?wktA (geof:buffer(?wktA, 2, units:meter) as ?buffer) + SELECT DISTINCT ?municipio ?wkt (geof:buffer(?wkt, 100, units:metre) as ?buffer) WHERE { ?subject a <http://geo.marmotta.es/ontology#municipio>. - ?subject rdfs:label ?provinceA. + ?subject rdfs:label ?municipio. ?subject rdfs:label "Ruanes" @es. ?subject geoes:hasExactGeometry ?geo. - ?geo geo:asWKT ?wktA. + ?geo geo:asWKT ?wkt. } }}} + + As result of this query we get a geometric object with a radio of 100 meters of Ruanes town. In graphics you can see [[ https://en.wikipedia.org/wiki/Well-known_text#Geometric_Objects| WKT (Well Known text)]] drawn in openlayers. + + || '''''?wkt'''''|| '''''?buffer''''' || '''''comparison''''' || + || {{attachment:buffer_wkt.png|?wkt|width=200}} || {{attachment:buffer_buffer.png|?buffer|width=200}} || {{attachment:buffer_result.png|comparison|width=200}} || === Convex Hull === This function returns a geometric object that represents all Points in the convex hull of geom1. Calculations are in the spatial reference system of geom1. @@ -426, +431 @@ || '''''?wkt'''''|| '''''?wkt2''''' || '''''?difference''''' || || {{attachment:difference_wkt.png|?wkt|width=200}} || {{attachment:difference_wkt2.png|?wkt2 |width=200}} || {{attachment:difference_difference.png|?difference |width=200}} || + === Distance === Returns the shortest distance in units between any two Points in the two geometric objects as calculated in the spatial reference system of geom1.
