Added asterix project

git-svn-id: https://asterixdb.googlecode.com/svn/trunk/asterix@12 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/cell-aggregation-with-filtering.adm b/asterix-app/src/test/resources/runtimets/results/spatial/cell-aggregation-with-filtering.adm
new file mode 100644
index 0000000..e95bac0
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/cell-aggregation-with-filtering.adm
@@ -0,0 +1,2 @@
+{ "cell": rectangle("33.5,-101.5 | 36.5,-98.5"), "count": 1 }
+{ "cell": rectangle("33.5,-98.5 | 36.5,-95.5"), "count": 2 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/cell-aggregation.adm b/asterix-app/src/test/resources/runtimets/results/spatial/cell-aggregation.adm
new file mode 100644
index 0000000..137ed1c
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/cell-aggregation.adm
@@ -0,0 +1,3 @@
+{ "cell": rectangle("5.0,5.0 | 10.0,10.0"), "count": 1 }
+{ "cell": rectangle("5.0,0.0 | 10.0,5.0"), "count": 3 }
+{ "cell": rectangle("0.0,0.0 | 5.0,5.0"), "count": 12 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/circle-intersect-circle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/circle-intersect-circle.adm
new file mode 100644
index 0000000..c294669
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/circle-intersect-circle.adm
@@ -0,0 +1,19 @@
+{ "id": 1 }
+{ "id": 2 }
+{ "id": 3 }
+{ "id": 4 }
+{ "id": 5 }
+{ "id": 6 }
+{ "id": 7 }
+{ "id": 8 }
+{ "id": 9 }
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 12 }
+{ "id": 13 }
+{ "id": 14 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 17 }
+{ "id": 18 }
+{ "id": 19 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/distance-between-points.adm b/asterix-app/src/test/resources/runtimets/results/spatial/distance-between-points.adm
new file mode 100644
index 0000000..2dc063d
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/distance-between-points.adm
@@ -0,0 +1,19 @@
+{ "id": 1, "distance": 8.112336284942828d }
+{ "id": 2, "distance": 85.14105547296204d }
+{ "id": 3, "distance": 90.45204911653468d }
+{ "id": 4, "distance": 90.45204911653468d }
+{ "id": 5, "distance": 90.45204911653468d }
+{ "id": 6, "distance": 90.45204911653468d }
+{ "id": 7, "distance": 90.45204911653468d }
+{ "id": 8, "distance": 90.45204911653468d }
+{ "id": 9, "distance": 5.0990195135927845d }
+{ "id": 10, "distance": 3.605551275463989d }
+{ "id": 11, "distance": 4.9d }
+{ "id": 12, "distance": 6.708203932499369d }
+{ "id": 13, "distance": 7.0710678118654755d }
+{ "id": 14, "distance": 7.212489168102785d }
+{ "id": 15, "distance": 3.605551275463989d }
+{ "id": 16, "distance": 3.605551275463989d }
+{ "id": 17, "distance": 8.112336284942828d }
+{ "id": 18, "distance": 3.605551275463989d }
+{ "id": 19, "distance": 3.605551275463989d }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-circle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-circle.adm
new file mode 100644
index 0000000..b61f96b
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-circle.adm
@@ -0,0 +1,11 @@
+{ "id": 2 }
+{ "id": 3 }
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 12 }
+{ "id": 13 }
+{ "id": 14 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 18 }
+{ "id": 19 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-line.adm b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-line.adm
new file mode 100644
index 0000000..edaf4a8
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-line.adm
@@ -0,0 +1,2 @@
+{ "id": 1 }
+{ "id": 17 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-polygon.adm b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-polygon.adm
new file mode 100644
index 0000000..2c35f21
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-polygon.adm
@@ -0,0 +1,2 @@
+{ "id": 2 }
+{ "id": 3 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-rectangle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-rectangle.adm
new file mode 100644
index 0000000..bea5d1d
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/line-intersect-rectangle.adm
@@ -0,0 +1,13 @@
+{ "id": 1 }
+{ "id": 2 }
+{ "id": 3 }
+{ "id": 7 }
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 12 }
+{ "id": 13 }
+{ "id": 14 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 18 }
+{ "id": 19 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/point-equals-point.adm b/asterix-app/src/test/resources/runtimets/results/spatial/point-equals-point.adm
new file mode 100644
index 0000000..5166976
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/point-equals-point.adm
@@ -0,0 +1 @@
+{ "id": 9 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/point-in-circle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/point-in-circle.adm
new file mode 100644
index 0000000..ad75861
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/point-in-circle.adm
@@ -0,0 +1,6 @@
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 18 }
+{ "id": 19 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/point-in-polygon.adm b/asterix-app/src/test/resources/runtimets/results/spatial/point-in-polygon.adm
new file mode 100644
index 0000000..2ffad7c
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/point-in-polygon.adm
@@ -0,0 +1 @@
+{ "id": 12 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/point-in-rectangle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/point-in-rectangle.adm
new file mode 100644
index 0000000..bc9537a
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/point-in-rectangle.adm
@@ -0,0 +1,2 @@
+{ "id": 1 }
+{ "id": 10 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/point-on-line.adm b/asterix-app/src/test/resources/runtimets/results/spatial/point-on-line.adm
new file mode 100644
index 0000000..d5bf8d4
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/point-on-line.adm
@@ -0,0 +1,4 @@
+{ "id": 1 }
+{ "id": 9 }
+{ "id": 10 }
+{ "id": 17 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-circle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-circle.adm
new file mode 100644
index 0000000..e5293c9
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-circle.adm
@@ -0,0 +1,10 @@
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 12 }
+{ "id": 13 }
+{ "id": 14 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 17 }
+{ "id": 18 }
+{ "id": 19 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-polygon.adm b/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-polygon.adm
new file mode 100644
index 0000000..1cfa2dd
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-polygon.adm
@@ -0,0 +1,13 @@
+{ "id": 3 }
+{ "id": 4 }
+{ "id": 6 }
+{ "id": 8 }
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 12 }
+{ "id": 13 }
+{ "id": 14 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 17 }
+{ "id": 19 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-rectangle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-rectangle.adm
new file mode 100644
index 0000000..a602b8d
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/polygon-intersect-rectangle.adm
@@ -0,0 +1,8 @@
+{ "id": 1 }
+{ "id": 2 }
+{ "id": 3 }
+{ "id": 4 }
+{ "id": 6 }
+{ "id": 9 }
+{ "id": 12 }
+{ "id": 17 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/rectangle-intersect-circle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/rectangle-intersect-circle.adm
new file mode 100644
index 0000000..62f32d0
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/rectangle-intersect-circle.adm
@@ -0,0 +1,18 @@
+{ "id": 1 }
+{ "id": 2 }
+{ "id": 3 }
+{ "id": 4 }
+{ "id": 5 }
+{ "id": 6 }
+{ "id": 8 }
+{ "id": 9 }
+{ "id": 10 }
+{ "id": 11 }
+{ "id": 12 }
+{ "id": 13 }
+{ "id": 14 }
+{ "id": 15 }
+{ "id": 16 }
+{ "id": 17 }
+{ "id": 18 }
+{ "id": 19 }
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/rectangle-intersect-rectangle.adm b/asterix-app/src/test/resources/runtimets/results/spatial/rectangle-intersect-rectangle.adm
new file mode 100644
index 0000000..e18550c
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/rectangle-intersect-rectangle.adm
@@ -0,0 +1,2 @@
+{ "id": 1 }
+{ "id": 7 }
\ No newline at end of file
diff --git a/asterix-app/src/test/resources/runtimets/results/spatial/spatial-area.adm b/asterix-app/src/test/resources/runtimets/results/spatial/spatial-area.adm
new file mode 100644
index 0000000..cf88532
--- /dev/null
+++ b/asterix-app/src/test/resources/runtimets/results/spatial/spatial-area.adm
@@ -0,0 +1 @@
+{ "polygonArea": 6.0d, "circleArea": 3.14159265d, "rectangleArea": 24.0d }
\ No newline at end of file