Strabon

changeset 1257:9ba8e8af9d1a

added tests for construct functions with constants as arguments
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Fri Aug 02 19:35:03 2013 +0300 (2013-08-02)
parents 481d19701e7d
children f55f1c7c41d4
files testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BoundaryWithConstantTest.rq testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BoundaryWithConstantTest.srx testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BufferWithConstantTest.rq testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BufferWithConstantTest.srx testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/UnionWithConstantTest.rq testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/UnionWithConstantTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BoundaryWithConstantTest.rq	Fri Aug 02 19:35:03 2013 +0300
     1.3 @@ -0,0 +1,5 @@
     1.4 +select (strdf:boundary("POLYGON((0 0, 1 0, 1 1, 0 1, 0 0));http://www.opengis.net/def/crs/EPSG/0/2100"^^<http://strdf.di.uoa.gr/ontology#WKT>) as ?boundary)
     1.5 +where
     1.6 +{
     1.7 +ex:A ex:hasGeometry ?g.
     1.8 +}
     1.9 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BoundaryWithConstantTest.srx	Fri Aug 02 19:35:03 2013 +0300
     2.3 @@ -0,0 +1,13 @@
     2.4 +<?xml version='1.0' encoding='UTF-8'?>
     2.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     2.6 +	<head>
     2.7 +		<variable name='boundary'/>
     2.8 +	</head>
     2.9 +	<results>
    2.10 +		<result>
    2.11 +			<binding name='boundary'>
    2.12 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>LINESTRING (0 0, 1 0, 1 1, 0 1, 0 0);http://www.opengis.net/def/crs/EPSG/0/2100</literal>
    2.13 +			</binding>
    2.14 +		</result>
    2.15 +	</results>
    2.16 +</sparql>
    2.17 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BufferWithConstantTest.rq	Fri Aug 02 19:35:03 2013 +0300
     3.3 @@ -0,0 +1,5 @@
     3.4 +select (strdf:buffer("POLYGON((0 0, 1 0, 1 1, 0 1, 0 0));http://www.opengis.net/def/crs/EPSG/0/2100"^^<http://strdf.di.uoa.gr/ontology#WKT>, 1, ogc:degree) as ?buffer)
     3.5 +where
     3.6 +{
     3.7 +ex:A ex:hasGeometry ?g.
     3.8 +}
     3.9 \ No newline at end of file
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/BufferWithConstantTest.srx	Fri Aug 02 19:35:03 2013 +0300
     4.3 @@ -0,0 +1,13 @@
     4.4 +<?xml version='1.0' encoding='UTF-8'?>
     4.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     4.6 +	<head>
     4.7 +		<variable name='buffer'/>
     4.8 +	</head>
     4.9 +	<results>
    4.10 +		<result>
    4.11 +			<binding name='buffer'>
    4.12 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>POLYGON ((18.51248908676886 0.0022304072306898, 18.512489086768802 0.0022394268391313, 18.531703805007 0.1973297483274672, 18.5886095513394 0.3849228584614706, 18.681019469862246 0.5578096592705463, 18.80538229925464 0.7093462080002653, 18.956918845758608 0.8337090401047385, 19.129805644913805 0.9261189617217735, 19.317398754029355 0.983024711411565, 19.512489075173807 1.0022394331413353, 19.51249803440009 1.0022394331414393, 19.7075883572879 0.9830247156776696, 19.89518146887027 0.9261189695835728, 20.0680682710241 0.833709050783125, 20.219604820854016 0.7093462206556026, 20.343967653693618 0.5578096730514313, 20.436377575588256 0.3849228725514822, 20.493283325039744 0.1973297619875636, 20.512498045995084 0.002239439443644, 20.51249804599514 0.0022304198350916, 20.493283327453618 -0.1928599031781553, 20.436377580234563 -0.3804530146601173, 20.34396766031032 -0.5533398164745945, 20.21960482911171 -0.7048763657236403, 20.06806828054155 -0.8292391977494786, 19.895181479231532 -0.9216491186174952, 19.707588368060215 -0.9785548668606079, 19.512498045151858 -0.9977695864671131, 19.512489085925576 -0.9977695864671056, 19.317398764801673 -0.9785548668800716, 19.12980565527507 -0.9216491193392968, 18.956918855276065 -0.8292391997898305, 18.805382307512332 -0.7048763695836736, 18.681019476478948 -0.5533398224988286, 18.588609555985705 -0.3804530230042807, 18.531703807420875 -0.1928599137883199, 18.51248908676886 0.0022304072306898));http://www.opengis.net/def/crs/EPSG/0/2100</literal>
    4.13 +			</binding>
    4.14 +		</result>
    4.15 +	</results>
    4.16 +</sparql>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/UnionWithConstantTest.rq	Fri Aug 02 19:35:03 2013 +0300
     5.3 @@ -0,0 +1,5 @@
     5.4 +select (strdf:union("POLYGON((0 0, 1 0, 1 1, 0 1, 0 0));http://www.opengis.net/def/crs/EPSG/0/2100"^^<http://strdf.di.uoa.gr/ontology#WKT>, "POLYGON((1 0, 2 0, 2 1, 1 2, 1 0));http://www.opengis.net/def/crs/EPSG/0/2100"^^<http://strdf.di.uoa.gr/ontology#WKT>) as ?buffer)
     5.5 +where
     5.6 +{
     5.7 +ex:A ex:hasGeometry ?g.
     5.8 +}
     5.9 \ No newline at end of file
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/testsuite/src/test/resources/stSPARQL/SpatialAnalysisFunctionsTest/UnionWithConstantTest.srx	Fri Aug 02 19:35:03 2013 +0300
     6.3 @@ -0,0 +1,13 @@
     6.4 +<?xml version='1.0' encoding='UTF-8'?>
     6.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     6.6 +	<head>
     6.7 +		<variable name='buffer'/>
     6.8 +	</head>
     6.9 +	<results>
    6.10 +		<result>
    6.11 +			<binding name='buffer'>
    6.12 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>POLYGON ((1 0, 0 0, 0 1, 1 1, 1 2, 2 1, 2 0, 1 0));http://www.opengis.net/def/crs/EPSG/0/2100</literal>
    6.13 +			</binding>
    6.14 +		</result>
    6.15 +	</results>
    6.16 +</sparql>
    6.17 \ No newline at end of file