Skip to content

Commit

Permalink
Merge pull request #159 from opengeospatial/matperry_fix_examples_iss…
Browse files Browse the repository at this point in the history
…ue_29

Issue 29: fix examples in Appendix B
  • Loading branch information
nicholascar committed Jun 15, 2021
2 parents 553384c + 76a1959 commit 7ac4209
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions 1.1/spec/17-Annex-B.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ my:DPointGeom a sf:Point ;

my:EExactGeom a sf:LineString ;
geo:asWKT """<http://www.opengis.net/def/crs/OGC/1.3/CRS84>
LineString((-83.4 34.0, -83.3 34.3))"""^^geo:wktLiteral.
LineString(-83.4 34.0, -83.3 34.3)"""^^geo:wktLiteral.

my:FExactGeom a sf:Point ;
geo:asWKT """<http://www.opengis.net/def/crs/OGC/1.3/CRS84>
Expand Down Expand Up @@ -644,7 +644,7 @@ WHERE {
?fGeom geo:asWKT ?fWKT .
my:A my:hasExactGeometry ?aGeom .
?aGeom geo:asWKT ?aWKT .
?my:D my:hasExactGeometry ?dGeom .
my:D my:hasExactGeometry ?dGeom .
?dGeom geo:asWKT ?dWKT .
FILTER (
geof:sfTouches(
Expand Down Expand Up @@ -697,14 +697,14 @@ LIMIT 3

```sparql
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/geosparql/function>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>

SELECT ?minX ?minY ?minZ ?maxX ?maxY ?maxZ
WHERE {
BIND ("<http://www.opengis.net/def/crs/OGC/1.3/CRS84>
Polygon Z((-83.4 34.0 0, -83.1 34.0 1,
-83.1 34.2 1, -83.4 34.2 1,
-83.4 34.0 0))"^^geo:wktLiteral") AS ?testgeom)
-83.4 34.0 0))"^^geo:wktLiteral) AS ?testgeom)
BIND(geof:minX(?testgeom) AS ?minX)
BIND(geof:maxX(?testgeom) AS ?maxX)
BIND(geof:minY(?testgeom) AS ?minY)
Expand Down Expand Up @@ -773,13 +773,10 @@ WHERE {
}
UNION
{ # geometry – geometry
?f geo:hasDefaultGeometry ?fGeom .
?fGeom geo:asWKT ?fSerial .
my:A geo:hasDefaultGeometry ?aGeom .
?aGeom geo:asWKT ?aSerial .
?f geo:asWKT ?fSerial .
my:A geo:asWKT ?aSerial .
FILTER (geof:sfOverlaps(?fSerial, ?aSerial))
}
}
```

*Result*:
Expand Down

0 comments on commit 7ac4209

Please sign in to comment.