Exemplo n.º 1
0
        public void QueryOutline(IDisplay Display, IPolygon Outline)
        {
            //return a polygon which is the outline of the element
            IPolygon polygon = new PolygonClass();

            polygon.SetEmpty();
            ((ISymbol)m_fillSymbol).QueryBoundary(Display.hDC, Display.DisplayTransformation, m_triangle, polygon);
            ((IPointCollection)Outline).AddPointCollection((IPointCollection)polygon);
        }
        public void EmptyReturnsNull(GeometryGeoJsonConverter sut)
        {
            var polygon = new PolygonClass();

            polygon.SetEmpty();

            var actual = JsonConvert.SerializeObject(polygon, sut);

            Assert.Equal("null", actual);
        }
Exemplo n.º 3
0
        public void QueryBounds(IDisplay Display, IEnvelope Bounds)
        {
            //return a bounding envelope
            IPolygon polygon = new PolygonClass();

            polygon.SetEmpty();

            ((ISymbol)m_fillSymbol).QueryBoundary(Display.hDC, Display.DisplayTransformation, m_triangle, polygon);

            Bounds.XMin             = polygon.Envelope.XMin;
            Bounds.XMax             = polygon.Envelope.XMax;
            Bounds.YMin             = polygon.Envelope.YMin;
            Bounds.YMax             = polygon.Envelope.YMax;
            Bounds.SpatialReference = polygon.Envelope.SpatialReference;
        }
 public void QueryOutline(IDisplay Display, IPolygon Outline)
 {
   //return a polygon which is the outline of the element
   IPolygon polygon = new PolygonClass();
   polygon.SetEmpty();
   ((ISymbol)m_fillSymbol).QueryBoundary(Display.hDC, Display.DisplayTransformation, m_triangle, polygon);
   ((IPointCollection)Outline).AddPointCollection((IPointCollection)polygon);
 }
    public void QueryBounds(IDisplay Display, IEnvelope Bounds)
    {
      //return a bounding envelope
      IPolygon polygon = new PolygonClass();
      polygon.SetEmpty();

      ((ISymbol)m_fillSymbol).QueryBoundary(Display.hDC, Display.DisplayTransformation, m_triangle, polygon);

      Bounds.XMin = polygon.Envelope.XMin;
      Bounds.XMax = polygon.Envelope.XMax;
      Bounds.YMin = polygon.Envelope.YMin;
      Bounds.YMax = polygon.Envelope.YMax;
      Bounds.SpatialReference = polygon.Envelope.SpatialReference;
    }