Skip to content

Commit 5a92850

Browse files
committed
Add missing spatial projection/restriction tests
1 parent e4e3781 commit 5a92850

File tree

23 files changed

+8553
-2858
lines changed

23 files changed

+8553
-2858
lines changed

Tests.NHibernate.Spatial.MsSql2012/MsSql2012NtsTestCasesFixture.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ namespace Tests.NHibernate.Spatial
1212
[TestFixture]
1313
public class MsSql2012NtsTestCasesFixture : NtsTestCasesFixture
1414
{
15-
private const string LocalDataPath = @"../../../../Tests.NHibernate.Spatial.MsSql2012/NtsTestCases/Data/vivid";
15+
private const string LocalDataPath = "../../../../Tests.NHibernate.Spatial.MsSql2012/NtsTestCases/Data";
1616

17-
protected override string TestRelateAADataPath => Path.Combine(LocalDataPath, @"TestRelateAA.xml");
17+
protected override string TestRelateAADataPath => Path.Combine(LocalDataPath, "general", "TestRelateAA.xml");
1818

19-
protected override string TestRelateACDataPath => Path.Combine(LocalDataPath, @"TestRelateAC.xml");
19+
protected override string TestRelateACDataPath => Path.Combine(LocalDataPath, "general", "TestRelateAC.xml");
2020

21-
protected override string TestSimpleDataPath => Path.Combine(LocalDataPath, @"TestSimple.xml");
21+
protected override string TestSimpleDataPath => Path.Combine(LocalDataPath, "general", "TestSimple.xml");
22+
23+
protected override string TestRelateACValidateDataPath => Path.Combine(LocalDataPath, "validate", "TestRelateAC.xml");
24+
25+
protected override string TestRelateLAValidateDataPath => Path.Combine(LocalDataPath, "validate", "TestRelateLA.xml");
2226

2327
[Test]
2428
[Ignore("Not supported by SQL Server")]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<run>
2+
<precisionModel type="FLOATING"/>
3+
4+
<case>
5+
<desc>AC A-shells overlapping B-shell at A-vertex</desc>
6+
<a>
7+
POLYGON(
8+
(100 60, 140 100, 100 140, 60 100, 100 60))
9+
</a>
10+
<b>
11+
MULTIPOLYGON(
12+
(
13+
(80 40, 120 40, 120 80, 80 80, 80 40)),
14+
(
15+
(120 80, 160 80, 160 120, 120 120, 120 80)),
16+
(
17+
(80 120, 120 120, 120 160, 80 160, 80 120)),
18+
(
19+
(40 80, 80 80, 80 120, 40 120, 40 80)))
20+
</b>
21+
<!--<test>
22+
<op name="relate" arg1="A" arg2="B" arg3="21210F212">true</op>
23+
</test>-->
24+
<test><op name="contains" arg1="A" arg2="B">false</op></test>
25+
<test><op name="coveredBy" arg1="A" arg2="B">false</op></test>
26+
<test><op name="covers" arg1="A" arg2="B">false</op></test>
27+
<test><op name="crosses" arg1="A" arg2="B">false</op></test>
28+
<test><op name="disjoint" arg1="A" arg2="B">false</op></test>
29+
<test><op name="intersects" arg1="A" arg2="B">true</op></test>
30+
<test><op name="overlaps" arg1="A" arg2="B">true</op></test>
31+
<test><op name="touches" arg1="A" arg2="B">false</op></test>
32+
<test><op name="within" arg1="A" arg2="B">false</op></test>
33+
</case>
34+
35+
</run>

0 commit comments

Comments
 (0)