Azavea.Open.DAO.PostgreSQL.Tests.DaoGeometryTests.TestGetIntersects C# (CSharp) Method

TestGetIntersects() private method

private TestGetIntersects ( ) : void
return void
        public void TestGetIntersects()
        {
            DaoCriteria crit = new DaoCriteria();
            Coordinate[] coords = new Coordinate[5];
            coords[0] = new Coordinate(100, 100);
            coords[1] = new Coordinate(200, 100);
            coords[2] = new Coordinate(200, 150);
            coords[3] = new Coordinate(100, 150);
            coords[4] = new Coordinate(100, 100);
            Geometry poly = new Polygon(new LinearRing(coords));
            crit.Expressions.Add(new IntersectsExpression("Shape", poly));
            IList<PointClass> points = _pointDao.Get(crit);
            Assert.AreEqual(6, points.Count, "Wrong number of points.");
            IList<LineClass> lines = _lineDao.Get(crit);
            Assert.AreEqual(2, lines.Count, "Wrong number of lines.");
            IList<PolyClass> polys = _polyDao.Get(crit);
            Assert.AreEqual(2, polys.Count, "Wrong number of polygons.");
        }