/// <summary> /// The minimum bounding box for this Geometry. /// </summary> /// <returns></returns> public override BoundingBox GetBoundingBox() { if (_LineStrings == null || _LineStrings.Count == 0) { return(null); } BoundingBox bbox = _LineStrings[0].GetBoundingBox(); for (int i = 1; i < _LineStrings.Count; i++) { bbox = bbox.Join(_LineStrings[i].GetBoundingBox()); } return(bbox); }
/// <summary> /// The minimum bounding box for this Geometry, returned as a BoundingBox. /// </summary> /// <returns></returns> public override BoundingBox GetBoundingBox() { if (Collection.Count == 0) { return(null); } BoundingBox b = this[0].GetBoundingBox(); for (int i = 0; i < Collection.Count; i++) { b = b.Join(Collection[i].GetBoundingBox()); } return(b); }
/// <summary> /// Returns the bounding box of the object /// </summary> /// <returns>bounding box</returns> public override BoundingBox GetBoundingBox() { if (_Polygons == null || _Polygons.Count == 0) { return(null); } BoundingBox bbox = this.Polygons[0].GetBoundingBox(); for (int i = 1; i < this.Polygons.Count; i++) { bbox = bbox.Join(this.Polygons[i].GetBoundingBox()); } return(bbox); }
/// <summary> /// The minimum bounding box for this Geometry, returned as a BoundingBox. /// </summary> /// <returns></returns> public override BoundingBox GetBoundingBox() { if (Collection.Count == 0) { return(null); } BoundingBox b = this[0].GetBoundingBox(); foreach (Geometry geometry in Collection) { b = b.Join(geometry.GetBoundingBox()); } return(b); }