private static double GetCellHeight(RasterGridPrescription prescription) { var cellHeight = 0.0; if (prescription.CellHeight != null) cellHeight = prescription.CellHeight.Value.Value; if (prescription.BoundingBox != null && prescription.BoundingBox.MinY != null && prescription.BoundingBox.MaxY != null) { cellHeight = Math.Abs(prescription.BoundingBox.MaxY.Value.Value - prescription.BoundingBox.MinY.Value.Value) / prescription.RowCount; } return cellHeight; }