Strabon

view testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/BufferMetresTest.srx @ 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 00fab406f0d6
children
line source
1 <?xml version='1.0' encoding='UTF-8'?>
2 <sparql xmlns='http://www.w3.org/2005/sparql-results#'>
3 <head>
4 <variable name='buffer'/>
5 </head>
6 <results>
7 <result>
8 <binding name='buffer'>
9 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((-0.4934708114101906 0.0002271482510326, -0.4935456666610935 0.9997354110552062, -0.4841242080938577 1.0966562144099703, -0.4561026436245716 1.1898680102152706, -0.410553282208809 1.2757915623756033, -0.3492211177193835 1.3511257905672007, -0.2744578710669827 1.4129743293759003, -0.189132690513658 1.4589569753168727, -0.0965227155210549 1.4873016992022086, -0.0001875476607689 1.4969135657184365, 1.0000005263956748 1.4972948311226395, 1.0963777175974405 1.4877569202889709, 1.1890585425068627 1.4594785703123097, 1.2744794985893708 1.4135441629688796, 1.3493560257516437 1.3517175238918997, 1.410809252687709 1.276374090288751, 1.4564769416938732 1.1904094168864645, 1.4846043450167032 1.0971276177803917, 1.4941115222050074 1.0001141053741225, 1.4940366699842065 -0.0001515846426103, 1.4845148499495897 -0.0971732816950403, 1.45637425712857 -0.1904595893247133, 1.4106969222243664 -0.276424680124105, 1.349239222062513 -0.3517644619740744, 1.2743643466001149 -0.4135837598507727, 1.1889513390225168 -0.4595077592752931, 1.0962841717199516 -0.4877733722771482, 0.9999251377504871 -0.4972969509773938, -0.0001121792622424 -0.4969155655191135, -0.0964291849610737 -0.4873180132960953, -0.1890254994213698 -0.4589860143111308, -0.2743427298855454 -0.4130137728760041, -0.3491043235517613 -0.3511725821191289, -0.4104409593229888 -0.2758420227997601, -0.4559999636040494 -0.1899180790198089, -0.4840347137423852 -0.09670180619879, -0.4934708114101906 0.0002271482510326))</literal>
10 </binding>
11 </result>
12 <result>
13 <binding name='buffer'>
14 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((-0.4934706567399499 0.0004542622593026, -0.4937701920076767 1.9994709087683613, -0.4844027181429565 2.0963966526101903, -0.4564228368465431 2.1896245606854228, -0.4108998788779539 2.2755743284921475, -0.3495768989567895 2.35094319423577, -0.2748049335458116 2.412832664985624, -0.1894537787095414 2.458860166617276, -0.0968024822664599 2.487251268835251, -0.0004136032789173 2.4969088004383324, 2.000264185958585 2.49751830039762, 2.0967088525706234 2.4879214379969645, 2.189441021014613 2.4595876668365992, 2.2748968325330634 2.413604712617372, 2.34979275888062 2.3517388498252805, 2.4112521642206497 2.2763667697122636, 2.4569158995497915 2.19038391975501, 2.4850326894360593 2.0970929426303413, 2.4945259262183512 2.0000765842733847, 2.494226589085509 -0.000151572974658, 2.4847032560005826 -0.0972035047325681, 2.4565578437853786 -0.190520528844268, 2.410871643962594 -0.2765170278107154, 2.3493999913943084 -0.3518886307888129, 2.274504981995999 -0.4137392647593552, 2.189064803278674 -0.4596925831015758, 2.0963630914606846 -0.4879834405504209, 1.9999625460532446 -0.4975258277919249, -0.0001121792622424 -0.4969155655191134, -0.0964568514297702 -0.4873124574013823, -0.1890776093582916 -0.458964246924041, -0.2744130565819016 -0.4129663980252777, -0.3491840405564219 -0.3510922166944947, -0.4105192164054043 -0.2757239320069514, -0.4560646030431 -0.1897606566806234, -0.4840730878443185 -0.0965068706716664, -0.4934706567399499 0.0004542622593026))</literal>
15 </binding>
16 </result>
17 <result>
18 <binding name='buffer'>
19 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((0.5060381924209781 1.000113997915035, 0.505813655632483 1.9997736369244767, 0.5152426136792002 2.0967451692387096, 0.5432871523608308 2.1900067120756517, 0.5888753697625193 2.2759780469621935, 0.6502616772220519 2.3513572056348604, 0.7250927972409914 2.4132472098007756, 0.8104972505104089 2.4592676272600165, 0.9031950923816323 2.487646594767676, 0.9996238020586696 2.4972896406655662, 3.0003014435397177 2.4975944362251004, 3.096776518334607 2.4879780301286503, 3.1895311210690194 2.4596169273863406, 3.2750000753993533 2.4136017143300217, 3.349899459993322 2.351701516702786, 3.4113530237871172 2.2762955903181417, 3.457002559826935 2.1902814769292425, 3.485098042318725 2.0969633693538547, 3.4945641882338605 1.9999250523240422, 3.494339725680029 0.999962537120769, 3.484824130621445 0.9028717603326814, 3.45667296608698 0.8095154378948406, 3.410969030393131 0.7234816260507345, 3.3494692318336763 0.6480770781286758, 3.2745372650742524 0.5862002483909361, 3.1890530098097924 0.5402298570368103, 3.0963020349827244 0.5119333249148786, 2.999849391712009 0.5023986600769961, 1.0000756930162298 0.5027037437551442, 0.9036694298965092 0.512265093580472, 0.8109752387240544 0.540579519651579, 0.7255555152535794 0.5865551215350016, 0.6506918501688285 0.6484217367488734, 0.5892593480786775 0.723799468498733, 0.5436167694651722 0.8097904299327032, 0.5155165801383599 0.9030900998027467, 0.5060381924209781 1.000113997915035))</literal>
20 </binding>
21 </result>
22 <result>
23 <binding name='buffer'>
24 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((2.505660274319971 0.9999625371207693, 2.5054358117661395 1.9999250523240422, 2.514905626142041 2.0969819592913836, 2.5430118450021153 2.1903165032273937, 2.5886783573996213 2.2763428810163244, 2.650153808314832 2.3517551496016385, 2.7250782367872857 2.413654401738775, 2.8105733151876113 2.459660496836502, 2.9033528458296165 2.488003974932592, 2.999849313165722 2.4975945055353352, 4.000188132413319 2.4975183009353223, 4.096676195517416 2.4879129693190603, 4.189441549509623 2.4595562065145153, 4.2749174603633495 2.4135404548675763, 4.349819216706593 2.351636815929412, 4.4112704381472225 2.2762263840443318, 4.456913269676148 2.190208228650599, 4.484998309175389 2.0968876856626157, 4.494450973349105 1.999849322156218, 4.494226509024875 1.0000382904812943, 4.484729904818083 0.9029753727932949, 4.456605292783763 0.8096412864688206, 4.410933527317735 0.7236218400122066, 4.349468897859102 0.6482223029664494, 4.274572116090395 0.5863406087146761, 4.1891200774041435 0.5403559896922157, 4.096395728293762 0.5120373431116666, 3.9999621710058166 0.5024749193699874, 3.0000752866705103 0.502398642751658, 2.903633322208444 0.511946254761696, 2.810894794711294 0.5402516093754741, 2.725423587547454 0.5862265697897175, 2.6505041328962324 0.6481038813437343, 2.5890152728116647 0.7235052653566969, 2.543319824667216 0.8095329496722874, 2.515174030978355 0.9028810558464934, 2.505660274319971 0.9999625371207693))</literal>
25 </binding>
26 </result>
27 <result>
28 <binding name='buffer'>
29 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((2.505660274319971 0.9999625371207693, 2.5054358117661395 1.9999250523240422, 2.514905626142041 2.0969819592913836, 2.5430118450021153 2.1903165032273937, 2.5886783573996213 2.2763428810163244, 2.650153808314832 2.3517551496016385, 2.7250782367872857 2.413654401738775, 2.8105733151876113 2.459660496836502, 2.9033528458296165 2.488003974932592, 2.999849313165722 2.4975945055353352, 4.000188132413319 2.4975183009353223, 4.096676195517416 2.4879129693190603, 4.189441549509623 2.4595562065145153, 4.2749174603633495 2.4135404548675763, 4.349819216706593 2.351636815929412, 4.4112704381472225 2.2762263840443318, 4.456913269676148 2.190208228650599, 4.484998309175389 2.0968876856626157, 4.494450973349105 1.999849322156218, 4.494226509024875 1.0000382904812943, 4.484729904818083 0.9029753727932949, 4.456605292783763 0.8096412864688206, 4.410933527317735 0.7236218400122066, 4.349468897859102 0.6482223029664494, 4.274572116090395 0.5863406087146761, 4.1891200774041435 0.5403559896922157, 4.096395728293762 0.5120373431116666, 3.9999621710058166 0.5024749193699874, 3.0000752866705103 0.502398642751658, 2.903633322208444 0.511946254761696, 2.810894794711294 0.5402516093754741, 2.725423587547454 0.5862265697897175, 2.6505041328962324 0.6481038813437343, 2.5890152728116647 0.7235052653566969, 2.543319824667216 0.8095329496722874, 2.515174030978355 0.9028810558464934, 2.505660274319971 0.9999625371207693))</literal>
30 </binding>
31 </result>
32 <result>
33 <binding name='buffer'>
34 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((4.441397579310631 0.2236689949754997, 4.476253496430849 0.1326861847305157, 4.4928121842578195 0.0366075250054787, 4.490438388824665 -0.060877008926872, 4.469223173737631 -0.1560236126689771, 4.429980459506286 -0.245178001124344, 4.37421607469027 -0.3249153972668052, 4.304070417196624 -0.3921718883698105, 4.222236785549133 -0.4443621564248297, 4.131858365352413 -0.4794790473531218, 4.036407711775401 -0.4961710818902606, 3.9395533095486415 -0.4937948225088334, 3.8450183670331657 -0.472439973775908, 3.756437363468368 -0.4329261699884899, 3.677215985333219 -0.3767715413585866, 3.6103999468008334 -0.3061342876486996, 3.558557802248454 -0.22372956502612, 2.5583049501208333 1.776209060166941, 2.523391233793181 1.8672059872592661, 2.5067876924572876 1.9633072261989055, 2.5091349757482155 2.0608209083907725, 2.5303462608660063 2.15600035905891, 2.5696100601026726 2.2451878219691808, 2.6254207284696633 2.324954917400893, 2.6956356430808084 2.3922344915439715, 2.777557024158427 2.4444387912222076, 2.8680353969341588 2.479559362764822, 2.9635907947457722 2.496244729123141, 3.060547028002909 2.493852735269546, 3.1551737475063177 2.4724754431804574, 3.243830664123788 2.432935561852698, 3.323108183951678 2.376754558123565, 3.3899588887411607 2.306093746228953, 3.44181471918722 2.223670734837559, 4.441397579310631 0.2236689949754997))</literal>
35 </binding>
36 </result>
37 <result>
38 <binding name='buffer'>
39 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((1.4941114760448242 1.0002656895689852, 1.48465844334401 0.903218354188106, 1.4565755318987466 0.8098939913478284, 1.4109443469372922 0.7238808269756556, 1.3495210882390627 0.6484854034084169, 1.274668858224344 0.586605357299263, 1.1892666214643333 0.5406179599460267, 1.096598290177959 0.5122887429186055, 1.0002262089672516 0.502703767092398, 0.9038539554115113 0.5122281697183206, 0.8111838169875689 0.5404925778504197, 0.7257745149580362 0.5864078568477391, 0.6509047062558502 0.6482075283605179, 0.5894475111710343 0.7235161034621705, 0.5437608152912005 0.8094405871736376, 0.5155974213664015 0.9026815612440451, 0.5060383292181231 0.9996595671409454, 0.5154515445125576 1.0966519999363562, 0.5434778946221298 1.189935384636339, 0.5890443835523699 1.2759277337466557, 0.6504046597742672 1.351325674570359, 0.7252052094919487 1.4132311883389634, 0.8105749372852248 1.4592631274050478, 0.9032348818477622 1.4876491792438657, 0.9996239765142181 1.4972946296901322, 1.0960360534473923 1.4878251336659738, 1.1887627611277156 1.4596017042142753, 1.274236764418951 1.4137072372263417, 1.349169555073809 1.351905043317305, 1.4106784244846065 1.2765709965399066, 1.456397621410486 1.1906019705754853, 1.4845693968286346 1.097304164946152, 1.4941114760448242 1.0002656895689852))</literal>
40 </binding>
41 </result>
42 <result>
43 <binding name='buffer'>
44 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((1.6057396417426655 1.1000133341008838, 1.6055600770891043 1.8998742751842157, 1.615018647034787 1.9969183309120746, 1.6431098940423081 2.0902429614525575, 1.6887587248520843 2.176263210107767, 1.7502152087055989 2.251673507273506, 1.8251210012123964 2.313574723561859, 1.9105993240140788 2.3595858779522474, 2.0033651988678276 2.3879361376528014, 2.0998517783906254 2.397533452420771, 2.9001107683378806 2.397594423773529, 2.9966046428273283 2.3880118353399094, 3.0893834846230526 2.3596746493753034, 3.1748795736112525 2.313672854227895, 3.249806372172682 2.251775720637398, 3.311285107477008 2.176363379333804, 3.356955313859029 2.0903349174108454, 3.3850651283413487 1.9969966390464415, 3.3945379885207423 1.899934862126788, 3.3943584196328853 1.0999527283552053, 3.384841858008238 1.0028721300345445, 3.3566931375209905 0.9095253893124443, 3.3109949411987802 0.8234994557326389, 3.2495037793506376 0.7481000379166741, 3.17458266179189 0.6862246731626713, 3.089110514040267 0.6402513607718573, 2.9963717238913694 0.6119470629201429, 2.8999300019796097 0.6023996491860443, 2.100032540940559 0.6024606668156243, 2.003598114030539 0.612022815656822, 1.910872289438933 0.640340193635087, 1.825417905755009 0.6863228679113019, 1.7505177923584976 0.748202313479427, 1.6890488811640878 0.8235996806999417, 1.6433720611540792 0.9096173906790982, 1.6152419102710192 1.0029504706950134, 1.6057396417426655 1.1000133341008838))</literal>
45 </binding>
46 </result>
47 </results>
48 </sparql>