Strabon

annotate testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/BufferDegreesTest.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 3368376972f5
children
rev   line source
sgian@1264 1 <?xml version='1.0' encoding='UTF-8'?>
sgian@1264 2 <sparql xmlns='http://www.w3.org/2005/sparql-results#'>
sgian@1264 3 <head>
sgian@1264 4 <variable name='buffer'/>
sgian@1264 5 </head>
sgian@1264 6 <results>
sgian@1264 7 <result>
sgian@1264 8 <binding name='buffer'>
sgian@1426 9 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((-1 0, -1 1, -0.9807852804032304 1.1950903220161286, -0.9238795325112867 1.3826834323650898, -0.8314696123025453 1.5555702330196022, -0.7071067811865475 1.7071067811865475, -0.555570233019602 1.8314696123025453, -0.3826834323650897 1.9238795325112867, -0.1950903220161282 1.9807852804032304, 0 2, 1 2, 1.1950903220161284 1.9807852804032304, 1.3826834323650898 1.9238795325112867, 1.5555702330196022 1.8314696123025453, 1.7071067811865475 1.7071067811865475, 1.8314696123025453 1.5555702330196022, 1.9238795325112867 1.3826834323650898, 1.9807852804032304 1.1950903220161282, 2 1, 2 0, 1.9807852804032304 -0.1950903220161282, 1.9238795325112867 -0.3826834323650898, 1.8314696123025453 -0.5555702330196022, 1.7071067811865475 -0.7071067811865475, 1.5555702330196022 -0.8314696123025452, 1.3826834323650898 -0.9238795325112867, 1.1950903220161284 -0.9807852804032304, 1 -1, 0 -1, -0.1950903220161276 -0.9807852804032305, -0.3826834323650883 -0.9238795325112874, -0.5555702330196002 -0.8314696123025467, -0.7071067811865452 -0.7071067811865498, -0.8314696123025431 -0.5555702330196054, -0.9238795325112849 -0.3826834323650944, -0.9807852804032293 -0.1950903220161338, -1 0))</literal>
sgian@1264 10 </binding>
sgian@1264 11 </result>
sgian@1264 12 <result>
sgian@1264 13 <binding name='buffer'>
sgian@1426 14 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((-1 0, -1 2, -0.9807852804032304 2.1950903220161284, -0.9238795325112867 2.38268343236509, -0.8314696123025453 2.555570233019602, -0.7071067811865475 2.7071067811865475, -0.555570233019602 2.8314696123025453, -0.3826834323650897 2.923879532511287, -0.1950903220161282 2.9807852804032304, 0 3, 2 3, 2.1950903220161284 2.9807852804032304, 2.3826834323650896 2.923879532511287, 2.555570233019602 2.8314696123025453, 2.7071067811865475 2.7071067811865475, 2.8314696123025453 2.555570233019602, 2.923879532511287 2.3826834323650896, 2.9807852804032304 2.1950903220161284, 3 2, 3 0, 2.9807852804032304 -0.1950903220161282, 2.923879532511287 -0.3826834323650898, 2.8314696123025453 -0.5555702330196022, 2.7071067811865475 -0.7071067811865475, 2.555570233019602 -0.8314696123025452, 2.3826834323650896 -0.9238795325112867, 2.1950903220161284 -0.9807852804032304, 2 -1, 0 -1, -0.1950903220161276 -0.9807852804032305, -0.3826834323650883 -0.9238795325112874, -0.5555702330196002 -0.8314696123025467, -0.7071067811865452 -0.7071067811865498, -0.8314696123025431 -0.5555702330196054, -0.9238795325112849 -0.3826834323650944, -0.9807852804032293 -0.1950903220161338, -1 0))</literal>
sgian@1264 15 </binding>
sgian@1264 16 </result>
sgian@1264 17 <result>
sgian@1264 18 <binding name='buffer'>
sgian@1426 19 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((0 1, 0 2, 0.0192147195967696 2.1950903220161284, 0.0761204674887133 2.38268343236509, 0.1685303876974546 2.555570233019602, 0.2928932188134525 2.7071067811865475, 0.444429766980398 2.8314696123025453, 0.6173165676349103 2.923879532511287, 0.8049096779838718 2.9807852804032304, 1 3, 3 3, 3.1950903220161284 2.9807852804032304, 3.3826834323650896 2.923879532511287, 3.555570233019602 2.8314696123025453, 3.7071067811865475 2.7071067811865475, 3.8314696123025453 2.555570233019602, 3.923879532511287 2.3826834323650896, 3.9807852804032304 2.1950903220161284, 4 2, 4 1, 3.9807852804032304 0.8049096779838718, 3.923879532511287 0.6173165676349102, 3.8314696123025453 0.4444297669803978, 3.7071067811865475 0.2928932188134525, 3.555570233019602 0.1685303876974548, 3.3826834323650896 0.0761204674887133, 3.1950903220161284 0.0192147195967696, 3 0, 1 0, 0.8049096779838725 0.0192147195967695, 0.6173165676349117 0.0761204674887126, 0.4444297669803998 0.1685303876974533, 0.2928932188134548 0.2928932188134502, 0.1685303876974569 0.4444297669803946, 0.0761204674887152 0.6173165676349056, 0.0192147195967707 0.8049096779838661, 0 1))</literal>
sgian@1264 20 </binding>
sgian@1264 21 </result>
sgian@1264 22 <result>
sgian@1264 23 <binding name='buffer'>
sgian@1426 24 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((2 1, 2 2, 2.0192147195967696 2.1950903220161284, 2.076120467488713 2.38268343236509, 2.1685303876974547 2.555570233019602, 2.2928932188134525 2.7071067811865475, 2.444429766980398 2.8314696123025453, 2.6173165676349104 2.923879532511287, 2.804909677983872 2.9807852804032304, 3 3, 4 3, 4.195090322016128 2.9807852804032304, 4.38268343236509 2.923879532511287, 4.555570233019602 2.8314696123025453, 4.707106781186548 2.7071067811865475, 4.831469612302545 2.555570233019602, 4.923879532511287 2.3826834323650896, 4.98078528040323 2.1950903220161284, 5 2, 5 1, 4.98078528040323 0.8049096779838718, 4.923879532511287 0.6173165676349102, 4.831469612302545 0.4444297669803978, 4.707106781186548 0.2928932188134525, 4.555570233019602 0.1685303876974548, 4.38268343236509 0.0761204674887133, 4.195090322016128 0.0192147195967696, 4 0, 3 0, 2.8049096779838725 0.0192147195967695, 2.6173165676349117 0.0761204674887126, 2.4444297669803996 0.1685303876974533, 2.2928932188134548 0.2928932188134502, 2.168530387697457 0.4444297669803946, 2.0761204674887153 0.6173165676349056, 2.0192147195967705 0.8049096779838661, 2 1))</literal>
sgian@1264 25 </binding>
sgian@1264 26 </result>
sgian@1264 27 <result>
sgian@1264 28 <binding name='buffer'>
sgian@1426 29 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((2 1, 2 2, 2.0192147195967696 2.1950903220161284, 2.076120467488713 2.38268343236509, 2.1685303876974547 2.555570233019602, 2.2928932188134525 2.7071067811865475, 2.444429766980398 2.8314696123025453, 2.6173165676349104 2.923879532511287, 2.804909677983872 2.9807852804032304, 3 3, 4 3, 4.195090322016128 2.9807852804032304, 4.38268343236509 2.923879532511287, 4.555570233019602 2.8314696123025453, 4.707106781186548 2.7071067811865475, 4.831469612302545 2.555570233019602, 4.923879532511287 2.3826834323650896, 4.98078528040323 2.1950903220161284, 5 2, 5 1, 4.98078528040323 0.8049096779838718, 4.923879532511287 0.6173165676349102, 4.831469612302545 0.4444297669803978, 4.707106781186548 0.2928932188134525, 4.555570233019602 0.1685303876974548, 4.38268343236509 0.0761204674887133, 4.195090322016128 0.0192147195967696, 4 0, 3 0, 2.8049096779838725 0.0192147195967695, 2.6173165676349117 0.0761204674887126, 2.4444297669803996 0.1685303876974533, 2.2928932188134548 0.2928932188134502, 2.168530387697457 0.4444297669803946, 2.0761204674887153 0.6173165676349056, 2.0192147195967705 0.8049096779838661, 2 1))</literal>
sgian@1264 30 </binding>
sgian@1264 31 </result>
sgian@1264 32 <result>
sgian@1264 33 <binding name='buffer'>
sgian@1426 34 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((4.894427190999916 0.4472135954999579, 4.964488067681204 0.2641264229504072, 4.997484208812643 0.0708890200906782, 4.992147591195001 -0.125072608056115, 4.948683298050514 -0.3162277660168385, 4.868761637789668 -0.4952304682721092, 4.755453954995707 -0.655201741360129, 4.613114600374718 -0.7899939789690489, 4.447213595499958 -0.8944271909999157, 4.264126422950409 -0.9644880676812034, 4.07088902009068 -0.9974842088126424, 3.8749273919438867 -0.9921475911950005, 3.6837722339831633 -0.9486832980505142, 3.5047695317278924 -0.8687616377896696, 3.344798258639872 -0.7554539549957073, 3.2100060210309524 -0.6131146003747194, 3.1055728090000843 -0.4472135954999579, 2.1055728090000843 1.5527864045000421, 2.035511932318796 1.7358735770495932, 2.0025157911873572 1.929110979909322, 2.007852408805 2.1250726080561155, 2.0513167019494865 2.316227766016839, 2.1312383622103317 2.4952304682721094, 2.244546045004294 2.655201741360129, 2.3868853996252826 2.789993978969049, 2.552786404500042 2.8944271909999157, 2.7358735770495914 2.9644880676812035, 2.9291109799093205 2.9974842088126423, 3.1250726080561138 2.9921475911950006, 3.316227766016837 2.948683298050514, 3.495230468272108 2.868761637789669, 3.655201741360128 2.755453954995707, 3.789993978969048 2.613114600374719, 3.8944271909999157 2.447213595499958, 4.894427190999916 0.4472135954999579))</literal>
sgian@1264 35 </binding>
sgian@1264 36 </result>
sgian@1264 37 <result>
sgian@1264 38 <binding name='buffer'>
sgian@1426 39 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((2 1, 1.9807852804032304 0.8049096779838719, 1.923879532511287 0.6173165676349106, 1.8314696123025456 0.4444297669803983, 1.7071067811865481 0.2928932188134531, 1.555570233019603 0.1685303876974553, 1.382683432365091 0.0761204674887137, 1.1950903220161297 0.0192147195967698, 1.0000000000000016 0, 0.8049096779838736 0.0192147195967692, 0.6173165676349122 0.0761204674887125, 0.4444297669803995 0.1685303876974536, 0.2928932188134541 0.2928932188134509, 0.1685303876974562 0.4444297669803957, 0.0761204674887143 0.6173165676349077, 0.0192147195967701 0.8049096779838688, 0 0.9999999999999968, 0.0192147195967689 1.1950903220161249, 0.0761204674887118 1.3826834323650863, 0.1685303876974525 1.555570233019599, 0.2928932188134495 1.7071067811865446, 0.4444297669803942 1.8314696123025427, 0.6173165676349064 1.9238795325112852, 0.8049096779838678 1.9807852804032295, 0.9999999999999962 2, 1.1950903220161249 1.980785280403231, 1.3826834323650867 1.923879532511288, 1.5555702330195995 1.831469612302547, 1.7071067811865455 1.7071067811865497, 1.8314696123025438 1.5555702330196044, 1.9238795325112859 1.382683432365092, 1.98078528040323 1.1950903220161304, 2 1))</literal>
sgian@1264 40 </binding>
sgian@1264 41 </result>
sgian@1264 42 <result>
sgian@1264 43 <binding name='buffer'>
sgian@1426 44 <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>POLYGON ((1.1 1.1, 1.1 1.9, 1.1192147195967697 2.0950903220161283, 1.1761204674887134 2.28268343236509, 1.2685303876974547 2.455570233019602, 1.3928932188134526 2.6071067811865474, 1.5444297669803981 2.7314696123025453, 1.7173165676349105 2.8238795325112864, 1.904909677983872 2.8807852804032303, 2.1 2.9, 2.9 2.9, 3.0950903220161283 2.8807852804032303, 3.28268343236509 2.8238795325112864, 3.455570233019602 2.7314696123025453, 3.6071067811865474 2.6071067811865474, 3.7314696123025453 2.455570233019602, 3.8238795325112864 2.2826834323650895, 3.8807852804032303 2.0950903220161283, 3.9 1.9, 3.9 1.1, 3.8807852804032303 0.9049096779838719, 3.8238795325112864 0.7173165676349103, 3.7314696123025453 0.5444297669803979, 3.6071067811865474 0.3928932188134526, 3.455570233019602 0.2685303876974548, 3.28268343236509 0.1761204674887134, 3.0950903220161283 0.1192147195967697, 2.9 0.1000000000000001, 2.1 0.1000000000000001, 1.9049096779838726 0.1192147195967696, 1.7173165676349118 0.1761204674887127, 1.5444297669804 0.2685303876974534, 1.3928932188134548 0.3928932188134503, 1.268530387697457 0.5444297669803947, 1.1761204674887153 0.7173165676349057, 1.1192147195967708 0.9049096779838662, 1.1 1.1))</literal>
sgian@1264 45 </binding>
sgian@1264 46 </result>
sgian@1264 47 </results>
sgian@1426 48 </sparql>