public void CreateEmptyMultiLineStringSucceeds()
        {
            GeometryFactory factory = new GeometryFactory(
                new BufferedCoordinate2DFactory(),
                new BufferedCoordinate2DSequenceFactory());

            IMultiLineString l = factory.CreateMultiLineString();
            Assert.IsNotNull(l);
            Assert.IsTrue(l.IsEmpty);
        }
        public void CreateEmptyMultiPointSucceeds()
        {
            GeometryFactory factory = new GeometryFactory(
                new BufferedCoordinate2DFactory(),
                new BufferedCoordinate2DSequenceFactory());

            IMultiPoint p = factory.CreateMultiPoint();
            Assert.IsNotNull(p);
            Assert.IsTrue(p.IsEmpty);
        }
        public void CreateEmptyPolygonSucceeds()
        {
            GeometryFactory factory = new GeometryFactory(
                new BufferedCoordinate2DFactory(),
                new BufferedCoordinate2DSequenceFactory());

            IPolygon p = factory.CreatePolygon();
            Assert.IsNotNull(p);
            Assert.IsTrue(p.IsEmpty);
        }
        public void CreateEmptyGeometryCollectionSucceeds()
        {
            GeometryFactory factory = new GeometryFactory(
                new BufferedCoordinate2DFactory(),
                new BufferedCoordinate2DSequenceFactory());

            IGeometryCollection g = factory.CreateGeometryCollection();
            Assert.IsNotNull(g);
            Assert.IsTrue(g.IsEmpty);
        }
Пример #5
0
 /// <summary>
 /// Initializes a new Point
 /// </summary>
 /// <param name="x">X coordinate</param>
 /// <param name="y">Y coordinate</param>
 internal protected Point(GeometryFactory factory, Double x, Double y)
 {
     _coord  = (ICoordinate2D)factory.CoordinateFactory.Create(x, y);
     Factory = factory;
     SetNotEmpty();
 }
Пример #6
0
 internal BoundingBoxSpatialOperations(GeometryFactory factory)
 {
     _factory = factory;
 }