Strabon

annotate examples/teleios/landUseInvalidForFires.rq @ 1426:014379fdddf2

fixed the tests of geof:distance and geof:buffer, that had wrong results due to the
conversion of the resulting geometry to the srid 3857.
The results are validated using PostGIS, where in the case of buffer there are
small differences in the precision.
Moreover, in the case of BufferMetresTest, there was no point in having as distance
1m, because the geometry did not change, so i added 55000 metres instead (about 0.5 degrees).
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Wed Sep 24 17:43:53 2014 +0300 (2014-09-24)
parents d45be7385224
children
rev   line source
kkyzir@536 1 PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#>
kkyzir@536 2 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
kkyzir@536 3 PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
kkyzir@536 4 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
kkyzir@536 5 PREFIX clc: <http://geo.linkedopendata.gr/corine/ontology#>
kkyzir@536 6
charnik@564 7 INSERT {?h noa:isDiscarded "1"^^xsd:int ;
charnik@564 8 noa:refinedBy noa:clcInconsistency .
charnik@564 9 }
kkyzir@536 10 WHERE {
kkyzir@536 11 SELECT ?h WHERE
kkyzir@536 12 {
kkyzir@536 13 ?h noa:hasAcquisitionTime "TIMESTAMP"^^xsd:dateTime ;
kkyzir@536 14 noa:producedFromProcessingChain "PROCESSING_CHAIN"^^xsd:string ;
kkyzir@536 15 noa:isDerivedFromSensor "SENSOR"^^xsd:string ;
kkyzir@536 16 noa:hasGeometry ?hGeo.
kkyzir@536 17 ?a rdf:type clc:ExcludeArea;
kkyzir@536 18 clc:hasGeometry ?aGeo.
ggarbis@862 19 FILTER(strdf:mbbIntersects(?hGeo,?aGeo)).
kkyzir@536 20 }
kkyzir@536 21 GROUP BY ?h ?hGeo
kkyzir@536 22 HAVING strdf:contains(strdf:union(?aGeo),?hGeo)
kkyzir@536 23 }